Type 'NSAttributedStringKey' (aka 'NSString') has no member 'baselineOffset'

296 Views Asked by At

I am using NSAttributedStringKey in Swift 4. While compiling with Swift 3 I am getting this error. What is the equivalent of baselineOffset property in Swift 3.

1

There are 1 best solutions below

0
E.Coms On

There are a lot of examples.

let attributes = [NSBaselineOffsetAttributeName : 0.0] as [String : Any]