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")
}
}
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)
To Change the Font of the Label We can Use the following code