Skip to content

Commit

Permalink
Rename SetAppInfo to EditAppInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
powenn committed Oct 26, 2022
1 parent df738da commit e192f2b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions ModMyIPA.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand All @@ -38,7 +38,7 @@
B58A5FB7290653AF00926816 /* MyUserDefaults.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyUserDefaults.swift; sourceTree = "<group>"; };
B58A5FB92906555000926816 /* FilePaths.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilePaths.swift; sourceTree = "<group>"; };
B58A5FBD29065DEA00926816 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; };
B58A5FC02906B12400926816 /* SetAppInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetAppInfoView.swift; sourceTree = "<group>"; };
B58A5FC02906B12400926816 /* EditAppInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EditAppInfoView.swift; sourceTree = "<group>"; };
B58A5FC22906B15500926816 /* MyFileManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyFileManager.swift; sourceTree = "<group>"; };
B58A5FC82906BA3500926816 /* IPAFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IPAFile.swift; sourceTree = "<group>"; };
B58A5FCA2906E95E00926816 /* Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -102,7 +102,7 @@
isa = PBXGroup;
children = (
B58A5FB32906501F00926816 /* MainView.swift */,
B58A5FC02906B12400926816 /* SetAppInfoView.swift */,
B58A5FC02906B12400926816 /* EditAppInfoView.swift */,
B58A5FB12906500A00926816 /* InfoView.swift */,
B58A5FCC290763AB00926816 /* PackageListView.swift */,
);
Expand Down Expand Up @@ -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 */,
);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import SwiftUI

struct SetAppInfoView: View {
struct EditAppInfoView: View {
@StateObject var ipafile:IPAFile = .shared
@Environment(\.presentationMode) var presentationMode

Expand Down Expand Up @@ -37,8 +37,8 @@ struct SetAppInfoView: View {
}
}

struct SetAppInfoView_Previews: PreviewProvider {
struct EditAppInfoView_Previews: PreviewProvider {
static var previews: some View {
SetAppInfoView()
EditAppInfoView()
}
}
12 changes: 6 additions & 6 deletions ModMyIPA/Views/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit e192f2b

Please sign in to comment.