EULAView.swift (3253B)
1 // 2 // EULAView.swift 3 // damus 4 // 5 // Created by William Casarin on 2023-01-25. 6 // 7 8 import SwiftUI 9 10 import MarkdownUI 11 12 let eula = """ 13 **End User License Agreement** 14 15 **Introduction** 16 17 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. 18 19 **Prohibited Content and Conduct** 20 21 You agree not to use our application to create, upload, post, send, or store any content that: 22 23 * Is illegal, infringing, or fraudulent 24 * Is defamatory, libelous, or threatening 25 * Is pornographic, obscene, or offensive 26 * Is discriminatory or promotes hate speech 27 * Is harmful to minors 28 * Is intended to harass or bully others 29 * Is intended to impersonate others 30 31 **You also agree not to engage in any conduct that:** 32 33 * Harasses or bullies others 34 * Impersonates others 35 * Is intended to intimidate or threaten others 36 * Is intended to promote or incite violence 37 38 **Consequences of Violation** 39 40 Any violation of this EULA, including the prohibited content and conduct outlined above, may result in the termination of your access to our application. 41 42 **Disclaimer of Warranties and Limitation of Liability** 43 44 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. 45 46 **Changes to EULA** 47 48 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. 49 50 **Contact Information** 51 52 If you have any questions about this EULA, please contact us at damus@jb55.com 53 54 **Acceptance of Terms** 55 56 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. 57 58 """ 59 60 struct EULAView: View { 61 @Environment(\.colorScheme) var colorScheme 62 @Environment(\.dismiss) var dismiss 63 var nav: NavigationCoordinator 64 65 var body: some View { 66 ZStack { 67 ScrollView { 68 Markdown(eula) 69 .padding() 70 } 71 } 72 .background( 73 Image("eula-bg") 74 .resizable() 75 .blur(radius: 70) 76 .ignoresSafeArea(), 77 alignment: .top 78 ) 79 .navigationTitle(NSLocalizedString("EULA", comment: "Navigation title of view that shows the EULA, an acronym for End User License Agreement.")) 80 .navigationBarTitleDisplayMode(.inline) 81 .navigationBarBackButtonHidden(true) 82 .navigationBarItems(leading: BackNav()) 83 } 84 } 85 86 struct EULAView_Previews: PreviewProvider { 87 static var previews: some View { 88 EULAView(nav: .init()) 89 } 90 }