Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

How to hide stacked navigation bars when using SwiftUI inspector in UISplitViewController secondary column
During WWDC Q&As I asked how I could add an inspector to my UIKit app that’s using UISplitViewController with a double column style featuring a sidebar and detail view controller. I initially tried a full-height inspector (by putting my split view controller into a SwiftUI view and applying the inspector on that, embedding that into a UIHostingController to be the rootViewController) but this caused a bunch of UI bugs (seemingly related to optimizations made for a size class that doesn’t match the actual appearance) and it doesn’t extend into the NSToolbar on Mac Catalyst anyways. I now want to try implementing the under-the-toolbar solution. An engineer said: For an under toolbar appearance, you should be able to use .inspector on the detail view controller (after wrapping it in a SwiftUI view), but you may have to do manual toolbar management here (hiding and showing) to make sure you don't end up with stacked toolbars/UINavigationBars I have indeed run into the problem with two navigation bars
0
0
1.3k
Jun ’23
Reply to Plist max size
Its tables with numbers in format 00.00 or 0.00000 200-300 rowsabout 100 columns It’s a reference table, to get correct value by column and row nameAs an example, here is multiply table 1 2 31 1 2 32 2 4 33 3 6 9So, basically, to calculate some values, I need to get reference value from one or two tables.For examplex = (a+b+c)/(get value from table A for 2*3)
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’17
Reply to SwiftUI Table Limit of Columns?
One way to this is to use multiple TableColumnBuilder objects. Using Group removes the ability to sort via the column headers, and fancy column customization was failing for me too. TableColumnBuilders also create more easily organized code. https://developer.apple.com/documentation/swiftui/tablecolumnbuilder/ @TableColumnBuilder> var tableColumns1: some TableColumnContent> { TableColumn( ... Table(of: ObjectType.self, selection: $selection, sortOrder: $sortOrder, columnCustomization: $columnCustomization) { tableColumns1 tableColumns2 tableColumns3 } rows: { ForEach(filteredCompositions) { obj in TableRow(obj) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to iOS 16.1 Crashes when scroll (LazyVStack and LazyVGrid)
Can reproduce this with Xcode Version 15.1 beta 3 (15C5059c) deploying to iPhone 14 Pro running iOS 17.1.1. Make a test project with Apple's LazyVGrid sample code. Launch app in portrait, scroll to bottom, rotate to landscape, rotate to portrait, scroll to top, crash! let columns = [GridItem(.flexible()), GridItem(.flexible())] var body: some View { ScrollView { LazyVGrid(columns: columns) { ForEach(0x1f600...0x1f679, id: .self) { value in Text(String(format: %x, value)) Text(emoji(value)) .font(.largeTitle) } } } } private func emoji(_ value: Int) -> String { guard let scalar = UnicodeScalar(value) else { return ? } return String(Character(scalar)) } id: .self tut tut Apple sample code developer! (this is not the cause of this crash though).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to Xcode Build Failure
May be because image is upside down 😉 When you post a message, make it easy to use: image in correct orientation complete code so that one can test, in text, not only screenshot full error message Seems it is a problem to type check shelterViewModel.getShelter (row: row, column: column).productId == ViewConstants.LAYOUT_DUMMY_ what is productId type ? How are ViewConstants defined ? What is .LAYOUT_DUMMY_ ? Which type ? If it is not exactly the same as productId, then the error. Note: tests as shelterViewModel.getShelterOperationFormat() != true may be written !shelterViewModel.getShelterOperationFormat()
Apr ’25
Reply to NavigationSplitView macOS
While we can't share exactly how this was done in the Mail app, I was able to achieve a similar layout with the following code: NavigationSplitView { // ... } content: { VStack { HStack{ sampleButton sampleButton } .cornerRadius(12) .padding(.top) List() { ForEach(0..<10) { index in Text(Email (index)) } } } } detail: { ContentUnavailableView(Select an email, systemImage: envelope) .toolbar { sampleButton } } To make certain columns collapsable, see NavigationSplitViewVisibility. This would require adding a @State to manage column visibility. Feel free to change it to your liking.  Travis
Topic: UI Frameworks SubTopic: SwiftUI
4d
Where has Column browser in "Music" gone? Why is the Dupe process so occluded?
Once upon a time, iTunes (R.I.P.) had a very nice feature that allowed a top file browser which allowed you to browse sogs, artist,and album indifvidually. Such a nice feature. Easiest way to find dupe songs because you could select individual artist or Albums and see the titles in iTunes. That's gone. Speaking of dupes, why was the duplicate finding feature so gutted. In 10.14, you select Library/Show Duplicate Items and you get a nice banner at the top of iTunes (R.I.P.) which allowed you to display dupes from the same album or just in general. Gone. Gone. Gone. Who's brilliant idea was it to make you once again select File/Library/Show all Items to return to a display of all items rather than just clicking a Dupes button? More and more functionality seems to be disappearing in a quest to make macOS like Windoze.
0
0
2.3k
Jul ’19
PID column doesn't sort right in Activity Monitor. Reproducible?
I tried to upload a screenshot and got An error occured while uploading this image. Please try again later. Let's see if this works: https://share.icloud.com/photos/0AziOmDe1WNzvXgu_t4uOStgg For those hesitant to click: Sorting by PIDs results in this order 351 (!) 352 56573 56572 56571 (note reverse order of last 3) 0 1 313 314 317 318 ...
0
0
575
Nov ’21
Reply to MLClassifier increase maxIterations in CreateML
I am having the same problem. My training set has 26 columns and 178 rows.I just found this in a blog: https://www.captechconsulting.com/blogs/a-weekend-with-createml-and-coreml
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Replies
Boosts
Views
Activity
Jul ’18
Reply to App with CoreNFC.framework crashes on iOS 12.5 with Xcode 13.3.1
For everyone who needs the the solution: In Targets -> Build Phases --> Link Binary With Libraries I set CoreNFC.framework as Optional in Status column. It worked for me.
Replies
Boosts
Views
Activity
May ’22
How to hide stacked navigation bars when using SwiftUI inspector in UISplitViewController secondary column
During WWDC Q&As I asked how I could add an inspector to my UIKit app that’s using UISplitViewController with a double column style featuring a sidebar and detail view controller. I initially tried a full-height inspector (by putting my split view controller into a SwiftUI view and applying the inspector on that, embedding that into a UIHostingController to be the rootViewController) but this caused a bunch of UI bugs (seemingly related to optimizations made for a size class that doesn’t match the actual appearance) and it doesn’t extend into the NSToolbar on Mac Catalyst anyways. I now want to try implementing the under-the-toolbar solution. An engineer said: For an under toolbar appearance, you should be able to use .inspector on the detail view controller (after wrapping it in a SwiftUI view), but you may have to do manual toolbar management here (hiding and showing) to make sure you don't end up with stacked toolbars/UINavigationBars I have indeed run into the problem with two navigation bars
Replies
0
Boosts
0
Views
1.3k
Activity
Jun ’23
Reply to Plist max size
Its tables with numbers in format 00.00 or 0.00000 200-300 rowsabout 100 columns It’s a reference table, to get correct value by column and row nameAs an example, here is multiply table 1 2 31 1 2 32 2 4 33 3 6 9So, basically, to calculate some values, I need to get reference value from one or two tables.For examplex = (a+b+c)/(get value from table A for 2*3)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’17
Reply to SwiftUI Table Limit of Columns?
One way to this is to use multiple TableColumnBuilder objects. Using Group removes the ability to sort via the column headers, and fancy column customization was failing for me too. TableColumnBuilders also create more easily organized code. https://developer.apple.com/documentation/swiftui/tablecolumnbuilder/ @TableColumnBuilder> var tableColumns1: some TableColumnContent> { TableColumn( ... Table(of: ObjectType.self, selection: $selection, sortOrder: $sortOrder, columnCustomization: $columnCustomization) { tableColumns1 tableColumns2 tableColumns3 } rows: { ForEach(filteredCompositions) { obj in TableRow(obj) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to iOS 16.1 Crashes when scroll (LazyVStack and LazyVGrid)
Can reproduce this with Xcode Version 15.1 beta 3 (15C5059c) deploying to iPhone 14 Pro running iOS 17.1.1. Make a test project with Apple's LazyVGrid sample code. Launch app in portrait, scroll to bottom, rotate to landscape, rotate to portrait, scroll to top, crash! let columns = [GridItem(.flexible()), GridItem(.flexible())] var body: some View { ScrollView { LazyVGrid(columns: columns) { ForEach(0x1f600...0x1f679, id: .self) { value in Text(String(format: %x, value)) Text(emoji(value)) .font(.largeTitle) } } } } private func emoji(_ value: Int) -> String { guard let scalar = UnicodeScalar(value) else { return ? } return String(Character(scalar)) } id: .self tut tut Apple sample code developer! (this is not the cause of this crash though).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Xcode Build Failure
May be because image is upside down 😉 When you post a message, make it easy to use: image in correct orientation complete code so that one can test, in text, not only screenshot full error message Seems it is a problem to type check shelterViewModel.getShelter (row: row, column: column).productId == ViewConstants.LAYOUT_DUMMY_ what is productId type ? How are ViewConstants defined ? What is .LAYOUT_DUMMY_ ? Which type ? If it is not exactly the same as productId, then the error. Note: tests as shelterViewModel.getShelterOperationFormat() != true may be written !shelterViewModel.getShelterOperationFormat()
Replies
Boosts
Views
Activity
Apr ’25
Reply to NavigationSplitView macOS
While we can't share exactly how this was done in the Mail app, I was able to achieve a similar layout with the following code: NavigationSplitView { // ... } content: { VStack { HStack{ sampleButton sampleButton } .cornerRadius(12) .padding(.top) List() { ForEach(0..<10) { index in Text(Email (index)) } } } } detail: { ContentUnavailableView(Select an email, systemImage: envelope) .toolbar { sampleButton } } To make certain columns collapsable, see NavigationSplitViewVisibility. This would require adding a @State to manage column visibility. Feel free to change it to your liking.  Travis
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
4d
Reply to SwiftUI Chart Axis Alignment Issue
@kbista Did you ever figure out a fix to this? I am still having this problem where charts is centering points inside of the columns on the x-axis.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Unable to delete screenshot feedback in Testflight App Store Connect
The only option that i found in xCode is to Open Window > Organizer > Feedback and mark a screenshot as resolved. This option is located in the right column.
Replies
Boosts
Views
Activity
Sep ’23
Reply to Matrix - Buffer, row - column representation problem
Thanks,I can't believe apple make it column-major order with out clearly specifying it,or it is a standard only I get confused?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’15
Reply to Correct way to hide sidebar after selection.
Looks like it's as simple as attached a binder to columnVisibility in the NavigationStackView initializer and setting an appropriate column visibility value as needed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to How to improve MPSMatrixMultiplication performance?
This is very helpful, thank you! Finally was able to make matrix multiplication faster on GPU. It's weird it can't automatically pad the columns/rows to the multiple of 8, and you have to do it manually...
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’20
Where has Column browser in "Music" gone? Why is the Dupe process so occluded?
Once upon a time, iTunes (R.I.P.) had a very nice feature that allowed a top file browser which allowed you to browse sogs, artist,and album indifvidually. Such a nice feature. Easiest way to find dupe songs because you could select individual artist or Albums and see the titles in iTunes. That's gone. Speaking of dupes, why was the duplicate finding feature so gutted. In 10.14, you select Library/Show Duplicate Items and you get a nice banner at the top of iTunes (R.I.P.) which allowed you to display dupes from the same album or just in general. Gone. Gone. Gone. Who's brilliant idea was it to make you once again select File/Library/Show all Items to return to a display of all items rather than just clicking a Dupes button? More and more functionality seems to be disappearing in a quest to make macOS like Windoze.
Replies
0
Boosts
0
Views
2.3k
Activity
Jul ’19
PID column doesn't sort right in Activity Monitor. Reproducible?
I tried to upload a screenshot and got An error occured while uploading this image. Please try again later. Let's see if this works: https://share.icloud.com/photos/0AziOmDe1WNzvXgu_t4uOStgg For those hesitant to click: Sorting by PIDs results in this order 351 (!) 352 56573 56572 56571 (note reverse order of last 3) 0 1 313 314 317 318 ...
Replies
0
Boosts
0
Views
575
Activity
Nov ’21