LoginSignup
0
1

More than 1 year has passed since last update.

SwiftUI - モーダルビューsheetで表示すると太字boldになる

Last updated at Posted at 2021-08-22

表題の通りsheetでViewを表示すると表示されるViewがBoldになってしまうようです。
これを解決するためには .font(.body)を設定すれば良いようです。

.sheet(isPresented: $isPresented) {
  NextView()
    .font(.body) //←これ
}

詳しくは調べてないので、何か補足情報などがあればコメントにお願いします。

参考

https://developer.apple.com/forums/thread/657989
https://stackoverflow.com/questions/64385259/swiftui-sheets-bolded

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1