This project is inspired by Sean Allenβs SwiftUI Fundamentals series on YouTube.
It focuses on understanding the core concepts of SwiftUI, building custom views, and writing modular, reusable components.
The project covers:
- Building and structuring views using SwiftUI.
- Creating custom reusable components for clean code.
- Understanding state management and bindings.
- Applying MVVM architecture in small-scale SwiftUI projects.
Each section of the code is designed to help you grasp how SwiftUI layouts work and how to break them into smaller, composable units for better scalability and readability.
- How to design flexible UI components that can be reused across views.
- How modifiers work under the hood in SwiftUI.
- How to structure SwiftUI projects in a modular way.
- The importance of writing declarative UI code that adapts to different states.
@State
and@Binding
ViewBuilder
ForEach
VStack
,HStack
,ZStack
- Reusable custom views
-
Clone the repository:
git clone https://github.com/DJamesSmith/swiftui-fundamentals.git
-
Open the project in Xcode 15+.
-
Build and run on the simulator or a connected device.
π Credits
Huge thanks to Sean Allen for his insightful and practical SwiftUI tutorials.
Check out his channel here: Sean Allen on Youtube
π¬ Notes
This project was recreated for learning purposes β to understand SwiftUI fundamentals by coding along and adding small customizations.
Keep building. Keep testing. Keep learning!
See you on the next one β