Adding Basic UI Elements and Designing Layouts
In this chapter, we will start by learning how to improve your SwiftUI views code by structuring it into more manageable and understandable chunks. Then, we will proceed to explain more basic views and how to compose them together with stacks, to create more complex and interesting views containing more UI elements and adjusting the geometry of their placement.
In this chapter we’re going to cover the following main topics:
- Reusing views code
- Digging deeper into stacks
- Using
GeometryReader