Due to some limitations in SwiftUI Text. I've to use the UIText instead.
In an UIViewRepresentable,
func makeUIView(context: Context) -> UITextView {
let vw = UITextView()
let env = context.environment
// UIFont? Font?
vw.font = env.font
...
}
I want to initialize the UIKit UILabel using the SwiftUI EnvironmentValues.
More specifically, assign an SwiftUI Font to UIKit UIFont.
The question is, how to convert a Font to UIFont?