SwiftextensionSwiftUICore

extension NSAttributedString

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

extends{}

Members 13

  1. funccontainsAttributes(_: [NSAttributedStringKey], in: _NSRange) -> Bool
  2. funcfirstAttribute<A>(_: A.Type, name: NSAttributedStringKey) -> A?
  3. funcfirstAttribute<A where A: SwiftUI.ResolvableStringAttribute>(A.Type) -> A?
  4. funcisCharacterAndRunwiseEqual(to: NSAttributedString, in: _NSRange?) -> Bool
  5. funckitFont() -> NSObject?
  6. funclimitedFontHeight(by: Int) -> CoreGraphics.CGFloat?
  7. funcreplacingLineBreakModes(NSLineBreakMode) -> NSAttributedString
  8. funcruns(in: _NSRange?) -> [(range: _NSRange, attributes: [NSAttributedStringKey : Any])]
  9. funcscaled(by: CoreGraphics.CGFloat) -> NSAttributedString
  10. initinit(axAttributedString: String) -> NSAttributedString
  11. varvar hasLinkAttributes: Bool { get }
  12. varvar isDynamic: Bool { get }
  13. varvar range: _NSRange { get }
extension __C.NSAttributedString {
    struct Metrics {
        var size: __C.CGSize
        let scale: CoreGraphics.CGFloat
        var firstBaseline: CoreGraphics.CGFloat
        var lastBaseline: CoreGraphics.CGFloat
        var baselineAdjustment: CoreGraphics.CGFloat
        var requestedWidth: CoreGraphics.CGFloat
        var numberOfLines: Swift.UInt?
        var hasTruncatedRanges: Swift.Bool
    }
    struct MetricsCache {
        var kitCache: Swift.AnyObject?
        let string: __C.NSAttributedString
        let lineLimit: Swift.Int?
        let lowerLineLimit: Swift.Int?
        let minScaleFactor: CoreGraphics.CGFloat
        let bodyHeadOutdent: CoreGraphics.CGFloat
        let pixelLength: CoreGraphics.CGFloat
        let widthIsFlexible: Swift.Bool
        let isCollapsible: Swift.Bool
        var entries: [(__C.CGSize, __C.NSAttributedString.Metrics)]
    }
    init(axAttributedString: Swift.String)

    var hasLinkAttributes: Swift.Bool {
        get
    }
    var isDynamic: Swift.Bool {
        get
    }
    var range: __C._NSRange {
        get
    }

    func firstAttribute<A>(_: A.Type, name: __C.NSAttributedStringKey) -> A?
    func firstAttribute<A>(_: A.Type) -> A? where A: SwiftUI.ResolvableStringAttribute
    func limitedFontHeight(by: Swift.Int) -> CoreGraphics.CGFloat?
    func containsAttributes(_: [__C.NSAttributedStringKey], in: __C._NSRange) -> Swift.Bool
    func replacingLineBreakModes(_: __C.NSLineBreakMode) -> __C.NSAttributedString
    func isCharacterAndRunwiseEqual(to: __C.NSAttributedString, in: __C._NSRange?) -> Swift.Bool
    func runs(in: __C._NSRange?) -> [(range: __C._NSRange, attributes: [__C.NSAttributedStringKey : Any])]
    func scaled(by: CoreGraphics.CGFloat) -> __C.NSAttributedString
    func kitFont() -> __C.NSObject?
}