preference

Sets a value for the given preference.

View ModifieriOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+preference(key:value:) in SwiftUI