AttributedText

@MainActor
public struct AttributedText : View

富文本组件,兼容NSAttributedString

Lifecycle

Public

  • Undocumented

    Declaration

    Swift

    @MainActor
    public func font(_ font: UIFont) -> AttributedText
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func foregroundColor(_ foregroundColor: UIColor) -> AttributedText
  • Undocumented

    Declaration

    Swift

    @_disfavoredOverload
    @MainActor
    public func foregroundColor(_ foregroundColor: Color?) -> AttributedText
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func lineBreakMode(_ lineBreakMode: NSLineBreakMode) -> AttributedText
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func baselineAdjustment(_ baselineAdjustment: UIBaselineAdjustment) -> AttributedText
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func adjustsFontSizeToFitWidth(_ adjustsFontSizeToFitWidth: Bool) -> AttributedText
  • Declaration

    Swift

    @MainActor
    public var body: some View { get }