LoginSignup
0
0

【SwiftUI】マルチモジュールにおいてAssetsのColorを表示する

Posted at

始めに

Assetsでcolor setするやり方は、以下の記事等で既に解説されているためコチラを参考にしてセッティングしてください。

これをマルチモジュールにしてからでも同じように色を取得する方法です。

本題

.foregroundStyle(Color("WidgetTimeText", bundle: .module))

スクリーンショット 2024-02-21 14.35.24.png

※セッティングしたカラー名と同じにしてください。

0
0
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
0