RESOLVED FIXED227221
[iOS] Adopt new date picker presentation SPI
https://bugs.webkit.org/show_bug.cgi?id=227221
Summary [iOS] Adopt new date picker presentation SPI
Aditya Keerthi
Reported 2021-06-21 09:54:44 PDT
...
Attachments
Patch (23.00 KB, patch)
2021-06-21 10:19 PDT, Aditya Keerthi
no flags
Patch (23.01 KB, patch)
2021-06-21 10:44 PDT, Aditya Keerthi
no flags
Patch for landing (23.12 KB, patch)
2021-06-23 09:23 PDT, Aditya Keerthi
no flags
Aditya Keerthi
Comment 1 2021-06-21 09:54:56 PDT
<rdar//problem/77930086>
Aditya Keerthi
Comment 2 2021-06-21 10:19:03 PDT
Wenson Hsieh
Comment 3 2021-06-21 10:40:09 PDT
Comment on attachment 431873 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431873&action=review > Source/WTF/ChangeLog:5 > + <rdar//problem/77930086> Ditto. > Source/WebKit/ChangeLog:5 > + <rdar//problem/77930086> Nit - colon after the rdar. (It looks like the Bugzilla comment is also missing it) > Source/WebKit/Platform/spi/ios/UIKitSPI.h:1456 > +// FIXME: Import the header directly once bots are updated to a build containing rdar://77930086. Did you mean to reference the UIKit radar (78779655) instead of this WebKit radar? (77930086).
Aditya Keerthi
Comment 4 2021-06-21 10:44:58 PDT
Aditya Keerthi
Comment 5 2021-06-21 10:45:14 PDT
Aditya Keerthi
Comment 6 2021-06-21 10:45:29 PDT
(In reply to Wenson Hsieh from comment #3) > Comment on attachment 431873 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=431873&action=review > > > Source/WTF/ChangeLog:5 > > + <rdar//problem/77930086> > > Ditto. > > > Source/WebKit/ChangeLog:5 > > + <rdar//problem/77930086> > > Nit - colon after the rdar. > > (It looks like the Bugzilla comment is also missing it) > > > Source/WebKit/Platform/spi/ios/UIKitSPI.h:1456 > > +// FIXME: Import the header directly once bots are updated to a build containing rdar://77930086. > > Did you mean to reference the UIKit radar (78779655) instead of this WebKit > radar? (77930086). Thanks for catching that!
Darin Adler
Comment 7 2021-06-21 16:03:33 PDT
Comment on attachment 431876 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431876&action=review > Source/WTF/wtf/PlatformHave.h:1061 > +#if PLATFORM(IOS_FAMILY) && defined __has_include && __has_include(<UIKit/_UIDatePickerOverlayPresentation.h>) This sort of thing is fragile. We do it when we have to, but in time it would be good to find something other than the detection of a header in the SDK to detect this.
Aditya Keerthi
Comment 8 2021-06-21 16:30:27 PDT
(In reply to Darin Adler from comment #7) > Comment on attachment 431876 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=431876&action=review > > > Source/WTF/wtf/PlatformHave.h:1061 > > +#if PLATFORM(IOS_FAMILY) && defined __has_include && __has_include(<UIKit/_UIDatePickerOverlayPresentation.h>) > > This sort of thing is fragile. We do it when we have to, but in time it > would be good to find something other than the detection of a header in the > SDK to detect this. I agree. I went with this approach because the header is relatively new. I intend to replace the header check with an iOS 15 check in a couple weeks time. I will file the follow-up bug once this patch is landed.
Wenson Hsieh
Comment 9 2021-06-23 09:14:42 PDT
Comment on attachment 431876 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431876&action=review >>> Source/WTF/wtf/PlatformHave.h:1061 >>> +#if PLATFORM(IOS_FAMILY) && defined __has_include && __has_include(<UIKit/_UIDatePickerOverlayPresentation.h>) >> >> This sort of thing is fragile. We do it when we have to, but in time it would be good to find something other than the detection of a header in the SDK to detect this. > > I agree. I went with this approach because the header is relatively new. I intend to replace the header check with an iOS 15 check in a couple weeks time. I will file the follow-up bug once this patch is landed. A `// FIXME: …` referencing a Bugzilla bug might be nice here, in the meantime.
Aditya Keerthi
Comment 10 2021-06-23 09:23:51 PDT
Created attachment 432058 [details] Patch for landing
Aditya Keerthi
Comment 11 2021-06-23 09:25:08 PDT
webkit.org/b/227298 filed to remove the __has_include check.
EWS
Comment 12 2021-06-23 13:02:41 PDT
Committed r279181 (239077@main): <https://commits.webkit.org/239077@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432058 [details].
Note You need to log in before you can comment on or make changes to this bug.