Protocols

The following protocols are available globally.

  • 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

    See more

    Declaration

    Swift

    public protocol NonAttributedString : RichString
  • The RichString protocol defines the interface of this framework.

    Note

    All attributes are always applied on the entire range of the attributed string. This means that you normally create attributed strings for the text parts that have the desired attributes, and then concatenate them (using operator +(_:_:) for example).
    See more

    Declaration

    Swift

    public protocol RichString