i live in a totally normal city
https://uk.finance.yahoo.com/news/london-mayoral-election-count-binface-151534829.html
*highlights a thing that is ✨literally✨ happening now on the App Store*
Gruber: A TASTE OF THINGS TO COME WITHOUT THE APP STORE
https://daringfireball.net/linked/2024/03/12/dealmachine-wtf
“developers compete on a level playing field”
“We’ve even flown our engineers to Stockholm to help”
#SwiftUI: Stop using AppStorage directly. It’s prone to typos, value mismatches and more.
Instead give yourself strongly typed keys and associated defaults, à la EnvironmentValues.
I’ve published my implementation as a package, but you can just as easily wrap AppStorage yourself with a few dozen lines.
Had a few people ask how you might go from a scrolling grid to a PageView, à la Photos app.
Using matchedGeometry will get you most of the way there, then it’s just a few little extras to keep both views in sync.
I’ve added some new sample code in the project to show how:
There is something incredibly cathartic about running your own Mastodon instance and being able to block an entire instance in a single click.
A thousand ‘free-speech extremists’ screaming into the void.
Certain styles such as .scroll and .historyStack bridge directly to UIPageViewController and NSViewController respectively, so you get all those great native behaviours.
But you can also adopt PageViewStyle to create completely custom transitions, like the 3D deck of cards in Messages.
Checkout the docs to see how:
https://opensource.notsobig.company/documentation/bigswiftui/pageviewstyle/
New SwiftUI package drop!
📦📖 BigUIPaging
PageView is a flexible container for creating paged interfaces.
Unlike TabView:
- Pages can be decided 'in flight’, ideal for large datasets
- Works across iOS and macOS
- Handles complicated view hierarchies more consistently
- Allows for totally custom styles and interactions
Also included is PageIndicator with support for the new iOS 17 progress timer.
Here's a prime example of what developers mean when they question "is SwiftUI ready for production?”
A simple menu. Left iOS 16.4. Right iOS 17.0.
One works. One fails. Same code.
I love SwiftUI, but it's this kind of thing that make me lose confidence in it.
https://gist.github.com/phillipcaudell/269e1d9abe1dea1709327fc95560760f
🏳️🌈 Founder / Maker
Building that new email app.
Swift and rollercoasters are my thing.
Recovering VC.