AndyDentFree / AndyDentFree/SpriteKittenly

ToP3orNotToP3 should get cgColor using resolve(in)

オープン
#5 コメント 0 件 リアクション 0 件 担当者 1 名 @AndyDentFree が担当を希望しています GitHub で見る
bug
主要言語
Swift
スター
8
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

The new sample ToP3orNotToP3 needs some polishing as it uses [Color.cgColor][a1] which is marked as _Deprecated in iOS 18.4 and macOS 15.4_

I'm pretty sure I just need to do an OS version check and use [resolve(in:)][a2] to get a [Color.resolved][a3] which has a [cgColor][a4] property which is **not** deprecated.

Have spent waaaay too much time on this exploration so will come back and do that testing later.

I also want to test how the current version works in dark vs light mode and if using [resolve(in:)][a2] changes anything visible.

[a1]: https://developer.apple.com/documentation/swiftui/color/cgcolor
[a2]: https://developer.apple.com/documentation/swiftui/color/resolve(in:)
[a3]: https://developer.apple.com/documentation/swiftui/color/resolved
[a4]: https://developer.apple.com/documentation/swiftui/color/resolved/cgcolor

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。