WXYC / wxyc-ios-64

A new WXYC iOS app
MIT License
7 stars 3 forks source link

Fixing a sizing bug in the today widget #39

Closed jakebromberg closed 6 years ago

jakebromberg commented 6 years ago

This PR does more than what it says on the tin.

First, it disabled the "show more" affordance in the today widget. The widget no longer resizes, and instead stays in compact mode. I did this because I was running into sizing issues in the expanded mode. Initially the height would always be to high, but then it would be fine if you toggled a couple of times. I tried playing around with this, but couldn't fix it. Besides, the expanded mode doesn't look as good.

Second, it factors some of the code in the today widget to be better organized, grouping like functions into extensions and marking them as private where applicable.

Third, I introduce an affordance to launch the app when a user taps on the today widget.