Post

Replies

Boosts

Views

Activity

Reply to sf symbols right to left
Hi, you can use the environment modifier with the argument layouDirection and value rightToLeft like this: .environment(.layoutDirection, .rightToLeft) VStack { Image(systemName: "chart.bar.doc.horizontal.fill") .imageScale(.large) .foregroundColor(.mint) // right to left sfsymbol Image(systemName: "chart.bar.doc.horizontal.fill") .imageScale(.large) .foregroundColor(.mint) .environment(\.layoutDirection, .rightToLeft) } for more information https://developer.apple.com/videos/play/wwdc2022/10107/
Topic: Design SubTopic: General Tags:
Feb ’24
Reply to swiftUI | Missing arguments...
Hi Noel, I would like to help you. Unfortunately, the code is incomplete, so I can only assist to a limited extent. Please make sure to use the 'Environment' during observation. I recommend watching the video https://www.youtube.com/watch?v=jD6c9y8CFGQ&t=1793s. Regarding the first error in 'HomePageView.swift:63:37,' 'Missing argument for parameter 'forUser' in call,' and the function 'getUserData' expects a 'forUser' parameter, which you do not pass when calling it in the 'onAppear' block. I'd be happy to assist you further if you post the entire code here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’24
Reply to SwiftData confusing crash
I have experienced the same behavior and have added a button to regularly delete the data. I feel that during the development, when the data structure changes frequently, the application becomes buggy. Perhaps this might help you. func removeStoredData() { do { try context.delete(model: WorkoutModelItem.self) } catch { fatalError(error.localizedDescription) } } Before you start user testing, for example, in TestFlight, you can disable the button again.
Feb ’24
Reply to Issue with SwiftUI NavigationStack, Searchable Modifier, and Returning to Root View
Yes, by now I'm fairly sure it's a bug. I was able to reproduce the issue in all beta versions of iOS 18. The error is not present in the iOS 17 line. I've submitted a report in the Feedback Assistant with a sample Xcode project. FB15221588
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Issue with SwiftUI NavigationStack, Searchable Modifier, and Returning to Root View
The issue only occurs with iOS 18, but not with iOS 17.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to How can I create a custom SignInWithAppleButton that uses only the Apple logo and implements the onRequest and onCompletion logic?
unfortunately This modifier has no effect on iOS.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to sf symbols right to left
Hi, you can use the environment modifier with the argument layouDirection and value rightToLeft like this: .environment(.layoutDirection, .rightToLeft) VStack { Image(systemName: "chart.bar.doc.horizontal.fill") .imageScale(.large) .foregroundColor(.mint) // right to left sfsymbol Image(systemName: "chart.bar.doc.horizontal.fill") .imageScale(.large) .foregroundColor(.mint) .environment(\.layoutDirection, .rightToLeft) } for more information https://developer.apple.com/videos/play/wwdc2022/10107/
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to swiftUI | Missing arguments...
Hi Noel, I would like to help you. Unfortunately, the code is incomplete, so I can only assist to a limited extent. Please make sure to use the 'Environment' during observation. I recommend watching the video https://www.youtube.com/watch?v=jD6c9y8CFGQ&t=1793s. Regarding the first error in 'HomePageView.swift:63:37,' 'Missing argument for parameter 'forUser' in call,' and the function 'getUserData' expects a 'forUser' parameter, which you do not pass when calling it in the 'onAppear' block. I'd be happy to assist you further if you post the entire code here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to SwiftData confusing crash
I have experienced the same behavior and have added a button to regularly delete the data. I feel that during the development, when the data structure changes frequently, the application becomes buggy. Perhaps this might help you. func removeStoredData() { do { try context.delete(model: WorkoutModelItem.self) } catch { fatalError(error.localizedDescription) } } Before you start user testing, for example, in TestFlight, you can disable the button again.
Replies
Boosts
Views
Activity
Feb ’24
Reply to No sample code
https://developer.apple.com/documentation/SwiftUI/Building-a-document-based-app-using-SwiftData
Replies
Boosts
Views
Activity
Dec ’23
Reply to Macbook Pro crashing after updating to latest Xcode and mac OS. how do i resolve this ?
how can I report the bug to apple. I have the same issue. I was hoping that 13.3.1 would be better. unfortunately not. Same error same report?
Replies
Boosts
Views
Activity
Apr ’22
Reply to Kernel Panic with Xcode 13.3
same problem here
Replies
Boosts
Views
Activity
Mar ’22
Reply to Macbook Pro crashing after updating to latest Xcode and mac OS. how do i resolve this ?
Hi, I have the same problem with Xcode Version 13.3. I will downgrade to older version and will report about it
Replies
Boosts
Views
Activity
Mar ’22