Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

monospaced(_:)

A view modifier that maps SwiftUI's monospaced.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.monospaced(isActive: Boolean = true): Modifier

Overview

Modifier.monospaced()

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

nonisolated func monospaced(_ isActive: Bool = true) -> some View

Topics

Overloads

fun Modifier.monospaced(isActive: Boolean = true): Modifier
SwiftUI View.monospaced(_:)