diff --git a/FaceExplorer.xcodeproj/project.pbxproj b/FaceExplorer.xcodeproj/project.pbxproj index 53eaacf..443bf76 100644 --- a/FaceExplorer.xcodeproj/project.pbxproj +++ b/FaceExplorer.xcodeproj/project.pbxproj @@ -403,7 +403,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 0.0.4; + MARKETING_VERSION = 0.0.6; PRODUCT_BUNDLE_IDENTIFIER = com.FaceExplorer; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -439,7 +439,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 0.0.4; + MARKETING_VERSION = 0.0.6; PRODUCT_BUNDLE_IDENTIFIER = com.FaceExplorer; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/FaceExplorer/Model/ModelData.swift b/FaceExplorer/Model/ModelData.swift index 83b87ef..d0da129 100755 --- a/FaceExplorer/Model/ModelData.swift +++ b/FaceExplorer/Model/ModelData.swift @@ -7,7 +7,7 @@ final class ModelData: ObservableObject { @Published var persons: [Person] = [] @Published var faces: [Face] = [] @Published var errorOccurred = false - @Published var errorMessage: String? + @Published var errorMessage: String = "" let faceAttributes = getFaceAttributes() diff --git a/FaceExplorer/Views/Faces/FaceGrid.swift b/FaceExplorer/Views/Faces/FaceGrid.swift index b8a9845..3efe739 100755 --- a/FaceExplorer/Views/Faces/FaceGrid.swift +++ b/FaceExplorer/Views/Faces/FaceGrid.swift @@ -74,7 +74,7 @@ struct FaceGrid: View { } }) .frame(minWidth: 100, maxWidth: .infinity, minHeight: 100, maxHeight: .infinity, alignment: .topLeading) - .alert(modelData.errorMessage!, isPresented: $modelData.errorOccurred) { + .alert(modelData.errorMessage, isPresented: $modelData.errorOccurred) { Button("Select Library...", action: modelData.selectLibrary) Button("Close", role: .cancel, action: {}) }