Convert from SwiftUI.Font to UIFont

后端 未结 2 1429
名媛妹妹
名媛妹妹 2020-12-15 06:51

I have a UIViewRepresentable with a UITextView and I want to set the font on the UITextView using the Font from the SwiftUI environment. I just need a simple init like:

2条回答
  •  春和景丽
    2020-12-15 06:57

    No you can't, you have to use the params you passed to the Font to create UIFont

提交回复
热议问题