add: comments

This commit is contained in:
Yusuke Hosonuma
2020-08-16 18:48:21 +09:00
parent 5b1dfeaa1d
commit 92d44efe77
2 changed files with 13 additions and 0 deletions
@@ -16,6 +16,8 @@ final class FirebaseHistoryRepository: ObservableObject {
private let dispatchGroup = DispatchGroup()
init() {
// TODO: あとでアカウントに紐付けて管理するようにする
Firestore.firestore()
.collection("histories")
.order(by: "createdAt", descending: true)
@@ -43,6 +43,17 @@ struct BoardSelectView<Repository: FirestoreBoardRepositoryProtorol> : View {
var body: some View {
NavigationView {
Group {
// Note:
// Sectionでヘッダーを表示しようとするとレイアウトが壊れてしまう(beta4)❗
// LazyVGrid と競合しているようだが、現時点では仕様かバグの判断がつかないため保留。
//
// ```
// List {
// Section(header: Text("History")) { ... }
// Section(header: Text("All")) { ... }
// }
//
ScrollView {
VStack {
// Note: