Mercurial > public > simoleon
comparison Simoleon/ContentView.swift @ 158:82bd84c5973c
Implemented Favorite Button
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 28 Aug 2021 19:17:55 +0100 |
parents | 84137052813d |
children | 0c589138a6f3 |
comparison
equal
deleted
inserted
replaced
157:8c3bbd640103 | 158:82bd84c5973c |
---|---|
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 struct ContentView: View { | 10 struct ContentView: View { |
11 @Environment(\.managedObjectContext) private var viewContext | |
12 @FetchRequest(sortDescriptors: []) private var defaultCurrency: FetchedResults<DefaultCurrency> | |
13 @State private var tab: Tab = .convert | 11 @State private var tab: Tab = .convert |
14 | 12 |
15 private enum Tab { | 13 private enum Tab { |
16 case convert, favorites, settings | 14 case convert, favorites, settings |
17 } | 15 } |