Latest Post

Show progress of the task using SwiftUI ProgressView Flutter Vs React Native which is better? How to adjust SwiftUI text alignment

Today We are going to show text and image side by side in SwiftUI.This We can only implement in Xcode 13 and above.

Swiftui label image on right

To start with we needed to define the Label in the body of the View

struct Contenview:View {

    var body: some View {

        Label("Leadbycode", systemImage: "folder.circle")

    }

}
Add the Text and image side by using label in SwiftUI

Swiftui label font change

We can change the font and also the label style in SwiftUI

To Change the Font of the Label We can Use the following code

  Label("Leadbycode", systemImage: "folder.circle").font(.title)

 

Screenshot 2B2021 09 17 2Bat 2B7.45.47 2BPM

To Change the Font of the Label We can Use the following code

Leave a Reply

Your email address will not be published.