The UIKit Date Picker 😠

Posted on Jun 16, 2021

Last night I became unreasonably upset that UIKit does not let me use an inline date picker (the date picker control that looks like a calendar) as an input view (i.e., in place of the software keyboard on the iPhone). There is some kind of maximum height of the input view/keyboard area, and the top of the date picker gets truncated. I tried a lot of ways to make it work, but I guess I’ll have to wrap it in a popover and have some “special cases” code paths in my view controller to make it work. How frustrating! I just need about 15 points more vertical space!