Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

tint(_:)

Sets the accent color of controls in a view.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.tint(tint: Color?): Modifier

Overview

Modifier.tint(tint = Color.…)

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

nonisolated func tint(_ tint: Color?) -> some View

Topics

Overloads

fun Modifier.tint(tint: Color?): Modifier
SwiftUI View.tint(_:)