title: AppStorage vs CoreData
body: <p>Recent newbie to SwiftUI and was noticed the introduction of property wrapper <code>@AppStorage</code> in iOS 14.
  Wondering about the difference between <code>@AppStorage</code> and <code>CoreData</code></p>
  <pre><code>struct ContentView: View {
    @AppStorage(&quot;isDarkMode&quot;) 
    private var isDarkMode: Bool = false
  
    var body: some View {
      VStack {
        Text(isDarkMode ? &quot;Dark&quot; : &quot;Light&quot;)
  
        Toggle(isOn: $isDarkMode) {
          Text(&quot;Switch Mode&quot;)
        }.fixedSize()
      }
    }
  }
  </code></pre>