Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
3
Answers
I used the fontWeight(.bold) modifier immediately after the Text component. I am using SwiftUI 3.0 so I think that's why .bold isn't a member of Text()
The sequence is a matter for SwiftUI.
.bold()
is modifier ofText
so write.bold()
modifier afterText
statement.Return type of
.padding()
and.foregroundColor(.red)
isView
.In SwiftUI 3
.bold()
is a modifier of the font itself.