Skip to content

Commit

Permalink
move credits part to AppInfoView
Browse files Browse the repository at this point in the history
  • Loading branch information
powenn committed Sep 2, 2022
1 parent 3c02fb2 commit b9ce1e0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions permasigneriOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_ASSET_PATHS = "\"permasigneriOS/Preview Content\"";
DEVELOPMENT_TEAM = L4LN9U3ZS7;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -396,7 +396,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_ASSET_PATHS = "\"permasigneriOS/Preview Content\"";
DEVELOPMENT_TEAM = L4LN9U3ZS7;
ENABLE_PREVIEWS = YES;
Expand Down
Binary file not shown.
5 changes: 5 additions & 0 deletions permasigneriOS/Views/AppInfoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct AppInfoView: View {

@State var cleanFolderDone:Bool = false
@State var showCantOpenInFilza:Bool = false
@State var showCredits:Bool = false

var body: some View {
Form{
Expand All @@ -33,6 +34,10 @@ struct AppInfoView: View {
Text("Check issues on Github")
})
}
Button(action: {showCredits.toggle()}, label: {
Text("Credits")
})
.sheet(isPresented: $showCredits, content: {CreditsView()})
Button(action: {
if !checkFilza() {
showCantOpenInFilza.toggle()
Expand Down
4 changes: 0 additions & 4 deletions permasigneriOS/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ struct ContentView: View {
.tabItem({
Label("App Info", systemImage: "info.circle.fill")
})
CreditsView()
.tabItem({
Label("Credits", systemImage: "person.3.fill")
})
}
.environment(\.layoutDirection, direction)
.onAppear(perform: {
Expand Down
2 changes: 0 additions & 2 deletions permasigneriOS/Views/CreditsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ struct CreditsView: View {
GitHubView(name: "Paisseon", username: "Paisseon")
GitHubView(name: "fullpwn", username: "fullpwn")
}


}
}
}
Expand Down

0 comments on commit b9ce1e0

Please sign in to comment.