AttributedText
@MainActor
public struct AttributedText : View
富文本组件,兼容NSAttributedString
-
Undocumented
Declaration
Swift
@MainActor public init(_ attributedText: AttributedStringParameter, clickedOnLink: (@MainActor @Sendable (Any?) -> Void)? = nil)
-
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 }