|
I'm trying to present a GraphicalDatePicker in a popover from a Form. In iOS this defaults to a sheet and works fine. In iPadOS this is a disaster. The popover appears in the middle of my form row instead of pointing at the button I'm calling it from, and worse still, it collapses in width and height as if there is nothing there at all. I tried adding .frame(width: 320, height: 400) which does expand my popover and lets me see the GraphicalDatePicker in iPadOS (still in the center of the form row, but at least I can see it now and it functions)... but then this is a complete disaster in iOS. Any ideas?
|
|
Hi Mike, I do not understand why you trying to recreate some tht is done with
When tap on the date it brings you a |
|
Because...
That said, I do really like the Graphical Date Picker calendar itself in iOS / iPadOS. This is the best date picker calendar that Apple has ever made. It looks fantastic and is so much better in form and function than the pathetic little thing that passes as a date picker in macOS. Apple would do well to make this beautiful date picker calendar available on macOS. |
|
Looks like my best option is this - at least until Apple fixes some of the issues I mentioned with DatePicker (and yes, I will be putting the 2 additional views in seperate SwiftUI files and my class into a seperate Swift file and not all in one single long bit of code like I'm sharing here). Of course, if anyone knows of any better option or wants to offer any improvements... I'd be happy to see that.
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.