Lazar OtasevicSwift 5.10 Enhanced: Power of Macros for Effortless Nested Protocol MockingIntroducing @PopMock Macro — Requires Swift 5.10 Toolchain for Nested ProtocolsJan 4Jan 4
Lazar OtasevicTestable SwiftUI views using async/awaitAll the “boilerplate” code you need for testing is in TestingSupport.swift and it has 30 lines of code! GitHub repo is here…Dec 24, 20234Dec 24, 20234
Lazar OtasevicStop using MVVM and abusing Observable classes in SwiftUIThis is example of how MVVM is typically implemented by abusing Observable classes in SwiftUI and it is showing how it is a really BAD…Nov 17, 202322Nov 17, 202322
Lazar OtasevicBuilding NSPredicate with Swift KeyPaths and operatorsExperiment: building predicates while having super readable code and compile-time error checkingFeb 5, 20193Feb 5, 20193
Lazar OtasevicHow to deal with Objective-C generics in SwiftEver tried to compile code like this:Feb 4, 2019Feb 4, 2019
Lazar OtasevicYet another but ultimate CoreData stack 💪Every now and then I see Apple’s code examples and templates suggesting non-optimal solutions. CoreData is on the top of my list where I…Feb 4, 2019Feb 4, 2019
Lazar OtasevicResource acquisition is initialization (RAII) in SwiftInstead of shoving some strange looking logic inside our deinit method as a part of some massive view controller to cleanup resources, we…Jan 31, 2019Jan 31, 2019