Post

Replies

Boosts

Views

Activity

Comment on Problem with UIBarButton menu
So the question is: who is self referring to ? Could you check ? Maybe it is to an instance that does not exist anymore. Could you try adding a capture of self ? UIAction(title: "Edit Value", image: UIImage(systemName: "square.and.pencil"), handler: { [self] (_) in
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’23
Comment on Impossible to reply to some thread even not marked locked
Thanks. I’ll try on other browsers.
Replies
Boosts
Views
Activity
Apr ’23
Comment on To pass Bool value in an enum variable of type someView
Thanks. Of course, I was misreading the precedence operators (I was reading it as   (self.isOn = newValue) ? .myTrue : .myFalse . And once you start reading incorrectly, it's hard to change one's mind.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on To pass Bool value in an enum variable of type someView
Yes, but my question was about the ternary pattern        condition    ?   :
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Conflicting arguments to generic parameter 'Content' on NavigationLink for @Binding var
Merci. Quelle est la View principale ? AfficherUneListe ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Why wont my decoder parse .json files
@techboss_11123 WHere does this code fit ? What do you show here ? And you do not answer on what T is and if it's an array… So please explain more clearly.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Using xcode 14.2 to code for the apple student swift challenge
@NinaGit You may find some information here as well: https://developer.apple.com/forums/thread/727471
Replies
Boosts
Views
Activity
Apr ’23
Comment on Problem with UIBarButton menu
What do you get in log when you print self.vLocal?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on What "Your app playground must be run on Xcode 14 on macOS 13" means?
That's much clearer than my explanation. Would be great to have this in the challenge rules.
Replies
Boosts
Views
Activity
Mar ’23
Comment on Problem with UIBarButton menu
So the question is: who is self referring to ? Could you check ? Maybe it is to an instance that does not exist anymore. Could you try adding a capture of self ? UIAction(title: "Edit Value", image: UIImage(systemName: "square.and.pencil"), handler: { [self] (_) in
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Problem with UIBarButton menu
Could you show the complete code of the class ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Problem with UIBarButton menu
The point would be to be able to test the code to find out the issue. What is self in self.edit ? What if you replace self.edit() by a call to a dummy func as func test() { print("Test", self) }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on NavigationLink and .navigationDestination Hang and Infinite Loop
The problem does not show in Preview, surprisingly…
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Problem with UIBarButton menu
Could you show the complete viewDidLoad ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on how to implement a tableview.notification in Swift
You mean Xcode 14.2 ? My question is: where did you find rowSelectionDidChange notification name ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Extra argument 'selection' in call error in ListView.
Could you show the code of the delete function ? The id you use is probably different from the id in ForEach.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23