Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions brain-marks/CategoryList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import SwiftUI

struct CategoryList: View {

@State private var showAddURLView = false
@StateObject var viewModel = CategoryListViewModel()

@State private var showingSheet = false
Expand All @@ -34,15 +34,24 @@ struct CategoryList: View {

Spacer()

Button("Add Tweet") {
Button(action:{
self.showAddURLView = true
}){
Image(systemName:"plus.circle")
.font(.largeTitle)

}

}
}
}
.onAppear {
viewModel.getCategories()
}
.accentColor(.black)
.sheet(isPresented:$showAddURLView){
AddURLView()
}
}
}

Expand Down