Diego LavalleinSwift You and ILine-Wrapping StacksSplitting horizontal stacks into multiple linesOct 12, 2020Oct 12, 2020
Diego LavalleinSwift You and IPausing and Reversing SwiftUI AnimationsAnimations and transitions are decisively one of SwiftUI’s fortes. The framework allows us to go as deep as we want in handling specifics…Aug 12, 2020Aug 12, 2020
Diego LavalleComputed properties as synthesized bindingsComputed properties are useful in so many ways and within the context of SwiftUI they are even more powerful. We can use them to split up…Aug 6, 2020Aug 6, 2020
Diego LavalleinSwift You and IOn-demand bindingsBindings are used to pass parts of our state down to a subview that might later on make changes to said state. We typically rely on the…Aug 3, 2020Aug 3, 2020
Diego LavalleinSwift You and IKeyboard-aware viewsSometimes we want to give our views a chance to react to the software keyboard being pulled up. This could be particularly useful in forms…Aug 2, 2020Aug 2, 2020
Diego LavalleinSwift You and ICodable observable objectsComplying to the Codable protocol is simple thanks to synthesized initializers and coding keys. Similarly making your class observable…Aug 1, 2020Aug 1, 2020
Diego LavalleinSwift You and ISwiftUI Scroll MagicScroll views in SwiftUI are very straight-forward but give us no information or control over the current position of its content. So how…Jul 30, 2020Jul 30, 2020
Diego LavalleinSwift You and ISwiftUI Form Validation with CombineIn WWDC 2019 session Combine in Practice we learned how to apply the Combine Framework to perform validation on a basic sign up form built…Jan 20, 2020Jan 20, 2020
Diego LavalleinSwift You and IAvoid UIImage for Custom IconsThe Image view provides a way to initialize it using UIKit's UIImage. This was used to work-around some early issues with Swift UI which…Nov 29, 2019Nov 29, 2019
Diego LavalleinSwift You and IDetecting When an Animation Has EndedWhenever a SwiftUI animation is triggered, its state is updated immediately regardless of the duration. The Animation struct does not…Sep 21, 2019Sep 21, 2019