Post

Replies

Boosts

Views

Activity

Comment on An alternative Swift method to PHP `pack()` method
As already noted, there's no direct equivalent of PHP pack() in any of Apple's frameworks and I have never find any third party libraries implementing PHP pack() in Swift. You may need to implement it all by yourself. When you write questions focused on some specific parts of your implementation with showing your code, many readers would try solving the issues.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’21
Comment on Subclassing a NSSearchField
you should better show more context (especially your code), to get better responses sooner Why don't you show your code enough to reproduce your issue? A few screen shots and very little explanation would not be appealing to many readers.
Topic: UI Frameworks SubTopic: AppKit Tags:
Nov ’21
Comment on Does unifiedContacts(matching:keysToFetch:) return only unified contacts and leave out non-unified contacts?
@ShinehahGnolaum, I'm not sure why anyone would fetch just the unified contacts. You may be misinterpreting what unified contacts mean. Better take enough time before marking an answer as SOLVED, you cannot unmark it. And as the editing feature is very limited in the dev forums, you may need to use Your Answer when showing some code.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’21
Comment on I can't get a button to work, instead I get this error: "Accessing StateObject's object without being installed on a View. This will create a new instance each time." Help?
We need to guess what are AccountBackEnd and PublishedClassAccount. (Please show enough code when asking. > @tylerlw82) But according the other parts of your code, they seem to be ObservableObjects -- reference type. In almost all cases, using @Published would not work as you expect when used with reference types. You need to modify far more parts than shown in this answer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Comment on An alternative Swift method to PHP `pack()` method
What is this method? Can you clarify?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on An alternative Swift method to PHP `pack()` method
As already noted, there's no direct equivalent of PHP pack() in any of Apple's frameworks and I have never find any third party libraries implementing PHP pack() in Swift. You may need to implement it all by yourself. When you write questions focused on some specific parts of your implementation with showing your code, many readers would try solving the issues.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on UIResponder doesNotRecognizeSelector crash on launch
@JChen37, You should better start your own thread with including enough context of your case. Not many readers would check the comments added to an old thread.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on Subclassing a NSSearchField
you should better show more context (especially your code), to get better responses sooner Why don't you show your code enough to reproduce your issue? A few screen shots and very little explanation would not be appealing to many readers.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on View pops automatically when in navigation view
Hard to say whether it is good or not. Many developers are still suffering to explore what would be the best practices in SwiftUI.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on running Simulators with pre iOS 12 versions?
Thanks for showing the additional info. But please remember you have just mentioned the combobox, but not that it was in the Create a new simulator window. Anyway, I have no clue as for now, it may be a problem of macOS Monterey 12.0.1 (I'm using Big Sur), or there may be something special which you have not mentioned yet.
Replies
Boosts
Views
Activity
Nov ’21
Comment on Does unifiedContacts(matching:keysToFetch:) return only unified contacts and leave out non-unified contacts?
@ShinehahGnolaum, I'm not sure why anyone would fetch just the unified contacts. You may be misinterpreting what unified contacts mean. Better take enough time before marking an answer as SOLVED, you cannot unmark it. And as the editing feature is very limited in the dev forums, you may need to use Your Answer when showing some code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on Went into trouble right at the start of Apple Education Develop with Swift Fundamentals
Happy to hear you have solved your issue. But unfortunately, storyboard connections may be corrupted or lost by various means, so hard to say what have caused this issue in your case. Anyway, you have learnt where to check and you can go on learning iOS development when another similar issue occurs.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on SwiftUI Table does not work when trying to use Int values
Please do not include two or more topic in a single thread. When you have a new question, you should start a new thread. (Even when many parts of them are related.)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on I can't get a button to work, instead I get this error: "Accessing StateObject's object without being installed on a View. This will create a new instance each time." Help?
am I doing any of this right? Right or wrong depends on the context. If you use them as @StateObject or @ObservedObject in a View, it may be right. But using them as an @Published property or somewhere else than a View, it is very likely to be wrong.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on I can't get a button to work, instead I get this error: "Accessing StateObject's object without being installed on a View. This will create a new instance each time." Help?
We need to guess what are AccountBackEnd and PublishedClassAccount. (Please show enough code when asking. > @tylerlw82) But according the other parts of your code, they seem to be ObservableObjects -- reference type. In almost all cases, using @Published would not work as you expect when used with reference types. You need to modify far more parts than shown in this answer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on Limit width of wheel style picker on iOS
@mmklug, Thanks for pointing it out. But I cannot find any other workaround till now. If you find one, please share it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on NavigationLink Issue on Device
I do not understand what you want to say. If you can make it work with your own way, please do it. Please share your code when done. Good luck.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on How do I use async/await with NotificationCenter?
Better start your own thread including the code which explains what you have tried till now.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on NavigationLink Issue on Device
Thanks. Then you have something special in the hidden parts of your project. Please show all the things to reproduce the issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21