diff --git a/ModMyIPA.xcodeproj/project.pbxproj b/ModMyIPA.xcodeproj/project.pbxproj index 9f5e510..089afe7 100644 --- a/ModMyIPA.xcodeproj/project.pbxproj +++ b/ModMyIPA.xcodeproj/project.pbxproj @@ -17,7 +17,7 @@ B58A5FB8290653AF00926816 /* MyUserDefaults.swift in Sources */ = {isa = PBXBuildFile; fileRef = B58A5FB7290653AF00926816 /* MyUserDefaults.swift */; }; B58A5FBA2906555000926816 /* FilePaths.swift in Sources */ = {isa = PBXBuildFile; fileRef = B58A5FB92906555000926816 /* FilePaths.swift */; }; B58A5FBE29065DEA00926816 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B58A5FBD29065DEA00926816 /* Launch Screen.storyboard */; }; - B58A5FC12906B12400926816 /* SetAppInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B58A5FC02906B12400926816 /* SetAppInfoView.swift */; }; + B58A5FC12906B12400926816 /* EditAppInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B58A5FC02906B12400926816 /* EditAppInfoView.swift */; }; B58A5FC32906B15500926816 /* MyFileManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B58A5FC22906B15500926816 /* MyFileManager.swift */; }; B58A5FC72906B89D00926816 /* ZipArchive in Frameworks */ = {isa = PBXBuildFile; productRef = B58A5FC62906B89D00926816 /* ZipArchive */; }; B58A5FC92906BA3500926816 /* IPAFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = B58A5FC82906BA3500926816 /* IPAFile.swift */; }; @@ -38,7 +38,7 @@ B58A5FB7290653AF00926816 /* MyUserDefaults.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyUserDefaults.swift; sourceTree = ""; }; B58A5FB92906555000926816 /* FilePaths.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilePaths.swift; sourceTree = ""; }; B58A5FBD29065DEA00926816 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = ""; }; - B58A5FC02906B12400926816 /* SetAppInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetAppInfoView.swift; sourceTree = ""; }; + B58A5FC02906B12400926816 /* EditAppInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EditAppInfoView.swift; sourceTree = ""; }; B58A5FC22906B15500926816 /* MyFileManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyFileManager.swift; sourceTree = ""; }; B58A5FC82906BA3500926816 /* IPAFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IPAFile.swift; sourceTree = ""; }; B58A5FCA2906E95E00926816 /* Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = ""; }; @@ -102,7 +102,7 @@ isa = PBXGroup; children = ( B58A5FB32906501F00926816 /* MainView.swift */, - B58A5FC02906B12400926816 /* SetAppInfoView.swift */, + B58A5FC02906B12400926816 /* EditAppInfoView.swift */, B58A5FB12906500A00926816 /* InfoView.swift */, B58A5FCC290763AB00926816 /* PackageListView.swift */, ); @@ -217,7 +217,7 @@ B58A5FB22906500A00926816 /* InfoView.swift in Sources */, B58A5FCD290763AC00926816 /* PackageListView.swift in Sources */, B58A5FC32906B15500926816 /* MyFileManager.swift in Sources */, - B58A5FC12906B12400926816 /* SetAppInfoView.swift in Sources */, + B58A5FC12906B12400926816 /* EditAppInfoView.swift in Sources */, B58A5FCB2906E95E00926816 /* Extensions.swift in Sources */, B58A5FA129064F4100926816 /* ModMyIPAApp.swift in Sources */, ); @@ -346,7 +346,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_ASSET_PATHS = "\"ModMyIPA/Preview Content\""; DEVELOPMENT_TEAM = L4LN9U3ZS7; ENABLE_PREVIEWS = YES; @@ -378,7 +378,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_ASSET_PATHS = "\"ModMyIPA/Preview Content\""; DEVELOPMENT_TEAM = L4LN9U3ZS7; ENABLE_PREVIEWS = YES; diff --git a/ModMyIPA/Views/SetAppInfoView.swift b/ModMyIPA/Views/EditAppInfoView.swift similarity index 91% rename from ModMyIPA/Views/SetAppInfoView.swift rename to ModMyIPA/Views/EditAppInfoView.swift index 6275b6a..4c9bd16 100644 --- a/ModMyIPA/Views/SetAppInfoView.swift +++ b/ModMyIPA/Views/EditAppInfoView.swift @@ -7,7 +7,7 @@ import SwiftUI -struct SetAppInfoView: View { +struct EditAppInfoView: View { @StateObject var ipafile:IPAFile = .shared @Environment(\.presentationMode) var presentationMode @@ -37,8 +37,8 @@ struct SetAppInfoView: View { } } -struct SetAppInfoView_Previews: PreviewProvider { +struct EditAppInfoView_Previews: PreviewProvider { static var previews: some View { - SetAppInfoView() + EditAppInfoView() } } diff --git a/ModMyIPA/Views/MainView.swift b/ModMyIPA/Views/MainView.swift index 58f8aed..cbca6c4 100644 --- a/ModMyIPA/Views/MainView.swift +++ b/ModMyIPA/Views/MainView.swift @@ -17,7 +17,7 @@ struct MainView: View { @State var alertTitle:String = "" @State var alertMeaasge:String = "" - @State var showSetInfo:Bool = false + @State var showEditInfo:Bool = false @State var showSuccessedAlert:Bool = false func invalidFileAlert(title:String, message:String) { @@ -74,11 +74,11 @@ struct MainView: View { print(error.localizedDescription) } } - Button("Set IPA Info", action: { - print("Set IPA_INFO button pressed") - showSetInfo.toggle() - }).sheet(isPresented: $showSetInfo, content: { - SetAppInfoView() + Button("Edit IPA Info", action: { + print("Edit IPA_INFO button pressed") + showEditInfo.toggle() + }).sheet(isPresented: $showEditInfo, content: { + EditAppInfoView() }) .disabled(!ipafile.fileImported||ipafile.processing) .padding()