-
State And Binding
Two fundamental concepts in SwiftUI are State and Binding. Following the official documentation, we can say:• State is a property wrapper type that can read and write a value managed by SwiftUI.• Binding is a property wrapper type that can read and write a value owned by another view. Let’s explain with an example. Imagine…
-
Fonts
One often overlooked element in mobile application design is the font. While the focus during design and development typically centers on colors and images, paying attention to font choice can significantly enhance your app’s appeal. If you’re interested in giving your app a unique improvement that sets it apart, this insightful post is for you….
-
Images
In this post, we’ll look at how to use images with SwiftUI and create some beautiful effects. To start, we need to add an image to the asset catalog of the Xcode project. Click on Assets Drag your image below the AppIcon (you can use an image from this link sanfrancisco). To use the image…
-
Assets in XCode
This post is designed to demonstrate how to use assets in Xcode 15. It serves as a quick recap for experienced developers and a helpful introduction for beginners. In this post, we’ll cover how to: Image in the assets Start copying this post-asset-header-768×438.jpg in the assets: Now we see the preview of the image on…
-
Customize buttons
In iOS, the size of buttons is typically proportional to the text or icon they contain. However, in some cases, we need buttons of uniform size. How can we achieve this? In this post, we’ll learn how to: Buttons with the same size The first thing we can try is this: Therefore, create buttons with…
