-
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 like the one in this post header). To…
-
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…
-
Text And Button with SwuiftUI
Upon creating a new project, we see a dialog to select the project name: After creating the project, we see the file list on the left sidebar, the code and preview in the center, and the properties of the selected object on the right. In SwiftUI, the main term we encounter frequently is “View.” This…
-
Swift in five minutes
With this post, i start the learning path to build application using Swift and SwiftUI. Let’s start with the simpler things, comments, variables and constants: The variables are defined using the “var” keyword, a name, after the “:” we must write the type of the variable (String, Double, Float, Array, Set,..) The variable can be…
-
Row List with More Items in SwiftUI
Usually, a row in a list displays one element, but there are cases when you need to show more items. Think about the list displayed in LinkedIn under the ‘Network’ section. What I want to build is something like that. We have a card with a background, a photo, and some personal information. We need…