Search results for

column

2,070 results found

Post

Replies

Boosts

Views

Activity

iOS 14 UISplitViewController Triple-Column Layout in Interface Builder, show only Two Columns in Landscape on iPhone?
Previously you could set the width of the preferredSupplementaryColumnWidth to automaticSupplementaryFillDimension, but this API seems to have been removed. hideColumn: method seems to have no effect. Any one manage to show only Two Columns in Landscape on iPhone using UISplitViewController with a triple-column IB setup? Triple column layout is utilized on the iPad/Mac, but want two columns, max, on iPhone in landscape.
0
0
712
Sep ’20
Sticker sizes vs number of columns in iMessage
When I test my sticker packs in the simulator/on my phone, the automatic size of the sticker changes in regards to the number of columns I have selected in Xcode. So if I have selected 2 columns and run a test, the automatic size of my sticker when I peel and stick it is much bigger than the automatic size if I have chosen 4 columns. However, if I send the same sticker in the body of the text message, it shows up the same size (larger) regardless of whether I have used 2 columns or 4 columns. I know there user can scale the stickers when they are placing them, but is there a way for the automatic size in 4 columns to be the same as in 2 columns and in the body of the text?
0
0
662
Nov ’17
.navigationViewStyle(.columns) doesn't work
Hi, I'm trying to do basic app with fixed Navigation View on iPad. Doesn't work. What am I doing wrong? import SwiftUI struct CollectionView: View { var body: some View { if #available(iOS 15.0, *) { NavigationView { Text(Hello) .navigationTitle(Hello) } .navigationViewStyle(.columns) .padding() } else { // Fallback on earlier versions } } } struct CollectionView_Previews: PreviewProvider { static var previews: some View { CollectionView() } }
1
0
525
Oct ’21
Finder Favorites Column width issue
10.11 seems to have an issue with setting too narrow of a column width for the leftmost column (Favorites, Devices, Shared, ...) when opening Finder. This issue only occurred since loading El Capitan, never prior.It is so narrow that it displays like:Applica...Docum...Downlo...Anyone else seeing this?
12
0
839
Jul ’15
multiple columns swift 4
Is there a way to create a UITableView or a UIVIew that I can utilize mutliple columns? I am making a custom application for a data analysics colleage at my job who would like to display mutliple colums within a single view whether it is a UITableView or a UIView. The only options he could think of is creating an image from the results of a database query or creat a website and use the UIWebKit to display the information.Thank you in advance.
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
5.6k
May ’18
Fit SwiftUI grid columns to the contents
My grids expand widthways to take up all the space it can. I can stick it in a frame and limit the size. But is there a way to get the columns to shrink to fit the contents plus padding? That would be neater, and probably more robust if the text changes size. FWIW most of my grids contain only text, and I don't use a lot of columns.
1
0
1.5k
Oct ’22
NSPredicate for NSNumber column
Probably something simple I'm missing, but I'm trying to write a very simple predicate - return all rows from a table where an NSNumber column value = 3.I've tried many variations of the following with no success:NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number = %@, @3];NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number == %@, @3];NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number = %@, @3];NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number == %@, @3];Can someone help me to recognize the rror of my ways, please?Thanks in advance!
5
0
2.4k
Oct ’15
UISplitViewController Column Style and Compact Mode
Hey, I'm trying to get a handle of the new column style split view controllers. I find the documentation and related WWDC videos a little lacking when it comes to the details. Pushing a detail view controller When using showDetailViewController in compact mode everything works fine the first time. But if the user goes back to the root and taps another item to push a show a new detail the previous detail view appears between the new detail and the root. Ie. I have to tap back twice to get back to the root because the first detail view shows on the first back tap. So to fix this I need to become a navigation controller delegate, listen for pops and make sure I clean up the detail view controller's navigation controller to remove all of it's children. Because apparently pushing a detail view actually pushes the detail wrapped in a second navigation controller. I assume this is some implementation detail to make it work in column mode. This seems like a bug and a hacky fix. Transitioning to Comp
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
775
Jan ’21
Setting column-count to 1 disabled horizontal scrolling
I have a simple CSS to emulate iBook-lile layout:* { box-sizing: border-box;}html { height: 100%;}body { height: 100%; padding: 2em; font-family: 'Gentium Basic', serif; column-count: 2; column-gap: 4em;}h1, h2, h3, h4, h5, h6 { font-family: 'Unica One', cursive; text-align: center;}.title-display { margin-bottom: 6em;}p { text-indent: 2em;}I need to create a layout with horizontal scrolling only. So if column-count is 2 or bigger - everything looks fine.The page scrolling only horizontaly, and I could scroll my layout with JavaScript.The example is here: http://codepen.io/fredy26/pen/QjgZEPBUT! If i trying to change the amount of columns to 1, by setting column-count: 1; everything breaks. All text is placed inside one column with vertical scrolling. To compare, Chrome is working fine.
1
0
1k
Oct ’15
Correct way to handle 2 to 3 column switch
I'm using a NavigationSplitView on macOS which needs to show 2 or 3 columns depending on the selection of the sidebar. Column 1 has a list of main activities. Some of these just have some data to show and some have a sublist. Currently, when an item that has no sublist is selected, I set the 2nd column (content:) to: Spacer() .navigationSplitViewColumnWidth(0) This works, although it started hitting bugs requiring a workaround on macOS 26, which got me wondering, what is the correct approach here? NavigationSplitViewVisibility.doubleColumn is not the solution, as this hides column 1, not column 2.
Topic: Design SubTopic: General Tags:
0
0
814
Oct ’25
NavigationSplitView two and three column interfaces in the same app
I am currently learning to create multiplatform applications using SwiftUI and NavigationSplitView, and I faced the problem of arranging different Views in the same App. Let's open the default Notes application, and here, we can see a switch between two and three-column views of the content. So my question is, how to arrange this kind of view for different App pages using NavigationSplitView? First page has two columns interface Second has three columns
3
0
3.9k
Aug ’22
Is it possible to use a list-style UICollectionView but have multiple columns?
I'm working on a UICollectionView that has a custom compositional layout with multiple columns. I wanted to add swipe actions to the cells (specifically, a delete action). I knew this was possible because of the existence of trailingSwipeActionsConfigurationProvider but I didn't realize that this is only for list layouts, created with UICollectionViewCompositionalLayout.list. But if I use a list layout, I don't think I have any opportunity to add multiple columns. Do I really have to choose between multiple columns and trailing swipe actions? Or is there some way to get both?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
510
Jul ’24
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