title: How to save a Color in the @AppStorage in SwiftUi
body: <p>I want to save a Color value in the @AppStorage but I get an error. How can I fix it?</p>
  <pre><code>    @AppStorage (&quot;selectedColor&quot;) var selectedColor: Color = .teal
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/rnTHp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rnTHp.png" alt="enter image description here" /></a></p>