Skip to content

Commit

Permalink
further updates
Browse files Browse the repository at this point in the history
  • Loading branch information
twof committed Aug 7, 2018
1 parent f230784 commit cbdd074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pod/Classes/XMSegmentedControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ open class XMSegmentedControl: UIView {
let text: String = segmentContent.text[i]

let halfSizeFont = UIFont(name: font.fontName, size: font.pointSize / 2.0)
let textSize = NSString(string: text).size(withAttributes: [NSAttributedStringKey.font: halfSizeFont])
let textSize = NSString(string: text).size(withAttributes: [NSAttributedStringKey.font: halfSizeFont as Any])

let spacing: CGFloat = 12
let imageHorizontalInset: CGFloat = (width - imageSize.width)/2
Expand Down

0 comments on commit cbdd074

Please sign in to comment.