RaffiKian / RKCalendar

SwiftUI Simple Calendar / Date Picker for iOS
MIT License
535 stars 71 forks source link

Display only #7

Closed blacktop closed 4 years ago

blacktop commented 4 years ago

I'd like to only view the calendar and not allow users to select dates unless in "edit" mode. Is that possible now? If not can you please add that ability?

Thanks for a great UI.

workingDog commented 4 years ago

You could try adding .disabled(true) to RKViewController, for example:

.sheet(isPresented: self.$singleIsPresented, content: {
            RKViewController(isPresented: self.$singleIsPresented, rkManager: self.rkManager1).disabled(true)})
blacktop commented 4 years ago

🤦‍♂

Yup, that is exaclty what I needed, lol. I'm such a noob! Thank you @workingDog !! 👍