Why does .font(Font.custom(“custom-font”, size: 20)) not work while .font(.custom(“custom-font”, size: 20)) does in SwiftUI?
I’m trying to set a custom font in my SwiftUI Text view. Here is the code I’m using:
I’m trying to set a custom font in my SwiftUI Text view. Here is the code I’m using: