This patch removes the EULA view from the onboarding flow and can be viewed from the create account view if the user so chooses. This also removes the need to copy the public key in the save keys view, now only the copying of the private key is required. Finally it fixes minor issues with the onboarding views, such as padding and spacing, where components were not aligned properly. Testing iPhone 15 Pro Max (17.0) Light Mode: https://video.nostr.build/7c1d38c75069262a56a93fcf7cc447fa8808ed7fbbd18a8169b583913248b741.mp4 iPhone SE (3rd generation) (16.4) Dark Mode: https://video.nostr.build/100085c84d84a75f41c45e3dc5347e5b4c35a8149b1b8a5edb9e6c059adc5949.mp4 Lightning-Address: eriic@getalby.com Closes: https://github.com/damus-io/damus/issues/1902 Changelog-Added: Fixed minor spacing and padding issues in onboarding views Changelog-Changed: EULA is not shown by default Changelog-Removed: Removed copying public key action Signed-off-by: ericholguin <ericholguin@apache.org> Reviewed-by: William Casarin <jb55@jb55.com> Signed-off-by: William Casarin <jb55@jb55.com>
91 lines
3.2 KiB
Swift
91 lines
3.2 KiB
Swift
//
|
|
// EULAView.swift
|
|
// damus
|
|
//
|
|
// Created by William Casarin on 2023-01-25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
import MarkdownUI
|
|
|
|
let eula = """
|
|
**End User License Agreement**
|
|
|
|
**Introduction**
|
|
|
|
This End User License Agreement ("EULA") is a legal agreement between you and Damus Nostr Inc. for the use of our mobile application Damus. By installing, accessing, or using our application, you agree to be bound by the terms and conditions of this EULA.
|
|
|
|
**Prohibited Content and Conduct**
|
|
|
|
You agree not to use our application to create, upload, post, send, or store any content that:
|
|
|
|
* Is illegal, infringing, or fraudulent
|
|
* Is defamatory, libelous, or threatening
|
|
* Is pornographic, obscene, or offensive
|
|
* Is discriminatory or promotes hate speech
|
|
* Is harmful to minors
|
|
* Is intended to harass or bully others
|
|
* Is intended to impersonate others
|
|
|
|
**You also agree not to engage in any conduct that:**
|
|
|
|
* Harasses or bullies others
|
|
* Impersonates others
|
|
* Is intended to intimidate or threaten others
|
|
* Is intended to promote or incite violence
|
|
|
|
**Consequences of Violation**
|
|
|
|
Any violation of this EULA, including the prohibited content and conduct outlined above, may result in the termination of your access to our application.
|
|
|
|
**Disclaimer of Warranties and Limitation of Liability**
|
|
|
|
Our application is provided "as is" and "as available" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. We do not guarantee that our application will be uninterrupted or error-free. In no event shall Damus Nostr Inc. be liable for any damages whatsoever, including but not limited to direct, indirect, special, incidental, or consequential damages, arising out of or in connection with the use or inability to use our application.
|
|
|
|
**Changes to EULA**
|
|
|
|
We reserve the right to update or modify this EULA at any time and without prior notice. Your continued use of our application following any changes to this EULA will be deemed to be your acceptance of such changes.
|
|
|
|
**Contact Information**
|
|
|
|
If you have any questions about this EULA, please contact us at damus@jb55.com
|
|
|
|
**Acceptance of Terms**
|
|
|
|
By using our Application, you signify your acceptance of this EULA. If you do not agree to this EULA, you may not use our Application.
|
|
|
|
"""
|
|
|
|
struct EULAView: View {
|
|
@Environment(\.colorScheme) var colorScheme
|
|
@Environment(\.dismiss) var dismiss
|
|
var nav: NavigationCoordinator
|
|
|
|
var body: some View {
|
|
ZStack {
|
|
ScrollView {
|
|
Markdown(eula)
|
|
.padding()
|
|
}
|
|
}
|
|
.background(
|
|
Image("eula-bg")
|
|
.resizable()
|
|
.blur(radius: 70)
|
|
.ignoresSafeArea(),
|
|
alignment: .top
|
|
)
|
|
.navigationTitle(NSLocalizedString("EULA", comment: "Navigation title of view that shows the EULA, an acronym for End User License Agreement."))
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
.navigationBarBackButtonHidden(true)
|
|
.navigationBarItems(leading: BackNav())
|
|
}
|
|
}
|
|
|
|
struct EULAView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
EULAView(nav: .init())
|
|
}
|
|
}
|