Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui datepicker text color

@State private var date = Date()
DatePicker("Select a date",
           selection: $date, in: ...Date(), 
           displayedComponents: .date)
        .labelsHidden()
        .accentColor(.orange)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swiftui #datepicker #text #color
ADD COMMENT
Topic
Name
7+6 =