Post

Replies

Boosts

Views

Activity

Reply to UIView (UIButton) Won't re-render after label updates
Change this class FilterFormViewController: UIViewController, UITextFieldDelegate { @Binding var status: String @Binding var type: String @Binding var resultCount: Int @Binding var showFilterSelectionView: Bool init(status: Binding<String>, type: Binding<String>, resultCount: Binding<Int>, showFilterSelectionView: Binding<Bool>) { self._status = status self._type = type self._resultCount = resultCount self._showFilterSelectionView = showFilterSelectionView super.init(nibName: nil, bundle: nil) } To class FilterFormViewController: UIViewController, UITextFieldDelegate { var status: String { didSet { // assign status to UIKit control } } var type: String { didSet { // assign type to UIKit control } } var resultCount: Int { didSet { // assign resultCount to UIKit control submitButton.setTitle("Show \(self.resultCount) results", state: .normal) } } var showFilterSelectionView: Bool let submitButton: UIButton init(status: String, type: String, resultCount: Int, showFilterSelectionView: Bool) { self.status = status self.type = type self.resultCount = resultCount self.showFilterSelectionView = showFilterSelectionView super.init(nibName: nil, bundle: nil) submitButton = UIButton() submitButton.isEnabled = true submitButton.addTarget(self, action: #selector(hideFilters), for: .touchUpInside) } You're trying to use SwiftUI patterns in UIKit, this won't work. Because the View Controller is being updated by the feedback from updateUIViewController method of the UIView Controller Representable in response to incoming changes from the view model publishers. The view model is pushing data down or over to the view controller not from view controller to view model. If you want to push data from the view controller back to the swiftui view model, you will need to delegate protocols or call back handlers so when the data changes on the UIKit side of the code the call back handlers will pass this data back to the Bindings independent of the updateUIViewController life cycle updates.
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’23
Reply to certificate is not trusted
What should I do? Thanks for taking the time to read this. Dictionary Definitions from Oxford Languages · Learn more Get with the program INFORMAL•NORTH AMERICAN do what is expected of one; adopt the prevailing viewpoint. "come on you guys—get with the Xcode 15 program!" Automatic code signing is probably no longer supported for this version of Xcode
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’23
Reply to Reached Limit of created certificates and not able to revoke older ones
Your approach is wrong altogether. Yes one certificate can be used to code sign multiple apps for various clients or downloads outside of the macApp Store but for something like this you should be using the https://developer.apple.com/app-store/small-business-program/ You have exhausted all of your certs and will or might have to wait until the developer account renewal takes place.
Topic: Code Signing SubTopic: General Tags:
Dec ’23
Reply to Backyard Sample App Testing code
There is no unit testing code.
Replies
Boosts
Views
Activity
Dec ’23
Reply to App renders as a black on screen
Please post all questions related to Google's flutter on their respective forums or Github repo for them to fix.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to UIView (UIButton) Won't re-render after label updates
Change this class FilterFormViewController: UIViewController, UITextFieldDelegate { @Binding var status: String @Binding var type: String @Binding var resultCount: Int @Binding var showFilterSelectionView: Bool init(status: Binding<String>, type: Binding<String>, resultCount: Binding<Int>, showFilterSelectionView: Binding<Bool>) { self._status = status self._type = type self._resultCount = resultCount self._showFilterSelectionView = showFilterSelectionView super.init(nibName: nil, bundle: nil) } To class FilterFormViewController: UIViewController, UITextFieldDelegate { var status: String { didSet { // assign status to UIKit control } } var type: String { didSet { // assign type to UIKit control } } var resultCount: Int { didSet { // assign resultCount to UIKit control submitButton.setTitle("Show \(self.resultCount) results", state: .normal) } } var showFilterSelectionView: Bool let submitButton: UIButton init(status: String, type: String, resultCount: Int, showFilterSelectionView: Bool) { self.status = status self.type = type self.resultCount = resultCount self.showFilterSelectionView = showFilterSelectionView super.init(nibName: nil, bundle: nil) submitButton = UIButton() submitButton.isEnabled = true submitButton.addTarget(self, action: #selector(hideFilters), for: .touchUpInside) } You're trying to use SwiftUI patterns in UIKit, this won't work. Because the View Controller is being updated by the feedback from updateUIViewController method of the UIView Controller Representable in response to incoming changes from the view model publishers. The view model is pushing data down or over to the view controller not from view controller to view model. If you want to push data from the view controller back to the swiftui view model, you will need to delegate protocols or call back handlers so when the data changes on the UIKit side of the code the call back handlers will pass this data back to the Bindings independent of the updateUIViewController life cycle updates.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to certificate is not trusted
What should I do? Thanks for taking the time to read this. Dictionary Definitions from Oxford Languages · Learn more Get with the program INFORMAL•NORTH AMERICAN do what is expected of one; adopt the prevailing viewpoint. "come on you guys—get with the Xcode 15 program!" Automatic code signing is probably no longer supported for this version of Xcode
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to SwiftData Unexpected type for CompositeAttribute
Questions 1 Why are you using Codable with a @Model type? 2 Why are you not using the SwiftData relationship attribute to define the relationship between foo and some struct or vice versa? If you're transmitting foo or some struct as JSON over the wire, then you shouldn't mix the swift data models with codables.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Is it possible to separate WatchApp from its companion iOS App to a different project and remain connectible?
No, it is not possible.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to "Cycle inside Runner; building could produce unreliable results." Xcode Error
Please post your Flutter issues on the Flutter support or developer portal on Git Hub or Google. Flutter is not an Apple product.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Beyond the visionOS virtual machine
Apply for a VisionOS Kit here https://developer.apple.com/visionos/developer-kit/
Replies
Boosts
Views
Activity
Dec ’23
Reply to Run macOS application in Github Actions
Wrong forum, please reach out to github support.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to iOS 17.3 network crash
Is there a question in the above somewhere?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to CKModifyRecordsOperation records limit?
Or you can wipe the repository clean and start over via the cloud kit console.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Reached Limit of created certificates and not able to revoke older ones
Your approach is wrong altogether. Yes one certificate can be used to code sign multiple apps for various clients or downloads outside of the macApp Store but for something like this you should be using the https://developer.apple.com/app-store/small-business-program/ You have exhausted all of your certs and will or might have to wait until the developer account renewal takes place.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Membership expires in 5 days (Renewal )
Apple corporate is usually out of the office during this time of the year. If you have a credit card attached to your developer account to cover your membership renewal just wait for on or after the renewal date for the payment to be processed.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Direct Access to macOS Text Replacements
Text replacements? Please elaborate.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Undefined symbols: Linker command failed with exit code 1 (use -v to see invocation)
Are you using Mac catalyst? I saw a November response on the google repo referring to iOS support only. If these views are UIView based views then there is no way they will ever work natively on macOS (AppKit) without the help of macCatalyst or Designed for iPad destinations added to the target you’re coding against.
Replies
Boosts
Views
Activity
Dec ’23