Hello, this is my first post. I am new to programming and am trying to self teach. I am building a TOS view in my app and I keep getting an error. Here is the code:
import Foundation import UIKit import SwiftUI
struct TermsOfServiceView: View { var body: some View {
VStack(alignment: .leading) { Text("Terms of Service").font(.title) Text("Welcome to Ag Central! By using our app, you agree to the following terms of service:").font(.subheadline).padding(.top, 10)
SwiftUI.Group {
Text("1. Your data and information").font(.headline).padding(.top, 20)
Text("a) When you use our app, we collect certain information about you, including your name, email address, and any content you share on the platform.").padding(.top, 10)
Text("b) We may use your information to improve our app and to provide you with a better experience. However, we will never sell or share your data with third parties without your permission.").padding(.top, 10)
Text("2. User Content").font(.headline).padding(.top, 20)
Text("a) You are solely responsible for the content you post on our app. You agree not to post any content that violates any laws or infringes on the rights of others.").padding(.top, 10)
Text("b) We reserve the right to remove any content that we feel is inappropriate or violates our policies.").padding(.top, 10)
Text("3. Intellectual Property Rights").font(.headline).padding(.top, 20)
Text("a) We own all of the intellectual property rights, including any trademarks, rights, and patents associated with our app.").padding(.top, 10)
Text("b) You may not use our intellectual property without our express permission.").padding(.top, 10)
Text("4. Indemnification").font(.headline).padding(.top, 20)
Text("a) You agree to indemnify and hold harmless our company and its affiliates against any claims, lawsuits, or damages arising from your use of our app.").padding(.top, 10)
Text("5. Changes to the Terms").font(.headline).padding(.top, 20)
Text("a) We reserve the right to update or change these terms of service at any time. We will notify you of any changes via email or in-app notification.").padding(.top, 10)
} .padding(.horizontal, 20) .multilineTextAlignment(.leading) Spacer() } .padding()
} }
Hoping someone can explain what I am doing wrong here? Thanks in advance