HomeiOS Developmentios - Why my customized font does not work for each widget...

ios – Why my customized font does not work for each widget occasion added to the house display screen?


As you possibly can see on the picture under not all over the place my customized font is utilized:

enter image description here

Solely the highest proper is utilized appropriately. Not the others. That is screenshot from iPad Mini, iPadOS 16.3.1.

Plainly all the things is finished appropriately.

That is my Font extension:

import SwiftUI

extension Font {
    static func openSansLight(withSize measurement: CGFloat) -> Font {
        return Font.customized("OpenSans-Mild", measurement: measurement)
    }
}

and the way it’s used:

import SwiftUI

struct MonthTextView: View {
    personal let textual content: String
    init(textual content: String) {
        self.textual content = textual content
    }
    
    var physique: some View {
        Textual content(textual content)
            .font(.openSansLight(withSize: 24))
    }
}

After all my data.plist and supply information:

enter image description here
enter image description here

Is there some limitations or sth else that it isn’t displayed appropriately? It occurs solely on iPadOS, on iOS it really works at all times appropriately even I add 10 or extra the identical widgets to the house view.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments