Tag

modifier

5 stories
J
Joynal Abedin

Custom viewDidLoad() Modifier in SwiftUI

// // ViewDidLoadView.swift // BeginerLabelAllDemo // // Created by JOYNAL ABEDIN on 22/10/22. // import SwiftUI struct ViewDidLoadView: View { var body: some View { Text(/*@START_MENU_TOKEN@*...

3
J
Joynal Abedin

Text() all modifer in swiftUI

Text(\"Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World!\") .font(.body) .fontWeight(.semibold) .bold() .underline(true, color: Color.r...

3
J
Joynal Abedin

Custom Modifier SwiftUI

SwiftUI also allows you to create your own custom modifiers. This can be particularly useful if you have a standard set of modifiers that are frequently applied to views. Suppose that the following modifiers are a common...

4
Custom Modifier SwiftUI
J
Joynal Abedin

Modifier- Environment Modifier & Regular Modifier

There are number of modifier which we we use for modify our view. We can apply the same modifier to many views at the same time. Example: if we have six Text() Views in VStack which we can modify applying directly that ...

3
Modifier- Environment Modifier & Regular Modifier