Skip to content

Commit

Permalink
Added viewbuilder to TripDetail, to bw deleted later
Browse files Browse the repository at this point in the history
  • Loading branch information
lkellar committed Jul 16, 2020
1 parent 88fc5a9 commit 2dd7d6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Trips.xcodeproj/project.pbxproj
Expand Up @@ -478,7 +478,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Trips/Trips.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 8;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Trips/Preview Content\"";
DEVELOPMENT_TEAM = 27888865CT;
Expand All @@ -503,7 +503,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Trips/Trips.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 8;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Trips/Preview Content\"";
DEVELOPMENT_TEAM = 27888865CT;
Expand Down
1 change: 1 addition & 0 deletions Trips/views/TripDetail.swift
Expand Up @@ -46,6 +46,7 @@ struct TripDetail: View {
self._selection = selection
}

@ViewBuilder
var body: some View {
if self.trip.isDeleted {
Text("No Trip Selected").font(.subheadline)
Expand Down

0 comments on commit 2dd7d6e

Please sign in to comment.