PreferenceCenterList
@preconcurrency
@MainActor
public struct PreferenceCenterList : View
Preference center view
-
The default constructor
Declaration
Swift
@MainActor public init( preferenceCenterID: String, onLoad: (@Sendable (String) async -> PreferenceCenterViewPhase)? = nil, onPhaseChange: ((PreferenceCenterViewPhase) -> Void)? = nil )
Parameters
preferenceCenterID
The preference center ID
onLoad
An optional load block to load the view phase
onPhaseChange
A callback when the phase changed
-
Declaration
Swift
@ViewBuilder @MainActor public var body: some View { get }