TheMindStudios / WheelPicker

Customizable wheel picker view implementation for iOS.
MIT License
84 stars 22 forks source link

Swift 4 NSFontAttributeName error #8

Closed Jeehut closed 6 years ago

Jeehut commented 6 years ago

The updated code in Swift needs to look like this:

let size =  string.size(withAttributes: [NSAttributedStringKey.font: font])
        let highlightedSize = string.size(withAttributes: [NSAttributedStringKey.font: highlightedFont])

Currently it's failing due to Swift 4 API changes.