Styling SwiftUI DatePicker
Reading time: 2 min
This recipe shows how to style SwiftUI DatePicker by setting its background and foreground / text color. There's no good, standard way of doing this, but a few tricks can get you there for the most part.
Easy data pagination with SwiftPaging
Reading time: 8 min
This tutorial shows how to use the SwiftPaging framework to seamlessly integrate a paged data source in your app. You'll learn how to fetch paged data from a remote API and display it in an infinite scrolling list. After that, you'll add a database layer that allows for persistent storage of paged data.
SwiftUI Text with HTML via NSAttributedString
Reading time: 8 min
This recipe shows how to format content of a SwiftUI Text
with HTML via NSAttributedString
on any SwiftUI version.
SwiftUI Paging with TabView
Reading time: 1 min
This recipe shows how to implement a Pager View using a TabView in SwiftUI. This is an awesome addition in iOS 14.0, allowing you to trivially create a swipeable pager.
Side menu in SwiftUI (updated 05/21)
Reading time: 4 min
This tutorial shows how to create a side menu (or navigation drawer, as it's known on Android), in SwiftUI. It's also a good showcase of using GeometryReader
to offset views and DragGesture
to detect user gestures.