Custom presentation container for UIDatePicker.inline triggered by UIDatePicker.compact

I prototyped using the UIDatePicker (in UIKit) for a designer. Out of the box, it works well without a lot of code:

The UI/UX designer was wondering if we could mimic how Apple's Calendar app displays the calendars:

Where the Inline calendar appears to expand into a cell filling the bounds.

I don't see how to control the frame or how the Calendar can be "told" where it is displayed?

Can this be done? (iOS 15+)

Thanks, Scott

Is the Calendars app utilizing UICalendarView? I do need to support iOS 15 - so probably can't go that route.

I ended up doing the following (hopefully you can view the attachment - the animated Gif isn't the smoothest).

UITextFields made to look like UIDatePicker.compact.

In the `textFieldShouldBeginEditing' delegate, make a call to display the UIDatePicker.inline display in the table cell below. (and return false so the keyboard doesn't show.)

I used the built in UITableView animation to hide/show that row.

Custom presentation container for UIDatePicker.inline triggered by UIDatePicker.compact
 
 
Q