Hello,
I keep getting this error now using Xcode 13 as shown in the image.
This is new since Xcode 13. It doesn't seem to like "UIFontDescriptor.FeatureKey.featureIdentifier".
Anyone got any reasons for why this might be?
The code is:
let smallCapsDesc = finalFont.fontDescriptor.addingAttributes([
UIFontDescriptor.AttributeName.featureSettings: [
[
UIFontDescriptor.FeatureKey.featureIdentifier: kLowerCaseType,
UIFontDescriptor.FeatureKey.typeIdentifier: kLowerCaseSmallCapsSelector
]
]
])
finalFont = UIFont(descriptor: smallCapsDesc, size: accessibilityFontSize)