I added the font file to my iOS capacitor plugin after which added the important thing “Fonts supplied by utility” to Data.plist. Lastly, I checked that the font file was included within the “Copy Bundle Assets” part however the font file didn’t perform appropriately.
If I adopted all the mandatory steps for native iOS growth, the font file works appropriately.
So, I am undecided if I am lacking any steps.
Thanks to your assist.
Code
import SwiftUI
struct CustomFontView: View {
var physique: some View {
VStack(spacing: 15) {
Textual content("Good day, World!")
.font(.customized("Montserrat-Medium", dimension: 15))
Textual content("Good day, World!")
.font(.customized("Montserrat-Daring", dimension: 15))
Textual content("Good day, World!")
.font(.customized("Montserrat-SemiBold", dimension: 15))
Textual content("Good day, World!")
.font(.customized("Montserrat-Common", dimension: 15))
}
}
}
struct CustomFontView_Previews: PreviewProvider {
static var previews: some View {
CustomFontView()
}
}