Skip to content

Instantly share code, notes, and snippets.

@thatswiftguy
Created April 11, 2021 16:36
Show Gist options
  • Save thatswiftguy/c805c7a4061ed5ab98d8ee1ae7fac0dd to your computer and use it in GitHub Desktop.
Save thatswiftguy/c805c7a4061ed5ab98d8ee1ae7fac0dd to your computer and use it in GitHub Desktop.
//
// 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