struct ContentView: View {
@State var selectedColor = Color.red
var body: some View {
ColorPicker("色を修正", selection: $selectedColor)
.padding()
}
}
【SwiftUI】カラーピッカーを作る方法
![]()
![]()
struct ContentView: View {
@State var selectedColor = Color.red
var body: some View {
ColorPicker("色を修正", selection: $selectedColor)
.padding()
}
}