
iOS Engineer | 📖 Author of Yet Another #Swift Blog https://xitter.gq/t.co/Qb8Jl2i34E | 👨💻 I tweet on #iOSDev and #Programming
Riga, Latvia
Joined February 2013
- Tweets916
- Following99
- Followers5.5K
- Likes1.4K
Pinned Tweet
📝 New article: Code Generating Swift Mocks with Sourcery
💡 What are mocks?
⚙️ How to integrate Sourcery to an Xcode project?
🤖 How to automate mocks code generation?
👨💻 How to write unit tests using mocks?
👍 Complete project included.
vadimbulavin.com/mocking-in-…
I wonder why Android engineers are more open-minded with regards to cross-platforms technology (Flutter, KMM). Conversely, iOS engineers stay in the Apple ecosystem, and are typically reluctant to cross-platform.
📝 New article: Custom Popup in SwiftUI
💡 Learn how to implement a popup in SwiftUI including animations & transitions, and custom alignments.
👨💻 Complete project included.
vadimbulavin.com/swiftui-pop…
It’s a shame that Swift for TensorFlow shuts down github.com/tensorflow/swift
This quoted post is unavailable.
👨💻 Swift Code Review
❓Question: Which way of calculating separator line height (or width) will you approve in PR?
Options ⬇️:
// (A)
let separatorA: CGFloat = 1
// (B)
let separatorB: CGFloat = 0.5
// (C)
let separatorC: CGFloat = 1/UIScreen.main.scale
31%A
13%B
56%C
295 votes • Final results 7
13
📝 New article: Callable Objects and callAsFunction() in Swift
💡 Explore what is callAsFunction(); why it's important; what can we get from it.
❓ Does callAsFunction() have any real use cases other than offering yet another syntactic sugar convention?
vadimbulavin.com/call-as-fun…
💡 #SwiftTip Debug Log Optionals without Warnings
Remember this problem when you debug log or display an optional value on UI, it prints 'Optional(...)' and gives a warning?
The solution is to provide a custom string interpolation for Optional<T>. See the attached screenshot.
📝 New article: Effective Auto Layout Programmatically
🎓 Layout in code vs storyboards
🛠 Auto Layout µDSL
🔌 UI components with reuse in mind
🎙 Communicating between components
💡 Stack views over constraints
📱 SwiftUI previews for fast feedback
vadimbulavin.com/effective-a…
I believe that massive SwiftUI documentation updates are a sign that SwiftUI will be production-ready with the release of iOS 15.
SwiftUI tutorials have been rewritten from the ground up and look amazing developer.apple.com/tutorial…
🎉 Happy to be in today’s issue!
iOS Dev Weekly - Issue 483 is out! iosdevweekly.com/issues/483#… Happy Friday everyone! 🚀
18
📝 New article: SwiftUI View Lifecycle
💡 How are views laid out and constructed?
🔍 Understanding view identity and lifetime
📈 SwiftUI view graph under the hood
🔁 The three phases of the SwiftUI view lifecycle
vadimbulavin.com/swiftui-vie…
📝 New article: Unit testing asynchronous code in Swift
Learn four patterns of testing async code:
🤖 Mocking
🏁 Testing before & after
🚧 Expectations
🔁 Busy assertion
This is a complete rewrite of one of my past articles on the subject.
vadimbulavin.com/unit-testin…
✅ Updated for iOS 14: Asynchronous Image Loading from URL in SwiftUI
The important highlight is the usage of @`StateObject inside AsyncImage.
vadimbulavin.com/asynchronou…






