domain | swiftbysundell.com |
summary | So at this point, we might really start to ask ourselves what exactly is the difference between defining a piece of UI as a view versus a modifier Is there really any practical differences at all, besides code style and structure Well, what about state Lets say that we wanted to make our new featured labels automatically fade in when they first appear That would require us to define something like a State -marked opacity property that wed then animate over using an onAppear closure for example like this: struct FeaturedLabelContent: View : View ViewBuilder var content: - Content State private var opacity 0.0Links Ben on Twitter John on Twitter Swift Async Algorithms Swift Collections Using the new some and any keywords Type erasure Whats New in Swift, from WWDC22 Embracing Swift Generics, from WWDC22 WeatherKit Regex Literals RegexBuilder Result builders App Intents Sourcery Doug Gregors Eliminate data races using Swift Concurrency talk Bens Swift concurrency talk from WWDC21 Grand Central Dispatch Swift Distributed Actors Connecting asyncawait to other Swift code The Swift Mentorship Program Intro and outro music by Dariusz Dziuk Article Using the some and any keywords to reference generic protocols in Swift 5.7 wwdc22 generics protocols Published on 09 Jun 2022 How Swift 5.7 makes generic protocols more powerful and easier to work with, thanks to the some and any keywords. |
title | Swift by Sundell |
description | Weekly Swift articles, podcasts and tips by John Sundell |
keywords | |
upstreams |
persistent.info |
downstreams |
|
nslookup | A 172.67.73.61, A 104.26.3.236, A 104.26.2.236 |
created | 2024-11-30 |
updated | 2024-11-30 |
|
|