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.
-
fontSize(_:
Extension method) Declaration
Swift
public func fontSize(_ size: CGFloat) -> NSAttributedString
-
font(_:
Extension method) Declaration
Swift
public func font(_ font: Font) -> NSAttributedString
-
color(_:
Extension method) Declaration
Swift
public func color(_ color: Color) -> NSAttributedString
-
backgroundColor(_:
Extension method) Declaration
Swift
public func backgroundColor(_ color: Color) -> NSAttributedString
-
paragraphStyle(_:
Extension method) Declaration
Swift
public func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> NSAttributedString
-
paragraphStyle(configure:
Extension method) Declaration
Swift
public func paragraphStyle(configure: (NSMutableParagraphStyle) -> Void) -> NSAttributedString
-
ligature(_:
Extension method) Declaration
Swift
public func ligature(_ ligature: Bool) -> NSAttributedString
-
kern(_:
Extension method) Declaration
Swift
public func kern(_ kern: Float) -> NSAttributedString
-
strikeThrough(style:
Extension method) Declaration
Swift
public func strikeThrough(style: NSUnderlineStyle) -> NSAttributedString
-
strikeThrough(color:
Extension method) Declaration
Swift
public func strikeThrough(color: Color) -> NSAttributedString
-
strikeThrough(color:
Extension methodstyle: ) Declaration
Swift
public func strikeThrough(color: Color, style: NSUnderlineStyle) -> NSAttributedString
-
underline(style:
Extension method) Declaration
Swift
public func underline(style: NSUnderlineStyle) -> NSAttributedString
-
underline(color:
Extension method) Declaration
Swift
public func underline(color: Color) -> NSAttributedString
-
underline(color:
Extension methodstyle: ) Declaration
Swift
public func underline(color: Color, style: NSUnderlineStyle) -> NSAttributedString
-
stroke(width:
Extension methodcolor: ) Declaration
Swift
public func stroke(width: Float, color: Color) -> NSAttributedString
-
shadow(_:
Extension method) Declaration
Swift
public func shadow(_ shadow: NSShadow) -> NSAttributedString
-
shadow(configure:
Extension method) Declaration
Swift
public func shadow(configure: (NSShadow) -> Void) -> NSAttributedString
-
attachment(configure:
Extension method) Declaration
Swift
public func attachment(configure: (NSTextAttachment) -> Void) -> NSAttributedString
-
letterPressed()
Extension methodDeclaration
Swift
public func letterPressed() -> NSAttributedString
-
link(url:
Extension method) Declaration
Swift
public func link(url: NSURL) -> NSAttributedString
-
link(string:
Extension method) Declaration
Swift
public func link(string: String) -> NSAttributedString
-
baselineOffset(_:
Extension method) Declaration
Swift
public func baselineOffset(_ offset: Float) -> NSAttributedString
-
obliqueness(_:
Extension method) Declaration
Swift
public func obliqueness(_ obliqueness: Float) -> NSAttributedString
-
expansion(_:
Extension method) Declaration
Swift
public func expansion(_ expansion: Float) -> NSAttributedString
-
fontSize(_:
Extension method) Declaration
Swift
public func fontSize(_ size: CGFloat) -> NSAttributedString?
-
font(_:
Extension method) Declaration
Swift
public func font(_ font: Font) -> NSAttributedString
-
color(_:
Extension method) Declaration
Swift
public func color(_ color: Color) -> NSAttributedString
-
backgroundColor(_:
Extension method) Declaration
Swift
public func backgroundColor(_ color: Color) -> NSAttributedString
-
strikeThrough(color:
Extension method) Declaration
Swift
public func strikeThrough(color: Color) -> NSAttributedString
-
strikeThrough(color:
Extension methodstyle: ) Declaration
Swift
public func strikeThrough(color: Color, style: NSUnderlineStyle) -> NSAttributedString
-
underline(color:
Extension method) Declaration
Swift
public func underline(color: Color) -> NSAttributedString
-
underline(color:
Extension methodstyle: ) Declaration
Swift
public func underline(color: Color, style: NSUnderlineStyle) -> NSAttributedString
-
stroke(width:
Extension methodcolor: ) Declaration
Swift
public func stroke(width: Float, color: Color) -> NSAttributedString
-
shadow(_:
Extension method) -
shadow(configure:
Extension method) -
attachment(configure:
Extension method)