Initializer

init(selection:supportsOpacity:label:)

Creates an instance that selects a color. あるインスタンスを作成します、それはある色を選択するものです。

Declaration 宣言

init(selection: Binding<CGColor>, supportsOpacity: Bool = true, label: () -> Label)

Parameters パラメータ

selection

A Binding to the variable that displays the selected CGColor. 選択されたCGColorを表示する変数へのBinding

supportsOpacity

A Boolean value that indicates whether the color picker allows adjusting the selected color’s opacity; the default is true. あるブール値、それはカラーピッカーがその選択された色のもつ不透明度を調節することを可能にするかどうかを指し示します;省略時はtrueです。

label

A view that describes the use of the selected color. The system color picker UI sets it’s title using the text from this view. あるビュー、それは選択された色の利用法を記述します。システムカラーピッカ−UIは、それのタイトルをこのビューからのテキストを使って設定します。

See Also 参照

Creating a Core Graphics Color Picker