How to let users select a color with ColorPicker – SwiftUI

preview_player
Показать описание
SwiftUI has a native ColorPicker control that allows the user to select a color.
Рекомендации по теме
Комментарии
Автор

How do you actually dismiss this view afterwards? Is there anything new in SwiftUI to get the color components out of a Color object? Otherwise this control’s use seems very limited.

paulcoghill
Автор

Paul Hudson, this doesn't do anything. I'm on Xcode 12 beta 3.

markaurelius
join shbcf.ru