Closed Jeehut closed 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.
The updated code in Swift needs to look like this:
Currently it's failing due to Swift 4 API changes.