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() } }
Search results for
column
2,046 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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?
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?
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.
Is there a way to detect when the sidebar is hidden by touching the display mode button? I'm looking for a didHide version of: splitViewController(_ svc: UISplitViewController, willHide column: UISplitViewController.Column)
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
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.
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.
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!
Looking to get column resizing events for UISplitViewController. I have a UITableView inside on of the columns and when the column is resized I need to invalidate the intrinsic content size of the table view cells to recompute row height. Best place to handle this?
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
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?
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) {
I have created a little recommendation application using Core ML and MLrecommender. Can I select multiple item column to prediction?
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