Vadim Bulavin (@V8tr) header
Vadim Bulavin (@V8tr) profile picture

 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
Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)Photo by Vadim Bulavin (@V8tr)
📝 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-…
4
11
60
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.
18
4
1
59
📝 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…
3
8
50
👨‍💻 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…
2
6
28
💡 #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.
2
7
51
📝 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…
1
11
93
I believe that massive SwiftUI documentation updates are a sign that SwiftUI will be production-ready with the release of iOS 15.
2
3
83
SwiftUI tutorials have been rewritten from the ground up and look amazing developer.apple.com/tutorial…
12
50
Weak abstractions and over-generalization results in poor design.
How many types will conform to this protocol? Ask yourself the question whenever you create another protocol.
1
9
🎉 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…
2
15
1
108
Here is a diagram of a SwiftUI view lifecycle.
1
32
1
217
📝 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…
6
59
protip: your problem solving with SwiftUI algorithm
2
5
99
WWDC2021 prediction: Cascading Style Sheets (CSS) for SwiftUI
1
13