Search results for

column

2,071 results found

Post

Replies

Boosts

Views

Activity

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
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
570
Nov ’21
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 Rotation in 3D
I discovered the issue. It was in the shader, and I was multiplying in the wrong order (since matrix multiplication is not commutative).So this:out.pos = v * mvp_matrix;should be this:out.pos = mvp_matrix * v;That fixed it. For whatever reason I'm so used to dealing with row vectors as opposed to column vectors. And often times it's not clear what graphics libraries use. OpenGL uses column vectors, but DirectX uses row vectors. I don't recall reading in the Metal guide what it uses, so..
Topic: Graphics & Games SubTopic: General Tags:
Jan ’16
Reply to How to declare a TableColumn with nullable field?
Is there a way to get a SwiftUI Table to be able to sort by a column of optionals? You can extend Optional for your specific case. For example, if you are trying to sort by an optional Int: extension Optional where Wrapped == Int { var sortOrder: Int { switch self { case let .some(wrapped): wrapped case .none: Int.max } } } Then your TableColumn would look like this: TableColumn(Count, value: .count.sortOrder) { if let count = $0.count { Text(String(count)) } } If count is nil, it will be sorted as if its value is Int.max and the column will be blank for that row.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to Metal Perspective Martrix issue
the net result was: the book I was following made assumptions that turned out to be wrong. The code in the book could never work. the Matrix4x4 structure in the book assumes a row layout in the the float4x4 used in Metal. It doesn't work like that. it uses a Column layout. ie: the matrix I built from the tutorial assumed that each simd_float4 passed in was going to be a row. instead it was a column. this screwed up everything. but I also had issues with the matrix weirdly breaking my identity values. that screwed up everything. and my rotation function, was faulty.
Topic: Graphics & Games SubTopic: General Tags:
Oct ’20