Structure
DSUIFontRenderingTypeStyle
@available(iOS 13, tvOS 13, *)
public struct DSUIFontRenderingTypeStyle: ViewModifier
An Enterprise-based view modifier for a SwiftUI Text.
Initialize with DSFontRenderingTypeStyle to specify the appearance of the text based on the renderingType specified.
let renderingType = DSTokenCatalog.font.messageSelectError
Text(errorText ?? " ")
.modifier(DSUIFontRenderingTypeStyle(renderingType: .body))
Relationships
Conforms To
ViewModifier
Initializers
init(renderingType:)
public init(renderingType: DSFontRenderingType)
Methods
body(content:)
public func body(content: Content) -> some View