Post

Replies

Boosts

Views

Activity

Reply to Xcode preview crashes all the time
Hi Thank you all for your swift response and great suggestions. But I guess the problem isn't Xcode or the preview. I think it has something to do that I dont't pass the CoreData instance the right way. I tried once with the ".environment" but it didn't work. Does someone have an idea? @Environment(\.managedObjectContext) var moc static var previews: some View { AddListView() .environment(.managedObjectContext, DataController(name: "preview").container.viewContext)) } } This is how the crash looks like:
Jul ’23
Reply to Action Button(Textfield)
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))                 }                             }
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’21
Reply to Action Button(Textfield)
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))                 }             }
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’21
Reply to NavigationLink issue
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))                 }                              }                                                             }                       }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Xcode Cloud code signing issue
I was able to solve the problem by deleting all the certificates. So Xcode Cloud automatically created new ones and it works again.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Apple activity ring(sparkle)
I wrote Paul Hudson on Slack, but he didn't answer unfortunately. But good idea I'll try it on Mastodon. Thank you.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Xcode preview crashes all the time
Hi Thank you all for your swift response and great suggestions. But I guess the problem isn't Xcode or the preview. I think it has something to do that I dont't pass the CoreData instance the right way. I tried once with the ".environment" but it didn't work. Does someone have an idea? @Environment(\.managedObjectContext) var moc static var previews: some View { AddListView() .environment(.managedObjectContext, DataController(name: "preview").container.viewContext)) } } This is how the crash looks like:
Replies
Boosts
Views
Activity
Jul ’23
Reply to AR quick look integration
Sorry I didn't express myself clearly. I want to turn this UIKit view into a SwiftUI view. How can I do that?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to How to add DetailView?
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Action Button(Textfield)
Then these problems will occur. And I don't understand why. Can someone help me?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Action Button(Textfield)
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))                 }                             }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Action Button(Textfield)
Sorry I didn't want that
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Action Button(Textfield)
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))                 }             }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Action Button(Textfield)
So if you tap on the plus button in the text field, I want it to create a new text field if you have several phone numbers, for example.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to NavigationLink issue
Yes I can do that.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to NavigationLink issue
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))                 }                              }                                                             }                       }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21