EnterpriseDS Documentation

Structure DSUIFont​Rendering​Type​Style

@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))
DSUIFontRenderingTypeStyle DSUIFontRenderingTypeStyle ViewModifier ViewModifier DSUIFontRenderingTypeStyle->ViewModifier

Conforms To

ViewModifier

Initializers

init(rendering​Type:​)

public init(renderingType: DSFontRenderingType)  

Methods

body(content:​)

public func body(content: Content) -> some View