Skip to content

Commit

Permalink
Edited AppDelegate to use ContentView
Browse files Browse the repository at this point in the history
  • Loading branch information
swg99 committed Jul 28, 2021
1 parent 1842440 commit affc9f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Rick-and-Morty/Rick And Morty/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import UIKit
import SwiftUI

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
@main
struct RickAndMorty: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
1 change: 1 addition & 0 deletions Rick-and-Morty/Rick And Morty/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import SwiftUI

struct ContentView: View {

var body: some View {
TabView {
CharactersView(characters: ricks, title: "Ricks")
Expand Down

0 comments on commit affc9f8

Please sign in to comment.