Fix compilation issue and crash on mobile

This commit is contained in:
William Brawner 2021-12-14 06:15:32 -07:00
parent 302de5cf03
commit 20b56fb05a
3 changed files with 7 additions and 3 deletions

View file

@ -681,7 +681,7 @@
CODE_SIGN_ENTITLEMENTS = Twigs/Twigs.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 11;
CURRENT_PROJECT_VERSION = 12;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_ASSET_PATHS = "\"Twigs/Preview Content\"";
DEVELOPMENT_TEAM = 9Z6DE6KNJ9;
@ -709,7 +709,7 @@
CODE_SIGN_ENTITLEMENTS = Twigs/Twigs.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 11;
CURRENT_PROJECT_VERSION = 12;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_ASSET_PATHS = "\"Twigs/Preview Content\"";
DEVELOPMENT_TEAM = 9Z6DE6KNJ9;

View file

@ -25,11 +25,13 @@ struct RecurringTransactionsListView: View {
}
}
#if DEBUG
struct RecurringTransactionView_Previews: PreviewProvider {
static var previews: some View {
RecurringTransactionsListView(dataStore: RecurringTransactionDataStore(MockRecurringTransactionRepository(), budgetId: ""))
}
}
#endif
struct RecurringTransactionsListItemView: View {
let transaction: RecurringTransaction
@ -68,8 +70,10 @@ struct RecurringTransactionsListItemView: View {
}
}
#if DEBUG
struct RecurringTransactionsListItemView_Previews: PreviewProvider {
static var previews: some View {
RecurringTransactionsListItemView(MockRecurringTransactionRepository.transaction)
}
}
#endif

View file

@ -102,7 +102,7 @@ struct TabbedBudgetView: View {
}).sheet(isPresented: $budgetDataStore.showBudgetSelection,
content: {
List {
BudgetListsView()
BudgetListsView().environmentObject(budgetDataStore)
}
})
.interactiveDismissDisabled(true)