iOS Monospaced Custom Font

Ich habe eine benutzerdefinierte Schriftart in meinem auf Xcode 7 und iOS 9 ausgerichteten Projekt. Ich möchte die Schrift monospaced machen. Ich habe es versucht und es hat nicht funktioniert:

let originalFont = UIFont(name: "My Custom Font", size: 18)
let originalFontDescriptor = originalFont!.fontDescriptor()

let fontDescriptorFeatureSettings = [
    [
        UIFontFeatureTypeIdentifierKey: kNumberSpacingType,
        UIFontFeatureSelectorIdentifierKey: kMonospacedNumbersSelector
    ]
]

let fontDescriptorAttributes = [UIFontDescriptorFeatureSettingsAttribute: fontDescriptorFeatureSettings]
let fontDescriptor = originalFontDescriptor.fontDescriptorByAddingAttributes(fontDescriptorAttributes)
let font = UIFont(descriptor: fontDescriptor, size: 0)

topLabel.font = font

Mit oder ohne obigen Code wird die Beschriftung in der richtigen benutzerdefinierten Schriftart angezeigt. Es ist nur über Code nichts zu tun.