title: SwiftUI Init method does not work with ObservedObject Declaration
body: <p>I am trying to create a tabbed application in Swift using Swift UI. I am using @ObservedObject to store the current view name that should be rendered. </p>
  
  <p>I am trying to change the background color of the UI Tab Bar however every time I add the init to override the method begins chucking errors such as "Argument passed to call that takes no arguments". </p>
  
  <p>I have attached a snippet of the controller code below. Any help to resolve this issue is much appreciated.</p>
  
  <pre class="lang-swift prettyprint-override"><code>import SwiftUI
  
  struct ContentView: View {
      @State private var selection = 0
  
      @ObservedObject var coreRouter: CoreRouter
  
      init() {
           UITabBar.appearance().backgroundColor = UIColor.blue
       }
  
      var body: some View {
          TabView(selection: $selection){
              Text("First Screen")
                  .font(.title)
                  .tabItem {
                      VStack {
                          Image(systemName: "house")
                          Text("Home")
                      }
              }
              .tag(0)
              Text("Second View")
                  .font(.title)
                  .tabItem {
                      VStack {
                          Image("calendar")
                          Text("New Items")
                      }
              }
              .tag(1)
          }
      }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView(coreRouter: CoreRouter())
      }
  }
  
  </code></pre>