Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

pageCommand(_:)

A view modifier that maps SwiftUI's pageCommand.

iOS: unavailable (no-op)macOS: unavailable (no-op)tvOS 17.0+watchOS: unavailable (no-op)
fun Modifier.pageCommand(value: Int, onValueChange: (Int) -> Unit, bounds: IntRange, step: Int = 1): Modifier

Overview

Modifier.pageCommand(value = 0)

This is the Kotlin form of SwiftUI View.pageCommand(value:in:step:): SwiftUI documentation. In Swift it reads:

nonisolated func pageCommand<V>(value: Binding<V>, in bounds: ClosedRange<V>, step: V = 1) -> some View where V : BinaryInteger

Topics

Overloads

fun Modifier.pageCommand(value: Int, onValueChange: (Int) -> Unit, bounds: IntRange, step: Int = 1): Modifier
SwiftUI View.pageCommand(value:in:step:)