title: How to store EnumTypes with @AppStorage in SwiftUI
body: <p>@pretep</p>
  <p>Hi,</p>
  <p>I want to store a map-status in UserDefaults. Is it possible to do something like this:</p>
  <pre><code>@AppStorage(&quot;myMapType&quot;) var mapType: MKMapType = .standard
  </code></pre>
  <p>Or do I have to access the rawValue of the <code>MKMapType</code> instead? How could I do this? Thanks in advance</p>
  <p>Peter</p>