import SwiftUI
let myPink = Color(red: 250/255, green: 114/255, blue: 100/255)
public let myHeadline = Font.custom("Lobster-Regular", size: 40,relativeTo: .title)
Created a custom font here⬆️
struct ContentView: View {
@State var UserName:String="Eric He"
var body: some View {
ZStack{
Rectangle()
.foregroundColor(myPink)
.ignoresSafeArea()
VStack{
Spacer().frame(height:70)
HStack{
Text("Hi,")
.font(myHeadline)
here I used my own font⬆️
.foregroundColor(myWhite)
}
Spacer()
Navigator()
}.ignoresSafeArea()
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
I'm a newcomer to coding, I will appreciate a lot if you could help me!????