01 Jul 2020
•
swiftui
WWDC2020 offered a new suite of Views, one interesting one is LazyVStack
which allow us to delay the initialization of some content only when needed. Unfortunately it’s only available in iOS 14. What if you still want to offer an app that support iOS 13?
More …
13 May 2020
•
swiftui
SwiftUI views has a ViewModifier .sheet
that allows us to present a modal view based on a state .isPresented which is a Bool. What happened when we need to present more than one sheet?
More …
12 Apr 2020
•
swiftui
How do you build your layout? Are you using auto layout? Frame calculations? Interface builder? I think we’ve all try different approaches and they all come with tradeoffs. It’s even harder when working within a group of people because sometimes the choice has been made out of common beliefs that became a convention. I believe it’s difficult to satisfy everyone because it’s just a matter of taste and preference.. until SwiftUI?
More …
10 Apr 2020
•
swift
For many years I’ve been relying on Cocoapods as a dependency manager, which works fine and it’s also widely adopted. But with Xcode 11, SPM now supports iOS targets so I decided to give it a try.
More …
12 Jan 2020
•
swiftui
Recently I wanted to drive a SwiftUI view content based on a ViewState
, it became pretty common to use an Enum
to represent the different state of a View.
More …
05 Nov 2019
•
swiftui
Creating view isn’t hard with SwiftUI, we can quickly iterate to build our final struct BannerView: View
. But what if we would like to display it on top of our content? What if we have multiple View
that needs to show a banner? Aren’t we going to duplicate code in lot of places with also defining how we want to animate in/out the transition?
More …
26 Oct 2019
•
swiftui
Let’s see how we can bridge SwiftUI and UIKit to allow ourself to use UIImagePickerController
which gives us the ability to let the user select a photo from his photo library.
More …
14 Oct 2019
•
iOS13
On iOS13 you might start to have your app, or have seen other apps having this issue where the large title animation isn’t animating. Instead, it stays on the pushed view controller for a split seconds before disappearing.
More …
17 Aug 2019
•
swiftui
SwiftUI doesn’t provide yet a TableHeaderView
or something similar to UIScrollViewDelegate
but I tried to experiment with different Views to have something close to a stretchable header.
More …
10 Aug 2019
•
ios13
Base on Modernizing Your UI for iOS 13 - WWDC 2019 in iOS13 the new way to customise your navigation bar is to use UINavigationBarAppearance
. It also gives you more granularity over:
More …
31 Jul 2019
•
swiftui
The goals of this article is to show how to:
More …