Andriy Fedin

@andriyfedin
3 Followers
16 Following
9 Posts
iOS Developer
Okay, here we go
@mattiem, with his 1.5-year-old article, inspired me to enable Complete Concurrency Checking (SWIFT_STRICT_CONCURRENCY) for my tiny project 💪
It took about an hour to fix all the warnings.
Still wrapping my head around Swift Concurrency, but I'm getting there 👨‍🔬
#Swift #Strings
A multiline string can be indented to match surrounding code. Whitespace before closing quotation marks (“””) tells Swift what to ignore before other lines. Additional whitespace at the start of a line is included.
Looks like we're going to see much more new job offerings for iOS developers in the next couple of months
#WWDC2025
#DesignUpdate
So, this post isn't about efficient variable declarations (the compiler optimizes those anyway). It's about how you can't really measure performance reliably in a Swift playground.
#LearnInPublic
Today, while solving a Leetcode problem in a #Swift playground, I hit an interesting snag: a solution almost identical to mine was running 10 times faster. The only difference? Variable declarations.
Immediately I thought I learned about an efficient way of variable declarations. But after digging a bit deeper, I realized the issue was with Swift playground itself. It's not a real runtime environment, and its internal workings affect performance.
SwiftUI Field Guide is an absolute gem for everyone who recently started learning SwiftUI. It's very well made
👏👏👏

Ternary operator is great, but it can be hard to remember for beginners.
Here’s a helpful mnemonic: WTF

expr0 ? expr1 : expr2 ➡️ What ? True : False

Thanks to @twostraws for mentioning @scottmichaud’s invention

#LearnInPublic #Swift

#TLDR #LearnInPublic #SwiftUI

Choosing between LazyVStack, List, and VStack in SwiftUI

For simple cases, VStack is the best choice due to its simplicity.

LazyVStack is better for handling large numbers of elements since it loads items lazily.

List also implements lazy loading, while providing additional features: it adapts to each operating system's design and includes native elements like disclosure indicators.

Source:
https://www.donnywals.com/choosing-between-lazyvstack-list-and-vstack-in-swiftui/

Choosing between LazyVStack, List, and VStack in SwiftUI – Donny Wals

SwiftUI offers several approaches to building lists of content. You can use a if your list consists of a bunch of elements that should be placed on top of each other. Or you can use a if your list is…

Donny Wals