21
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

.cornerRadiusが非推奨になった

Posted at

Before

Text("Test")
    .padding()
    .background(Color.black)
    .foregroundStyle(.white)
    .cornerRadius(40) // 非推奨

After

Text("Test")
    .padding()
    .background(Color.black)
    .foregroundStyle(.white)
    .clipShape(RoundedRectangle(cornerRadius: 40))

まとめ

いつからかわかりませんが、Xcode15 beta8にアプデしたら非推奨になっていたので同じ結果になるように対応しました!

非推奨記事

21
10
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
21
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?