Search results for

column

2,046 results found

Post

Replies

Boosts

Views

Activity

SwiftUI List scroll indicator stutters, does not call `onAppear` or `onDisappear` consistently in iOS 16
My team has been debugging problems with the SwiftUI List component this week. We have found that it's performance is sub-optimal on iOS 16. You can see a simple grid of images, the scroll indicator stutters when scrolling down: Now compare it to what happens when we use a ScrollView with a LazyVStack: (An error occurred while uploading my second image, but pretend you see a scroll indicator moving smoothly down the side of the screen). You can see the scroll indicator moves smoothly without issue. We also found that the ScrollView combined with a LazyVStack properly calls onDisappear, which enables us to call a cancel method on the async image loading code that we use for our individual cells in this example. Though in a previous question, it was asserted that onDisappear cannot be reliably expected to be called in a List, I do not feel that answer is correct or proper behavior. Is this a bug, or is this expected behavior on a List? This is the cell that is being rendered: struct UserGridCell: View { let sta
2
0
2.1k
Jul ’25
macOS 15.5 destroys SwiftUI Table Performance
Has anyone else noticed that macOS Sequoia 15.5 has a regression in SwiftUI Table scrolling performance? I have complex Tables in a SwiftUI app and they scroll adequately on macOS 15.4.1 but hang, beachball, and stutter while scrolling on macOS 15.5. The exact same build is running in both cases. (I've even reduced the table to three simple columns of text and STILL fail to get entirely smooth scrolling on macOS 15.5.) It's like someone just fundamentally broke Table on macOS. Has anyone else encountered this?
Topic: UI Frameworks SubTopic: SwiftUI
2
0
95
Jul ’25
Xcode 16.0 iOS 12 support
We are preparing builds using Xcode 16.0 given we have a large set of users on iOS 12. Now we have doubts wether we will run into issues if we ship using it (even if it compiles, archives and uploads successfully) given the table columns and content has changed since the last time we checked this table: https://developer.apple.com/support/xcode/. 1- Is the Deployment Targets range for Xcode 16 value correct for iOS? (On the 24th of February it had iOS 12-18, now it has iOS 15-18) 2- Are we OK to ship for iOS 12 using xcode 16.3? Thanks, Joao Garcia
2
0
387
Jul ’25
`ContextMenu` and `Menu` Item Layout: Icon/Title Order Discrepancy Between System and Custom Apps (iOS 26)
I've observed a difference in the layout of menu items within ContextMenu and Menu when comparing system applications to my own SwiftUI app, specifically concerning the order of icons and titles. On iOS 26, system apps (as shown in the image in the System App column) appear to display the item's icon before its title for certain menu items. However, in my SwiftUI app, when I use a Label (e.g. Label(Paste, systemImage: doc.on.clipboard)) or an HStack containing an Image and Text, the icon consistently appears after the title within both ContextMenu and Menu items. I'm aiming to achieve the icon first, then title layout as seen in system apps. My attempts to arrange this order using HStack directly within the Button's label closure: Menu { Button { /* ... */ } label: { HStack { Image(systemName: doc.on.clipboard) Text(String(localized: Paste)) } } // ... } label: { Text(タップミー) } seem to be overridden or restricted by the OS, which forces the icon to the leading position (as shown in the image in the Cu
1
0
152
Jul ’25
Reply to "FoundationModels GenerationError error 2" on iOS 26 beta 3
It is ridiculously restrictive. As it is, it's unusable in any real-world scenario. What here is dangerous? instructions: Read the user's input and tag it with the most relevant manifestation method from the list below. Use intent, topic, tone, or keywords in the input to choose the best match. Return only the method name listed in the right-hand column. Tag Mapping: “369 Manifestation” → manifest369method User Input:
Jul ’25
Reply to Imitating a grip on an object
Hi @Adamc93 Could you try replacing your thumbPos and littlePos calculations with the following code? let thumbPos = simd_make_float3((anchors.originFromAnchorTransform * thumb.anchorFromJointTransform).columns.3) let littlePos = simd_make_float3((anchors.originFromAnchorTransform * little.anchorFromJointTransform).columns.3) The key difference here being that by multiplying by the originFromAnchorTransform matrix the positions you've calculated will then be in world-space (instead of anchor-space), which is the same coordinate space that it appears your wandEntity is in as well. Just to be safe you can also update the code that sets the translation and rotation of your wandEntity to the following to ensure that you are updating the world-space position and orientation of your entity (as opposed to the local-space translation and rotation): wandEntity.setPosition(midPos, relativeTo: nil) wandEntity.setOrientation(rotation, relativeTo: nil) Let me know if you have any other questions! P.S. Co
Topic: Spatial Computing SubTopic: General Tags:
Jul ’25
AppConnect on Xcode Cloud workflow creation that repo can't be found or does not have admin rights, but neither are true
I'm setting up a first workflow in Xcode Cloud and when I go through the flow and reach the 'Grant Access to your source code' pane, my projects repo is listed as primary and has a green checkmark next to it, but one of my SPM dependencies does not. When I press the 'Grant Access' it launches AppStoreConnect which complains the repo can't be found or I don't have the correct admin permissions. I'm using BitBucket Cloud and both repos are mine and I am the admin for both. Xcode itself will build the dependency locally correctly. I did see that the dependent SPM package needs a Package.resolved checked in, which I've now done, but I can still no longer get past the Grant Access step. When I try to add myself as admin to the dependent repo, BitBucket says I can't be added because I'm already an admin. This is the same for the projects primary repo as well. But Xcode still thinks I only have read access. How do I get passed this? Xcode isn't even telling me what repo is troublesome: { category : xcode-cloud-data,
2
0
118
Jun ’25
Reply to ARKit camera transform orientation vector doesn't match physical device heading (despite `.gravityAndHeading`)
Hello @himanshujnaidu, I can't tell for sure but it sounds like the matrix you show above is different than how you are interpreting it. Camera Transform = simd_float4x4( [ [0.98446155, -0.030119859, 0.172998, 0.0], // column 0 [0.023979114, 0.9990097, 0.037477385, 0.0], // column 1 [-0.17395553, -0.032746706, 0.98420894, 0.0], // column 2 [0.024039675, -0.037087332, -0.22780673, 0.99999994] // column 3 ]) First up, keep in mind that float4x4's init method is column major. So each 'row' in that code is a column in the matrix. So in this case the position of the camera relative to the origin is 0.024039675, -0.037087332, -0.22780673 Second, the upper-left part of the float4x4 matrix is a float3x3 and represents the orientation. The eulerAngles property on the frame.camera re-interprets this 3x3 matrix as the familiar Euler angles. You can find the orientation of the camera relative to the frame via let rotation = frame.camera.eulerAngles rotation.y will be
Topic: Spatial Computing SubTopic: ARKit Tags:
Jun ’25
SwiftUI Table - Double Click Row While Retaining Single Click Selection Behavior
I have an AppKit application that I'm converting to SwiftUI and I'm having some difficulty understanding how to model a Table with single click and double click behavior. My table is relatively simple, it has 3 columns (possibly more in the future), the first with an icon, and the latter two with text. The two text fields are sortable, and the table requires multi-selection and row-based keybindings (return, delete), as well as double-click. The first surprising thing is that I cannot add those behaviors on the TableRow or even the TableCell but rather the views inside of them. That means the subviews must occupy the entire TableCell or else they will not capture the click event. That means repeating the same gestures for the contents of every cell (or wrapping all with the same view)? The second surprise is that adding an onTapGesture(count: 2) prevents the default row selection gesture from firing. Do I really need to re-implement row selection if I want double click support as well? Adding a onTap
3
0
2.3k
Sep ’22
Reply to Application is not able to access any keychain info on application launch post device reboot
[quote='844785022, neha24, /thread/788736?answerId=844785022#844785022, /profile/neha24'] Does SecItemDelete should also fail … in case of Device in locked state … right? [/quote] No. The keychain database as a whole is available at all times. Keychain item protection is implemented by encrypting specific attributes of the keychain item. When you read the item, the system goes to decrypt those attributes. If the required key material isn’t available, then the read operation fails. However, the system doesn’t need that key material in order to delete the item, and thus it’s possible to delete an item that you can’t currently access. This makes more sense if you have a little understanding of how the keychain actually works internally. Have a read of SecItem: Fundamentals, and specifically its The Four Freedoms^H^H^H^H^H^H^H^H Functions section. In that model, the content column of a row is encrypted (based on the kSecAttrAccessible column) but that doesn’t stop you from deleting the entire ro
Topic: Privacy & Security SubTopic: General Tags:
Jun ’25
Extend Family Control permission to app's extensions
I have tried multiple time through multiple channels and you have yet to respond to my request. I am developing an App on xcode APP Bundle ID: garymdmd.MediaPace Apple ID: 6740823496 Apple has granted me distribution use of the Family Control/Screentime module for my main app. According to your engineer's post here: https://developer.apple.com/forums/thread/764919 That permission should be extended to your extensions that are part of the app. When you try to setup the extension identifiers they do not show the added capabilities column that sow sup when getting permission for the main app so you are not able to endow the extension with these permissions which seem to be needed to work with the app. I am trying to add these bundle identifier extensions: garymdmd.MediaPace.ScreenTimeMonitorDuo garymdmd.MediaPace.DeviceActivityReport Can you please tell me how to get this to work or to add permissions to these extensions. I have sent in the request form multiple times (here - https://developer.apple.com
2
0
127
Jun ’25