Posts

Post not yet marked as solved
1 Replies
0 Views
Sorry I didn't express myself clearly. I want to turn this UIKit view into a SwiftUI view. How can I do that?
Post not yet marked as solved
1 Replies
0 Views
Sorry I did not mean grid view but something like in this attachment. So I want to add to this view a detail view that you can view the images a bit bigger.
Post not yet marked as solved
3 Replies
0 Views
Then these problems will occur. And I don't understand why. Can someone help me?
Post not yet marked as solved
3 Replies
0 Views
struct heartTextSquareView: View {     @State private var name: String = ""     @State private var adresse: String = ""     @State var telefonnummer: String = ""     @State var something: String = ""     var body: some View {         VStack {             List {                 TextField("Name/Vorname", text: $name)                 TextField("Adresse", text: $adresse)                 Button(action: { print("Telefonnummer")}) {                                Image(systemName: "plus.circle.fill")                                     .foregroundColor(Color(.systemGreen))                 }                             }
Post not yet marked as solved
2 Replies
0 Views
var body: some View {         NavigationView {             VStack {                                  Image(systemName: "cross.fill")                     .font(.system(size: 150))                     .foregroundColor(Color(.systemRed))                                                   Text("SOS")                     .font(.system(size: 40, weight: .bold))             }                                       .toolbar{                 ToolbarItemGroup(placement: .bottomBar) {                     Image(systemName: "cross.fill")                         .font(.system(size: 30.0))                         .foregroundColor(Color(.systemRed))                                                                   Spacer()                                          NavigationLink(destination: heartTextSquareView().navigationBarBackButtonHidden(true)) {                         Image(systemName: "heart.text.square")                             .font(.system(size: 30.0))                             .foregroundColor(Color(.systemRed))                          }                                                               Spacer()                                          NavigationLink(destination: keyView().navigationBarBackButtonHidden(true)) {                         Image (systemName: "key")                             .font(.system(size: 30.0))                             .foregroundColor(Color(.systemRed))                     }                                                               Spacer()                                          Image (systemName: "gearshape")                         .font(.system(size: 30))                         .foregroundColor(Color(.systemRed))                 }                              }                                                             }                       }