daneden / Zeitgeist

👁 An iOS app for keeping an eye on your Vercel deployments
http://zeitgeist.daneden.me
Apache License 2.0
190 stars 7 forks source link

Update widgets for iOS 17 #98

Closed bdbergeron closed 9 months ago

bdbergeron commented 9 months ago

With iOS 17, Apple made some significant changes to widgets, including adding a default content margin and introducing new placements, such as StandBy on iPhone, Lock Screen on iPad, and desktop on macOS. When building the current app against the iOS 17 SDK, the widgets now have extra padding. I thought I'd take a stab at updating them to accommodate both the new content margins and placements.

Relevant information: https://developer.apple.com/documentation/widgetkit/preparing-widgets-for-additional-contexts-and-appearances

Apologies for the sizable PR here - the core functionality and design of the widgets remain untouched. In order to make the widgets work flawlessly with Xcode Previews and the Widget Context Variants view, I organized the code a bit and split up the models and views from the widget configuration declaration files. I hope you'll find this to be a cleaner workspace.

iOS 16 Home Screen iOS 17 Home Screen
RocketSim_Screenshot_iPhone_14_Pro_2023-11-23_14 24 04 RocketSim_Screenshot_iPhone_15_Pro_2023-11-23_14 24 08
iOS 16 Lock Screen iOS 17 Lock Screen
RocketSim_Screenshot_iPhone_14_Pro_2023-11-23_14 24 19 RocketSim_Screenshot_iPhone_15_Pro_2023-11-23_14 24 22
iOS 17 StandBy Mode
RocketSim_Screenshot_iPhone_15_Pro_2023-11-23_14 24 58
RocketSim_Screenshot_iPhone_15_Pro_2023-11-23_14 24 51
iPad Lock Screen
RocketSim_Screenshot_iPad_mini_(6th_generation)_2023-11-23_15 22 45
RocketSim_Screenshot_iPad_mini_(6th_generation)_2023-11-23_15 22 53
bdbergeron commented 9 months ago

Hey @daneden, now that the current version in the App Store is built against the iOS 17 SDK, what are your thoughts on these updates?

Current Updated
IMG_3814 IMG_3815
StandBy
IMG_3812
IMG_3813
bdbergeron commented 9 months ago

Thanks @daneden! Appreciate the kind words, too. Really appreciate this app, happy to help you out with it in any way I can!