Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Table on iPhone Duo
@DTS Engineer it definitely is a bug! And the thing is: the sample code is in your own documentation! I tried to append a sample project, but ZIP files (!) are NOT SUPPORTED as attachments?! WHAT?! You find the sample code to try yourself here: https://developer.apple.com/documentation/swiftui/table#Using-tables-on-different-platforms It says: Regular size class environments on iPadOS, visionOS, and the inner display of iPhone Duo will display headers and all of the columns in the table Just create an empty App project and copy that code in there... I'm sorry, but I am really mad about this: asking for a sample project and then not allow ZIPs to be attached! Get your things together, please! And I can't add a link, even though there is the button for it!! Here's your sample project: https://www.icloud.com/iclouddrive/07fRrL6wNgfzodqdidwUc8bDQ @DTS Engineer I know it's not your fault, I am really sorry about my mood here. But: you're really making it hard to help
Topic: UI Frameworks SubTopic: SwiftUI
1w
Reply to SwiftUI Table on iPhone Duo
The iPhone Duo doesn't report horizontalSizeClass == .compact if unfolded. That's one of the points. So the Table behaves like on iPhone, but it doesn't report the compact horizontalSize class. That's why Table doesn't work at all on iPhone Duo. Yes, I would love to create a ticket for this.
Topic: UI Frameworks SubTopic: SwiftUI
3w
Reply to SwiftUI Table on iPhone Duo
Hey Albert, thank you for your answer. I am trying to use the SwiftUI Table in my app on iPhone Duo. It works perfectly on iPad showing multiple columns and I would expect to do the same on iPhone Duo. You are right that I am using Split View in my app and I don't see why that should be an issue or how ArrangmentView should help. It's clear from the linked video that ArrangementView is not the right choice for this UI. The linked video does not say any word about SwiftUI Table. Are you sure you linked the right video? Do you check if the size class is compact? I am not sure if I understand what you mean by this question, as I clearly state that I check for the horizontalSizeClass being compact. To summarize: I expect the SwiftUI Table to show a "real" table on iPhone Duo when unfolded. But as you can see from the screenshot (that is taken from the iPhone Duo in simulator) that doesn't work as expected. My question would be: how do we correctly use SwiftUI Table on iPhone Duo? There is no information to be found on that. I think the current behaviour of the Table is a bug. Best regards, Christian Beer
Topic: UI Frameworks SubTopic: SwiftUI
3w
Reply to Invalid parameter not satisfying: parentEnvironment != nil
I just "fixed" the crash with this swizzle hack: extension UIFocusSystem { static func swizzle() { let originalSel = #selector(UIFocusSystem.updateFocusIfNeeded) let newSel = #selector(UIFocusSystem._updateFocusIfNeeded) let originalMethod = class_getInstanceMethod(self, originalSel)! let newMethod = class_getInstanceMethod(self, newSel)! method_exchangeImplementations(originalMethod, newMethod) } @objc func _updateFocusIfNeeded() { } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’26
Reply to Error "The operation couldn't be completed. (CPSErrorDomain error 2.)" in AppClip sheet
@DTS Engineer / Quinn, I was able to reproduce the CPSErrorDomain error 2 while writing a sysdiagnose. I attached a screenshot and the sysdiagnose file to https://feedbackassistant.apple.com/feedback/16601674 I am looking forward to your analysis, if possible. As soon as the AppClip specialist is back, I would be very interested into a DTS call if we can further help investigating this problem. Finding a solution is extremely important for us and our customers.
Topic: UI Frameworks SubTopic: General Tags:
Feb ’25
Reply to SwiftUI Table on iPhone Duo
@DTS Engineer it definitely is a bug! And the thing is: the sample code is in your own documentation! I tried to append a sample project, but ZIP files (!) are NOT SUPPORTED as attachments?! WHAT?! You find the sample code to try yourself here: https://developer.apple.com/documentation/swiftui/table#Using-tables-on-different-platforms It says: Regular size class environments on iPadOS, visionOS, and the inner display of iPhone Duo will display headers and all of the columns in the table Just create an empty App project and copy that code in there... I'm sorry, but I am really mad about this: asking for a sample project and then not allow ZIPs to be attached! Get your things together, please! And I can't add a link, even though there is the button for it!! Here's your sample project: https://www.icloud.com/iclouddrive/07fRrL6wNgfzodqdidwUc8bDQ @DTS Engineer I know it's not your fault, I am really sorry about my mood here. But: you're really making it hard to help
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
1w
Reply to SwiftUI Table on iPhone Duo
The iPhone Duo doesn't report horizontalSizeClass == .compact if unfolded. That's one of the points. So the Table behaves like on iPhone, but it doesn't report the compact horizontalSize class. That's why Table doesn't work at all on iPhone Duo. Yes, I would love to create a ticket for this.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
3w
Reply to SwiftUI Table on iPhone Duo
Hey Albert, thank you for your answer. I am trying to use the SwiftUI Table in my app on iPhone Duo. It works perfectly on iPad showing multiple columns and I would expect to do the same on iPhone Duo. You are right that I am using Split View in my app and I don't see why that should be an issue or how ArrangmentView should help. It's clear from the linked video that ArrangementView is not the right choice for this UI. The linked video does not say any word about SwiftUI Table. Are you sure you linked the right video? Do you check if the size class is compact? I am not sure if I understand what you mean by this question, as I clearly state that I check for the horizontalSizeClass being compact. To summarize: I expect the SwiftUI Table to show a "real" table on iPhone Duo when unfolded. But as you can see from the screenshot (that is taken from the iPhone Duo in simulator) that doesn't work as expected. My question would be: how do we correctly use SwiftUI Table on iPhone Duo? There is no information to be found on that. I think the current behaviour of the Table is a bug. Best regards, Christian Beer
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
3w
Reply to Invalid parameter not satisfying: parentEnvironment != nil
I just "fixed" the crash with this swizzle hack: extension UIFocusSystem { static func swizzle() { let originalSel = #selector(UIFocusSystem.updateFocusIfNeeded) let newSel = #selector(UIFocusSystem._updateFocusIfNeeded) let originalMethod = class_getInstanceMethod(self, originalSel)! let newMethod = class_getInstanceMethod(self, newSel)! method_exchangeImplementations(originalMethod, newMethod) } @objc func _updateFocusIfNeeded() { } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’26
Reply to Error "The operation couldn't be completed. (CPSErrorDomain error 2.)" in AppClip sheet
@DTS Engineer / Quinn, I was able to reproduce the CPSErrorDomain error 2 while writing a sysdiagnose. I attached a screenshot and the sysdiagnose file to https://feedbackassistant.apple.com/feedback/16601674 I am looking forward to your analysis, if possible. As soon as the AppClip specialist is back, I would be very interested into a DTS call if we can further help investigating this problem. Finding a solution is extremely important for us and our customers.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’25