I’ve a type that I’m attempting to alter the background colour however cant appear to get it.
https://preview.redd.it/kz0sp2ppgo6c1.png?width=904&format=png&auto=webp&s=b97890c686590b67fa26e421734a40f041e99997
I need the shape container to be clear or any colour really after which I can tweak from there.
import SwiftUI struct LoginView: View { let backgroundGradient = LinearGradient( colours: [Color.mint, Color.teal], startPoint: .prime, endPoint: .backside ) @State var electronic mail = "" @State var password = "" var physique: some View { NavigationView { VStack { // Header HeaderView() // Login Kind Kind { TextField("E mail Tackle", textual content: $electronic mail) .textFieldStyle(RoundedBorderTextFieldStyle()) SecureField("Password", textual content: $password) .textFieldStyle(RoundedBorderTextFieldStyle()) Button { // Try Login } label: { ZStack { RoundedRectangle(cornerRadius: 10) .foregroundColor(Colour/*@START_MENU_TOKEN@*/.blue/*@END_MENU_TOKEN@*/) Textual content("Login") .foregroundColor(Colour.white) .daring() } } } .foregroundColor(Colour.purple) <--- TRIED this and likewise .background .scrollDisabled(true) // Disable Scroll .scrollContentBackground(.hidden) // Cover background. .padding(.backside, 50) // Create Account VStack { Textual content("New round right here?") Button("Create an Account.") { // Present Registration } } .padding(.backside, 50) Spacer() } .background(backgroundGradient) } } } #Preview { LoginView() }