Created
April 11, 2021 16:36
-
-
Save thatswiftguy/c805c7a4061ed5ab98d8ee1ae7fac0dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// TaskManager | |
// | |
// Created by Mohammad Yasir on 11/04/21. | |
// | |
import SwiftUI | |
struct ContentView: View { | |
@StateObject var taskVM = TaskViewModel() | |
@State var searched = "" | |
var body: some View { | |
NavigationView{ | |
VStack{ | |
TaskSearchView(taskVM: taskVM) | |
SortPickerView(taskVM : taskVM) | |
TaskListView(taskVM : taskVM) | |
} | |
.modifier(MainViewModifier(taskVM : taskVM)) | |
} | |
} | |
} | |
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { | |
ContentView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment