TextView

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
public struct TextView : View

A View for hostign text with proper frame alignment , lineLimit modifiers

  • placeholder for text

    Declaration

    Swift

    public var text: String
  • variable to hold font type

    Declaration

    Swift

    public var font: Font
  • initilzes text and font

    Declaration

    Swift

    public init(text: String, font: Font = .caption)
  • provides the content and behavior of this view.

    Declaration

    Swift

    public var body: some View { get }