Search results for

column

2,078 results found

Post

Replies

Boosts

Views

Activity

SwiftUI dynamic number of columns with LazyVGrid
As a septuagenarian my memory is prone to leaks and I therefore rely on this forum and Stack Overflow for discovering (rediscovering?) solutions to problems. I like to give back when I can, so here goes..... I'm currently doing a project with a variable number of BLE sensors at varying locations and want to display a neat table (grid) of Observations and Locations (in pure SwiftUI) like this: Temperature: Locn1_value, Locn2_value , ..... Locnx_value, obsTime Humidity: Locn1_value, Locn2_value ..... Locnxvalue, obsTime (optionally more sensors) The SwiftUI View is: struct SensorObservationsView: View { let sensorServer = SensorServer.shared @State var latestObservations = [ObservationSummary]() @State var obsColumns = Array(repeating: GridItem(.flexible(),spacing: 20), count: 4) var body: some View { VStack{ ForEach(latestObservations,id: .id) { latestObs in HStack{ LazyVGrid(columns: obsColumns, content: { Text(latestObs.id) .foregroundColor(latestObs.colour) ForEach(latestObs.summaryRows, id:.id) {
2
0
3.4k
Mar ’21
Finder Custom Columns For Extended Attributes
Hello,I would like to add a custom column in the Finder and show my custom properties of a file or folder. I know we can set our own custom properties (aka extended properties) using xattr. However currently there is no way I can show these values in Finder. I could use Tags or Comments columns but they are not ideal. On Windows we could show custom properties of a file using shell extension and other stuff. Is this possible in Mac OS?Thanks,-Anish
1
0
1.1k
Jul ’15
Font Collection Column Missing
I've encountered that bug where the font picker in Interface Builder is stuck on one font collection (in this case monospace). When I resize the window, I see the Collection collumn while resizing the window; but as soon as I let to, the Family column slides to the left and obscures it. Does anybody know of a workaround? Really want to be able to select other fonts.
12
0
2.9k
Jan ’16
Files Column View Missing
Hi,I started with the beta at V4. I realized right there that the column view is missing from my Files app. I hoped it will work itself out on V5 and it didn't. Sane hope for the new V6. Again no avail. Don't see how to attach a screenshot but it's dead simple: There's just the single symbol up top in the Flies App and not three. Flipping the display doesn't change anything either...- Anyone else with that issue?- Any hidden setting that I am missing out?Specs: IPad Pro 11 with iPadOS beta6Cheers
0
0
392
Aug ’19
SwiftUI Table column widths cannot be saved
I have a macOS app made with SwiftUI where I want to show a list of data in a tabular fashion. SwiftUI Table seems to be the only built-in component that can do this. I would like to let the user size the columns and have their widths restored when the app is relaunched. I can find no documentation on how to do this and it does not seem to be saved and restored automatically. I can find no way to listen for changes in the column widths when the user resizes and no way to set the size from code. For a macOS app it seems that the only way to set the width of a column is to use e.g. .width(min: 200, max: 200). This in effect disables resizing of the column. It seems that idealSize is totally ignored on macOS. Any suggestions?
2
0
389
Feb ’25
Pagination (Column, Row) info when printing?
Is there a built-in functionality to retrieve the current column and row during a print operation when using the built-in pagination mechanism of NSView? All I could find in the general printing documentation and for the NSPrintOperation and NSPrintInfo classes is the NSPrintOperation.currentOperation.currentPage property. I'm basically attempting to access the 'address' (page number or row/column) of pages bordering to the left/right/above/below the current page to enable assembly constructions being shown to the user on printouts spanning multiple pages. Hope this makes sense. Thanks, Jay
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
969
Dec ’22
Safari and UIWebView: difference in rendering columns between iOS versions
I am seeing a difference in behaviour for column rendering in both UIWebView and Safari depending on the iOS version. See this link for example:https://mobile.content.hmhco.com/HMHGMA/tmp/OPS/sample.htmlWith the link above, the HTML body specifies the following for heights:min-height:924pxmax-height:1000pxOpening this link in Safari on a device with iOS less that 10.3, the height of columns (as shown in Box Model using Safari Develop tab on Mac) is 924.In iOS 10.3 (beta 4): the height of the columns is 1000.This means there is different content on the pages between the two iOS versions (i.e. more content per page on iOS 10.3). As you can see by viewing the sample on the two iOS', in any iOS < 10.3 the first column ends with civilisation to develop in Egypt whereas on iOS 10.3 there is extra text at the end of the column.Additional info:- The same differences as reported above between the iOS' also occur with Chrome browser on device (i.e. columns rendered differ
2
0
3.6k
Mar ’17
TextKit2 Multi Column Layout
I'm trying to implement a multi column layout for a hex editor using TextKit2. I'm using the sample App named LayoutTextWithTextKit2 as my starting point, but I'm struggling to understand what the best approach could be to implement it. My doubts are: Is it a good idea to use a text element for a single line in a single column? I'm basing my text element on NSTextParagraph. Following my previous question, is there any way to layout these text elements horizontally in a single line, instead of having the layout engine automatically lay them out in a vertical stack? Where is the correct location where I can override the positioning for each text element manually if I wanted to not base my elements in NSTextParagraph? Would this be a good idea? I apologize for the many questions, but my basic problem is that it's not clear to me if I'm missing something that's obvious, and there's a simple way to address my troubles. Any guidance towards that goal, even beyond my questions above, will be apprec
0
0
1.1k
Sep ’22
text context with column-count value is 2 and text-shadow' blur is greater then 0, the second column will be bring down
HelloI have a problem when I use text-shadow and coumnt-count style on a span element,When I set text-shadow' blur value greater then 0 and column-count greater then 1, then you will see the second column ( also the third column) will bring down some distance, but it's not happen on Windows Chrome, Mac Chrome, etc, It's looks like only safari has this bug.Following is a online demo of this bug:link: http://jsrun.net/arfKp/editI'm looking forword for any response of this.ThanksYulong
2
0
603
Apr ’20