Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

textScale(_:)

A view modifier that maps SwiftUI's textScale.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.textScale(scale: Text.Scale, isEnabled: Boolean = true): Modifier

Overview

Modifier.textScale(scale = Text.Scale.…)

This is the Kotlin form of SwiftUI View.textScale(_:isEnabled:): SwiftUI documentation. In Swift it reads:

nonisolated func textScale(_ scale: Text.Scale, isEnabled: Bool = true) -> some View

Topics

Overloads

fun Modifier.textScale(scale: Text.Scale, isEnabled: Boolean = true): Modifier
SwiftUI View.textScale(_:isEnabled:)