Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

imageScale(_:)

A view modifier that maps SwiftUI's imageScale.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.imageScale(scale: Image.Scale): Modifier

Overview

Modifier.imageScale(scale = Image.Scale.…)

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

nonisolated func imageScale(_ scale: Image.Scale) -> some View

Topics

Overloads

fun Modifier.imageScale(scale: Image.Scale): Modifier
SwiftUI View.imageScale(_:)