I plan to write a SwiftUI app, so I would like to explore the structure of a SwiftUI app first. I found this developer document and would like to take note of it. SwiftUI is a declarative framework that helps you compose the user interface of your app. The principle building blocks that form the …
How to add open source library to SwiftUI project?
Clieck “File” in XCode 2. Copy & paste the library git link 3. Set the dependency 4. Waiting for download
How to set icon color in Swift?
We can set the icon from SF Symbols in the code: But what if we don’t like the default color of the icon? We can change them by:
Structures and Classes in Swift
Comparing Structures and Classes Structures and classes in Swift have many things in common. Both can: Define properties to store values Define methods to provide functionality Define subscripts to provide access to their values using subscript syntax Define initializers to set up their initial state Be extended to expand their functionality beyond a default implementation …