Can I change Text of "Background Color" to Image of Buton?
inline-code
import SwiftUI
struct ColorSetting: View {
@Environment(.presentationMode) var presentation
@Binding var bgColor : Color
var body: some View {
ZStack{
bgColor
.ignoresSafeArea()
VStack { ColorPicker("Background Color" // Can I change from Text to Image?
, selection: $bgColor)
}
}
}
}
inline-code
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: