Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

dynamicTypeSize(_:)

A view modifier that maps SwiftUI's dynamicTypeSize.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.dynamicTypeSize(size: DynamicTypeSize): Modifier

Overview

Modifier.dynamicTypeSize(size = DynamicTypeSize.…)

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

nonisolated func dynamicTypeSize(_ size: DynamicTypeSize) -> some View

Topics

Overloads

fun Modifier.dynamicTypeSize(size: DynamicTypeSize): Modifier
SwiftUI View.dynamicTypeSize(_:)