First impressions of SwiftUI


15 bookmarks. First posted by ediventurin 6 days ago.


A little over a month ago, I released CwlViews and then followed up with an article suggesting that Apple might be about to release their own declarative views library. At WWDC this week, they did just that, releasing SwiftUI. via Pocket
IFTTT  Pocket  instapaper 
4 days ago by morsecode
One-way bindings are largely required when interacting with UIKit views because UIKit will emit a notification whether the user interacts with the control or you set the controls value programmatically. Emitting a notification in response to programmatic changes is bothersome and requires that any binding to the control treat send and receive paths separately or you’ll get a recursive loop (set a value on the view and it immediately emits the change back to your model which re-emits that value to the view again).

SwiftUI clearly has different behavior at the core of its views so they emit changes only from the user, not from programmatic events. This is an example of SwiftUI fixing the underlying behaviors, rather than creating a system that works around existing behaviors. It does have some downsides (it’s harder to handle asymmetric view-logic like view-formatting and input-sanitization) but overall, two-way bindings are more concise so it’s a win.
4 days ago by gustavoluz
A little over a month ago, I released CwlViews and then followed up with an article suggesting that Apple might be about to release their own declarative views library. At WWDC this week, they did just that, releasing SwiftUI.
Archive  Pocket 
5 days ago by brokenrhino
RT : Some first impressions of SwiftUI from myself as developer of a different declarative views framework.
from twitter
5 days ago by jasongregori
A little over a month ago, I released CwlViews and then followed up with an article suggesting that Apple might be about to release their own declarative views library. At WWDC this week, they did just that, releasing SwiftUI. via Pocket
IFTTT  Pocket  swiftui 
6 days ago by ChristopherA
A little over a month ago, I released CwlViews and then followed up with an article suggesting that Apple might be about to release their own declarative views…
from instapaper
6 days ago by streicher
A little over a month ago, I released CwlViews and then followed up with an article suggesting that Apple might be about to release their own declarative views…
from instapaper
6 days ago by joeybaker
RT : Some first impressions of SwiftUI from myself as developer of a different declarative views framework.
from twitter_favs
6 days ago by kohlmannj
Some first impressions of SwiftUI from myself as developer of a different declarative views framework.
from twitter_favs
6 days ago by gkamp
A little over a month ago, I released CwlViews and then followed up with an article suggesting that Apple might be about to release their own declarative views…
IFTTT  Instapaper 
6 days ago by broderboy
Some first impressions of SwiftUI from myself as developer of a different declarative views framework.https://t.co/QbEdXAmwpp

— Matt Gallagher (@cocoawithlove) June 9, 2019
from:twitter 
6 days ago by ediventurin