Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

Reply to Error when loading (some) Audio Units on macOS 12
Looks like you’re making great progress here. but I have no prove that this version is sandboxed There are two ways to do that: Run the app, run Activity Monitor, find the app in the process list, and check the Sandbox column. You might need to control click on the list headers to enable that column. Check for the entitlement with codesign. I don’t have Logic installed, but here’s an example with GarageBand: % codesign -d --entitlements - /Applications/GarageBand.app … [Dict] … [Key] com.apple.security.app-sandbox [Value] [Bool] true … Having said that, working with GarageBand seems like the acid test to me. If an audio unit fails there, it’s worth reporting that as a bug against the audio unit. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Sep ’23
Reply to Custom Initializer Binding Problems
@Claude31 thank you for taking time to help me out, I really appreciate it. You're absolutely right, my code was much more complicated than it needed to be; having the columns in the original view makes much more sense. I'm new to coding, so sorry for the confusing and messy code haha. Thanks again for the help!
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’23
Reply to ToolbarItem has a bug in XCode 15 beta 8.
Please file a bug report at https://feedbackassistant.apple.com with this and post the feedback number here! In the meantime, try using a NavigationStack in the detail column. For example: } detail: { NavigationStack { ZStack { Text(Select : (selection ?? -1)) } .toolbar { ToolbarItem(placement: .topBarTrailing){ Button { } label: { Text(ToolbarItem) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’23
Custom Initializer Binding Problems
I'm trying to add sodas from ListView to ContentView and have that data passed on and update the view in AisleView. I'm having a lot of trouble getting my columnOne and columnTwo properties to update the AisleView correctly. I know the data is being passed to AisleView, but it isn't updating the actual view. I believe the issue is when I'm trying to initialize my columns. Any help would be appreciated. Thank you! class Inventory { var inventory: [Product] = [ Product(name: Coke, price: 2.99, aisle: 1, location: 10), Product(name: Pepsi, price: 3.99, aisle: 1, location: 6), Product(name: Dr. Pepper, price: 1.99, aisle: 2, location: 8), Product(name: Pibb, price: 1.50, aisle: 2, location: 1) ] } struct ListView: View { @State var base = Inventory() @State var sodas: [Product] = [] var body: some View { VStack { ContentView(sodas: $sodas) List { ForEach(base.inventory) { product in HStack { Text(product.name) Spacer() Text((product.price, specifier: %.2f)) Button { sodas.append(product) } label: { Image
5
0
603
Sep ’23
Reply to Xcode add header search path
The best way in Xcode to do this is: (using your example) Open Preferences Click Locations then the Custom Paths tab Click the + sign at the bottom left enter gst as the Name (no quotes) enter GST Headers as the Display Name (no quotes) enter the path name* to your gst folder as the Path In the Finder, right-click / option click / two-finger click the GST folder, then hold the option and you will see Copy change to Copy GST as Pathname. Do that and use paste it in for step 6 Ok no you have the first part. You created an Xcode system variable. The next part is to reference the Xcode variable in your project build settings by: Open the project Click on the folder button under the window close button Click on the blue project button/icon under the folder button In the column that appears to the right, click on another blue project button/icon In the row of tabs/buttons slightly higher and to the right, click on the Build Settings button/tab in the Filter text entry slightly lower than the tabs to the fa
Sep ’23
argsort stable flag not respected
For a tensorflow layer I need a multi column argsort. So I implemented the following function: import tensorflow as tf def multi_column_argsort(tensor, columns_order): sorted_indices = tf.range(start=0, limit=tf.shape(tensor)[0], dtype=tf.int32) for col in reversed(columns_order): col_vals = tf.gather(tensor[:, col], sorted_indices) col_argsort = tf.argsort(col_vals, stable=True) print(Column:, col) print(Column Values:, col_vals.numpy()) print(Col Argsort:, col_argsort.numpy()) print(Sorted Indices Before:, sorted_indices.numpy()) sorted_indices = tf.gather(sorted_indices, col_argsort) print(Sorted Indices After:, sorted_indices.numpy()) print(---) return sorted_indices After debugging this function for a while I found out that it was not sorting the 3 columns as expected because the argsort were not stable i.e. did not respect the previous sorting. To test this I used the following example: points = tf.constant([[1.1, 2.0, 0.1], [1.1, 1.0, 0.2], [2.2, 1.0, 0.1], [1.1, 2.0
0
0
451
Aug ’23
Query encountered an error: SwiftData.SwiftDataError(_error: SwiftData.SwiftDataError._Error.unsupportedPredicate) swiftdata
I am working on a SwiftData app, and when I query any of the ones with the Predicate (NOT Predicate) I get Query encountered an error: SwiftData.SwiftDataError(_error: SwiftData.SwiftDataError._Error.unsupportedPredicate). The code for my file is below. import SwiftData import SwiftUI struct timeListView: View { @Environment(.modelContext) var modelContext @Query(sort: Time.date, order: .reverse) var times: [Time] @Query(filter: #Predicate { time in time.unfortime! < 6000 }, sort: Time.date, order: .reverse) var timesSub60: [Time] @Query(filter: #Predicate { time in time.unfortime! < 3000 }, sort: Time.date, order: .reverse) var timesSub30: [Time] @Query(filter: #Predicate { time in time.unfortime! < 2000 }, sort: Time.date, order: .reverse) var timesSub20: [Time] @Query(filter: #Predicate { time in time.unfortime! < 1000 }, sort: Time.date, order: .reverse) var timesSub10: [Time] @Query(filter: #Predicate { time in time.unfortime! < 500 }, sort: .date, order: .reverse) var timesSub5: [Time] @Q
0
0
1k
Aug ’23
Reply to TestFlight testers status is blank
Yesterday, half of my testers showed status of - and had lost the count of sessions. Now, that External Testers group has completely disappeared. In fact there is no longer an External Testers section in the left column of the screen. However I do have All Testers under General Information where I can see everyone, with the correct status and number of sessions etc. Possibly related: initially I didn't have External Testers. A random stack-overflow post told me that External Testers only appears once you have created an Internal Testers group. So I created an empty internal testers group, then created an external testers group, then removed the internal group. I reported this as bug FB12769342, but Apple say it is the intended behaviour (*). That was all about three weeks ago. It was OK until today; now I can't see External Testers again. Maybe I shouldn't have deleted the empty internal testers group. Do others whose status is showing - find that the correct info is shown in All Testers? (*) I'm a o
Aug ’23
Reply to UISplitViewController displays button to change the display mode even when presentsWithGesture = false
This is kinda an edge case? Might be considered a bug. This is specific logic to cover a case where there is a back action and a split view controller which is a fairly rare configuration. We likely forgot about this specific detail when accounting for this configuration. The goal is to ensure that developers don't accidentally prevent access to the primary column of the split view controller, since normally the back action would handle that.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’23
Reply to NavigationSplitView two and three column interfaces in the same app
I work on a predominantly SwiftUI app, but I managed to achieve this using two UISplitViewControllers and contain my SwiftUI views inside that. I basiccally made an outer two column UISplitViewController. The detail view there is a SwiftUI view that either shows one big view or a UIVIewRepresentable that houses another UISplitViewController, depending on sidebar selection. When that inner splitview is shown, I set the outer nav bar to hidden so just the inner splitview's navbar shows. It took a lot of fiddling with the column behaviours to get it to work just right, but it does work. Although once in a while I see crashes when rotating the iPad which may be attributed to SwiftUI trying to deal with two navigation controllers in the two different splitviews. I've also raised FB12586131 to ask that UISplitViewController and NavigationSplitView support proper switching between two and three column modes. All we really need is a way to hide the middle column only.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’23
Tensor indexing
I have probably found a bug when indexing tensors with tensorflow-metal. It is best demonstrated by the following minimal example: import tensorflow as tf print(tf.constant([[1, 2], [3, 4]], dtype=tf.float32)[..., :2, 1]) The expected result is [2, 4] (i.e. the second column of the matrix) which is what I get when tensorflow-metal is not installed (and on other non-Apple machines), but using tensorflow-metal I get [2, 2] (i.e. the first element of the column is repeated - this also happens if there are more than two rows). The following conditions seem to be necessary in order to trigger this behavior: dtype must be float32; it works correctly with float64, int32 and int64. the sequence of ellipsis (for batch axes), stride (for row), index (for column) is critical; i.e. it does work correctly when the column is also a stride, and it does work if the row is a single number or the full slice :. the indexed tensor does not actually have batch axes (the ellipsis is there becaus
0
0
481
Aug ’23
swiftui offset of scrollable tab is initialized when tab is converting
Hello, Everyone, I'm developing ios app and have a question. one case that screen of my app has multiple tab including each scrollview, when I change tab scroll offset is initialized. Search.Tag is identifiable and id is different each. and FeedListModel is identifiable also. what's the problem, please give me a tip. This is my screenshot and codes. TabView(selection: $model.selected) { ForEach(model.listByTag, id: .key) { (tag, list) in SearchMoreTab( model: model, feedList: list, tag: tag, stickyHeaderHeight: $stickyHeaderHeight, defaultStickyHeaderHeight: defaultStickyHeaderHeight) .tag(tag) } struct SearchMoreTab: View { @ObservedObject var model: SearchMoreModel @ObservedObject var feedList: FeedListModel let tag: Search.Tag @Binding var stickyHeaderHeight: Float let defaultStickyHeaderHeight: Float // scrollableHeight = contentHeight - scrollViewHeight @State var lastScrollOffset: CGFloat = .zero @State var scrollOffset: CGFloat = .zero @State var contentHeight: CGFloat = .zero @State var scrollHeight:
0
0
1k
Aug ’23
Reply to Error when loading (some) Audio Units on macOS 12
Looks like you’re making great progress here. but I have no prove that this version is sandboxed There are two ways to do that: Run the app, run Activity Monitor, find the app in the process list, and check the Sandbox column. You might need to control click on the list headers to enable that column. Check for the entitlement with codesign. I don’t have Logic installed, but here’s an example with GarageBand: % codesign -d --entitlements - /Applications/GarageBand.app … [Dict] … [Key] com.apple.security.app-sandbox [Value] [Bool] true … Having said that, working with GarageBand seems like the acid test to me. If an audio unit fails there, it’s worth reporting that as a bug against the audio unit. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Custom Initializer Binding Problems
@Claude31 thank you for taking time to help me out, I really appreciate it. You're absolutely right, my code was much more complicated than it needed to be; having the columns in the original view makes much more sense. I'm new to coding, so sorry for the confusing and messy code haha. Thanks again for the help!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to ToolbarItem has a bug in XCode 15 beta 8.
Please file a bug report at https://feedbackassistant.apple.com with this and post the feedback number here! In the meantime, try using a NavigationStack in the detail column. For example: } detail: { NavigationStack { ZStack { Text(Select : (selection ?? -1)) } .toolbar { ToolbarItem(placement: .topBarTrailing){ Button { } label: { Text(ToolbarItem) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23
Custom Initializer Binding Problems
I'm trying to add sodas from ListView to ContentView and have that data passed on and update the view in AisleView. I'm having a lot of trouble getting my columnOne and columnTwo properties to update the AisleView correctly. I know the data is being passed to AisleView, but it isn't updating the actual view. I believe the issue is when I'm trying to initialize my columns. Any help would be appreciated. Thank you! class Inventory { var inventory: [Product] = [ Product(name: Coke, price: 2.99, aisle: 1, location: 10), Product(name: Pepsi, price: 3.99, aisle: 1, location: 6), Product(name: Dr. Pepper, price: 1.99, aisle: 2, location: 8), Product(name: Pibb, price: 1.50, aisle: 2, location: 1) ] } struct ListView: View { @State var base = Inventory() @State var sodas: [Product] = [] var body: some View { VStack { ContentView(sodas: $sodas) List { ForEach(base.inventory) { product in HStack { Text(product.name) Spacer() Text((product.price, specifier: %.2f)) Button { sodas.append(product) } label: { Image
Replies
5
Boosts
0
Views
603
Activity
Sep ’23
Reply to Xcode add header search path
The best way in Xcode to do this is: (using your example) Open Preferences Click Locations then the Custom Paths tab Click the + sign at the bottom left enter gst as the Name (no quotes) enter GST Headers as the Display Name (no quotes) enter the path name* to your gst folder as the Path In the Finder, right-click / option click / two-finger click the GST folder, then hold the option and you will see Copy change to Copy GST as Pathname. Do that and use paste it in for step 6 Ok no you have the first part. You created an Xcode system variable. The next part is to reference the Xcode variable in your project build settings by: Open the project Click on the folder button under the window close button Click on the blue project button/icon under the folder button In the column that appears to the right, click on another blue project button/icon In the row of tabs/buttons slightly higher and to the right, click on the Build Settings button/tab in the Filter text entry slightly lower than the tabs to the fa
Replies
Boosts
Views
Activity
Sep ’23
TN3154: Adopting SwiftUI navigation split view
Use navigation split view to enable two and three column navigation in your SwiftUI app while maintaining compatibility with earlier OS versions. View Technote TN3154 >
Replies
0
Boosts
0
Views
936
Activity
Aug ’23
argsort stable flag not respected
For a tensorflow layer I need a multi column argsort. So I implemented the following function: import tensorflow as tf def multi_column_argsort(tensor, columns_order): sorted_indices = tf.range(start=0, limit=tf.shape(tensor)[0], dtype=tf.int32) for col in reversed(columns_order): col_vals = tf.gather(tensor[:, col], sorted_indices) col_argsort = tf.argsort(col_vals, stable=True) print(Column:, col) print(Column Values:, col_vals.numpy()) print(Col Argsort:, col_argsort.numpy()) print(Sorted Indices Before:, sorted_indices.numpy()) sorted_indices = tf.gather(sorted_indices, col_argsort) print(Sorted Indices After:, sorted_indices.numpy()) print(---) return sorted_indices After debugging this function for a while I found out that it was not sorting the 3 columns as expected because the argsort were not stable i.e. did not respect the previous sorting. To test this I used the following example: points = tf.constant([[1.1, 2.0, 0.1], [1.1, 1.0, 0.2], [2.2, 1.0, 0.1], [1.1, 2.0
Replies
0
Boosts
0
Views
451
Activity
Aug ’23
Query encountered an error: SwiftData.SwiftDataError(_error: SwiftData.SwiftDataError._Error.unsupportedPredicate) swiftdata
I am working on a SwiftData app, and when I query any of the ones with the Predicate (NOT Predicate) I get Query encountered an error: SwiftData.SwiftDataError(_error: SwiftData.SwiftDataError._Error.unsupportedPredicate). The code for my file is below. import SwiftData import SwiftUI struct timeListView: View { @Environment(.modelContext) var modelContext @Query(sort: Time.date, order: .reverse) var times: [Time] @Query(filter: #Predicate { time in time.unfortime! < 6000 }, sort: Time.date, order: .reverse) var timesSub60: [Time] @Query(filter: #Predicate { time in time.unfortime! < 3000 }, sort: Time.date, order: .reverse) var timesSub30: [Time] @Query(filter: #Predicate { time in time.unfortime! < 2000 }, sort: Time.date, order: .reverse) var timesSub20: [Time] @Query(filter: #Predicate { time in time.unfortime! < 1000 }, sort: Time.date, order: .reverse) var timesSub10: [Time] @Query(filter: #Predicate { time in time.unfortime! < 500 }, sort: .date, order: .reverse) var timesSub5: [Time] @Q
Replies
0
Boosts
0
Views
1k
Activity
Aug ’23
Reply to TestFlight testers status is blank
Yesterday, half of my testers showed status of - and had lost the count of sessions. Now, that External Testers group has completely disappeared. In fact there is no longer an External Testers section in the left column of the screen. However I do have All Testers under General Information where I can see everyone, with the correct status and number of sessions etc. Possibly related: initially I didn't have External Testers. A random stack-overflow post told me that External Testers only appears once you have created an Internal Testers group. So I created an empty internal testers group, then created an external testers group, then removed the internal group. I reported this as bug FB12769342, but Apple say it is the intended behaviour (*). That was all about three weeks ago. It was OK until today; now I can't see External Testers again. Maybe I shouldn't have deleted the empty internal testers group. Do others whose status is showing - find that the correct info is shown in All Testers? (*) I'm a o
Replies
Boosts
Views
Activity
Aug ’23
Reply to UISplitViewController displays button to change the display mode even when presentsWithGesture = false
This is kinda an edge case? Might be considered a bug. This is specific logic to cover a case where there is a back action and a split view controller which is a fairly rare configuration. We likely forgot about this specific detail when accounting for this configuration. The goal is to ensure that developers don't accidentally prevent access to the primary column of the split view controller, since normally the back action would handle that.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to NavigationSplitView two and three column interfaces in the same app
Also worth noting that Apple does do two to three column transitions in the Music app on iPad. If you open Music in Landscape mode you see two columns. But if you tap Artists in the sidebar you see three columns. So I suggest filing Feedback asking for official support of this behaviour.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to NavigationSplitView two and three column interfaces in the same app
I work on a predominantly SwiftUI app, but I managed to achieve this using two UISplitViewControllers and contain my SwiftUI views inside that. I basiccally made an outer two column UISplitViewController. The detail view there is a SwiftUI view that either shows one big view or a UIVIewRepresentable that houses another UISplitViewController, depending on sidebar selection. When that inner splitview is shown, I set the outer nav bar to hidden so just the inner splitview's navbar shows. It took a lot of fiddling with the column behaviours to get it to work just right, but it does work. Although once in a while I see crashes when rotating the iPad which may be attributed to SwiftUI trying to deal with two navigation controllers in the two different splitviews. I've also raised FB12586131 to ask that UISplitViewController and NavigationSplitView support proper switching between two and three column modes. All we really need is a way to hide the middle column only.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Provisioning Profile Expired
Hi, I was about to delete the expired provisioning profiles, meaning the ones where it said Expired in the last column. Now I see there are some more where the expiration date is clearly in the past, but they don't show as expired. Any idea why that is? Kind regards Thomas
Replies
0
Boosts
0
Views
599
Activity
Aug ’23
Tensor indexing
I have probably found a bug when indexing tensors with tensorflow-metal. It is best demonstrated by the following minimal example: import tensorflow as tf print(tf.constant([[1, 2], [3, 4]], dtype=tf.float32)[..., :2, 1]) The expected result is [2, 4] (i.e. the second column of the matrix) which is what I get when tensorflow-metal is not installed (and on other non-Apple machines), but using tensorflow-metal I get [2, 2] (i.e. the first element of the column is repeated - this also happens if there are more than two rows). The following conditions seem to be necessary in order to trigger this behavior: dtype must be float32; it works correctly with float64, int32 and int64. the sequence of ellipsis (for batch axes), stride (for row), index (for column) is critical; i.e. it does work correctly when the column is also a stride, and it does work if the row is a single number or the full slice :. the indexed tensor does not actually have batch axes (the ellipsis is there becaus
Replies
0
Boosts
0
Views
481
Activity
Aug ’23
swiftui offset of scrollable tab is initialized when tab is converting
Hello, Everyone, I'm developing ios app and have a question. one case that screen of my app has multiple tab including each scrollview, when I change tab scroll offset is initialized. Search.Tag is identifiable and id is different each. and FeedListModel is identifiable also. what's the problem, please give me a tip. This is my screenshot and codes. TabView(selection: $model.selected) { ForEach(model.listByTag, id: .key) { (tag, list) in SearchMoreTab( model: model, feedList: list, tag: tag, stickyHeaderHeight: $stickyHeaderHeight, defaultStickyHeaderHeight: defaultStickyHeaderHeight) .tag(tag) } struct SearchMoreTab: View { @ObservedObject var model: SearchMoreModel @ObservedObject var feedList: FeedListModel let tag: Search.Tag @Binding var stickyHeaderHeight: Float let defaultStickyHeaderHeight: Float // scrollableHeight = contentHeight - scrollViewHeight @State var lastScrollOffset: CGFloat = .zero @State var scrollOffset: CGFloat = .zero @State var contentHeight: CGFloat = .zero @State var scrollHeight:
Replies
0
Boosts
0
Views
1k
Activity
Aug ’23