SwiftShorts Custom SwiftUI View Modifiers At the heart of SwiftUI are view modifiers, they allow us to easily add a variety of transformations to our views that often require multiple lines of code in UIKit. In a single line of code we can add shadows, change fonts, colours, scaling,
SwiftShorts Multidimensional lists in SwiftUI with OutlineGroup Along with the updated sidebar design introduced this year at WWDC, Apple gave us the ability to add multidimensional lists - that is - a list who's tree structure is recursive, in even simpler terms, multiple submenus. At the time of writing you'll need
SwiftUI SwiftUI DatePicker At WWDC20 Apple released an update to their standard DatePicker control. From iOS14 your date picker won't be the scroll wheel by default, but a new compact or inline style that's much more user friendly and easy on the eye. In this short post
SwiftShorts Using ContextMenu in SwiftUI At WWDC20 this year we received a lot of (awesome) SwiftUI updates, most of which supporting multiple apple platforms. One of my favourite new interactions Apple gave us is the ContenxtMenu view type and .contextMenu view modifier. Adding a context menu to a button