Skip to content

Commit

Permalink
fixed the licence page
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed Feb 22, 2024
1 parent 3d44a27 commit a86f124
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 27 deletions.
Binary file not shown.
6 changes: 6 additions & 0 deletions AnimeGen/Settings/AboutPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ struct AboutPage: View {
.navigationBarTitle("About", displayMode: .inline)
}
}

struct AboutPage_Previews: PreviewProvider {
static var previews: some View {
AboutPage()
}
}
52 changes: 25 additions & 27 deletions AnimeGen/Settings/LicensePage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,33 @@ import SwiftUI

struct LicensePage: View {
var body: some View {
VStack {
Text("App License Agreement")
.font(.title)
.padding()

ScrollView {
Text("""
Copyright © 2023-2024 cranci. All rights reserved.
AnimeGen is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
AnimeGen is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with AnimeGen. If not, see <http://www.gnu.org/licenses/>.
""")
.padding()
NavigationView {
VStack {
ScrollView {
Text("""
Copyright © 2023-2024 cranci. All rights reserved.
AnimeGen is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
AnimeGen is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with AnimeGen. If not, see <http://www.gnu.org/licenses/>.
""")
}

Spacer()
}

Spacer()
.padding()
.navigationBarHidden(true)
}
.navigationBarTitle("License", displayMode: .inline)
.navigationBarTitle("App License Agreement", displayMode: .large)
}
}

Expand All @@ -45,4 +44,3 @@ struct LicensePage_Previews: PreviewProvider {
LicensePage()
}
}

7 changes: 7 additions & 0 deletions AnimeGen/Settings/SettingsPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ struct SettingsPage: View {
Text("About")
}
}

Section(header: Text("Licence")) {
NavigationLink(destination: LicensePage()) {
Text("License")
}
}
}
.navigationBarTitle("Settings")
}
Expand All @@ -88,5 +94,6 @@ struct SettingsPage: View {
struct SettingsPage_Preview: PreviewProvider {
static var previews: some View {
SettingsPage()
.preferredColorScheme(.dark)
}
}

0 comments on commit a86f124

Please sign in to comment.