Lesson 6 of Module 2 from the CWC+ Design Course introduces us to two methods of creating horizontal lists. TabView Method The TabView method places each element on its own screen, that’s automatically swipeable. LazyHGrid Method The LazyHGrid method creates a proper horizontal list of elements, but it requires ScrollView() […]
Design Course
Lesson 5 from Module 2 of the CWC+ Design Course gives us an overview of the types of scrollable vertical lists we can use. Standard ScrollView Standard List List with ForEach Customisable ScrollView The lesson is couched in the understanding that, at the time the tutorial was filmed, the latest […]
Lesson 4 from Module 2 of the CodeWithChris Design Course takes us into the world of the Grid or, more specifically, the Lazy Grid. These come in two varieties – the LazyVGrid() and the LazyHGrid(). The “lazy” part of the element simply means that, where the content falls “off-screen”, it […]
A common design convention in apps is the use of “cards” – those layouts that slide on the screen, looking almost three dimensional, over the top of that which it covers. We’ve used a card in an app during the iOS Foundations course from CodeWithChris, and Lesson 3 of Module […]
Following an introduction about standard Swift UI conventions (basically – don’t get too carried away!) in Lesson 1, Module 2 – SwiftUI Components and Layouts from CodeWithChris, is a 30-minute finger-racing exercise in how to create your own tab buttons. The concepts used mostly consist of elements that we’ve used […]
Module 1 of the Design Course from CodeWithChris concludes with a tutorial on including your own (custom) fonts into your app project. Given the complexity of shapes and gradients in previous lessons, I erronously thought that “Custom Fonts” meant creating your own typefaces within the app rather than including a […]
Today’s lesson in the Design Course from CodeWithChris looks at how we can create custom styles for our buttons. Once again, I enjoyed playing around with the design options for this. That’s been the delight of this Design Course for me – after the heavyweight coding tutorials of the iOS […]
It sounds like the start of a joke but, actually, it’s one of the reasons why SwiftUI is difficult to code. Take, for example, the simple wish to create a Rectangle() with an outline. In SwiftUI, you use the .stroke modifier, thus: Great, huh? A nice outline around your Rectangle(). […]