NonAttributedString

public protocol NonAttributedString : RichString

Protocol used to add all functionality to both String and NSString. You normally don’t need to use this directly yourself.

Please note: I would have preferred for this protocol to be internal. That doesn’t work with Swift 3 however; when doing release builds you get ‘undefined symbol’ linker errors. More info: https://bugs.swift.org/browse/SR-2925

  • Create a NSAttributedString version of the string. Should be internal, not public; see remark above.

    Declaration

    Swift

    var rich: RichString { get }

    Return Value

    NSAttributedString version of this string.

iOS

macOS