I need help trying to work out how to code/create a date picker that allows you select a check-in and check-out date. Where the dates in between are highlighted, an example would be very similar to the app HostelWorld and their calendar date picker. Thank you :)
AFAIK, you cannot get such a behaviour in UIDatePicker.
You'll have to implement your own to mimic the usual one and implement your specific range selection, built on CollectionView for instance.
Have a look here to get some hints (that's a wheels picker, you'll have probably to adapt to calendar presentation)
https ://swiftsenpai. com/development/expandable-date-picker-list/
You'll have to implement your own to mimic the usual one and implement your specific range selection, built on CollectionView for instance.
Have a look here to get some hints (that's a wheels picker, you'll have probably to adapt to calendar presentation)
https ://swiftsenpai. com/development/expandable-date-picker-list/