Skip to content

Commit

Permalink
iPad: Fix collection initial screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Jun 5, 2020
1 parent c13b1af commit 3ece5b5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ACHNBrowserUI/ACHNBrowserUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@
CODE_SIGN_ENTITLEMENTS = ACHNBrowserUI/ACHNBrowserUI.entitlements;
CODE_SIGN_IDENTITY = "Apple Development: Thomas Ricouard (7MB55D6BJ5)";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 060432020;
CURRENT_PROJECT_VERSION = 060512020;
DEVELOPMENT_ASSET_PATHS = "\"ACHNBrowserUI/Preview Content\"";
DEVELOPMENT_TEAM = Z6P74P6T99;
ENABLE_PREVIEWS = YES;
Expand All @@ -1318,7 +1318,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.6.4;
MARKETING_VERSION = 1.6.5;
PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.ACNH;
PRODUCT_NAME = "AC Helper";
PROVISIONING_PROFILE_SPECIFIER = "AC Dev";
Expand All @@ -1339,7 +1339,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 060432020;
CURRENT_PROJECT_VERSION = 060512020;
DEVELOPMENT_ASSET_PATHS = "\"ACHNBrowserUI/Preview Content\"";
DEVELOPMENT_TEAM = Z6P74P6T99;
ENABLE_PREVIEWS = YES;
Expand All @@ -1349,7 +1349,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.6.4;
MARKETING_VERSION = 1.6.5;
PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.ACNH;
PRODUCT_NAME = "AC Helper";
PROVISIONING_PROFILE_SPECIFIER = "AC Dev";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ struct CollectionListView: View {
displayMode: .automatic)
.sheet(item: $sheet, content: { Sheet(sheetType: $0) })

if collection.items.isEmpty {
placeholderView
if categories.isEmpty {
List {
placeholderView
}
} else {
ItemDetailView(item: collection.items.first!)
ItemsListView(category: Category(itemCategory: categories.first!),
items: collection.items
.filter({ Backend.Category(itemCategory: $0.category) == Category(itemCategory: categories.first!)}))
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct TodayView: View {

// MARK: - Vars
@EnvironmentObject private var uiState: UIState

@ObservedObject private var viewModel = DashboardViewModel()

@State private var selectedSheet: Sheet.SheetType?
Expand Down

0 comments on commit 3ece5b5

Please sign in to comment.