Doesn't provide any error code...my code below
import SwiftUI
struct ContentView: View { @Binding var text: String let stories = ["BMC","Mocha", "Expresso","Frap","Mazagan"] let blue = UIColor(red: 23/255.0, green: 120/255.0, blue: 242/255.0, alpha: 1) var body: some View { VStack{ HStack{ Text("CoffeeBreak") .font(.system(size: 48, weight: .bold, design: .default)) .foregroundColor(Color(blue)) Spacer() Image(systemName: "person.circle") .resizable() .frame(width: 45, height: 45, alignment: /@START_MENU_TOKEN@/.center/@END_MENU_TOKEN@/) .foregroundColor(/@START_MENU_TOKEN@/.blue/@END_MENU_TOKEN@/) } .padding() TextField("Search...", text: $text) .padding(7) .background(Color(.systemGray5)) .cornerRadius(13) .padding(.horizontal, 15) ZStack{ Color(.secondarySystemBackground) ScrollView(.vertical){ VStack{ ScrollView(.horizontal, showsIndicators: false){ HStack(spacing: 3){ ForEach(stories, id: \self){name in Image(name) .resizable() .aspectRatio(contentMode: /@START_MENU_TOKEN@/.fill/@END_MENU_TOKEN@/) .frame(width: 140, height: 200, alignment: /@START_MENU_TOKEN@/.center/@END_MENU_TOKEN@/) .background(Color.red) .clipped() } } } } } } Spacer() } } }
struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView(text: .constant("")) } }