Search results for

column

2,048 results found

Post

Replies

Boosts

Views

Activity

Label text in UISplitViewController primary column not respecting dark mode in iOS 26 beta 4
In iOS 26 beta 4 (build from July 2025), there is a visual issue when using a UISplitViewController. Specifically, the text color of labels in the primary column does not adapt correctly to Dark Mode. This includes navigation bar titles and labels inside UITableViewCells. Regardless of system appearance settings, the text remains black, making it unreadable when the system switches to Dark Mode. To reproduce this, create a new iOS project using UISplitViewController with the .doubleColumn style. In the primary column, embed a UIViewController that contains a navigation title using navigationItem.title, and a UITableView showing a list of items. Run the app on a device or simulator with iOS 26 beta 4. Then switch the system appearance to Dark Mode using Control Center and observe the interface. The expected result is that all labels in the primary column, including the navigation title and table view cell labels, should automatically update to a light text color in Dark Mode. This be
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
58
Jul ’25
Reply to UISplitViewController push UIViewController to supplementary column
I have the same issue. It is my understanding that the old 'detail' paradigm no longer applies with the new two-column / three-column styles. It means, that there is no master/detail now, but just primary, supplementary, secondary and compact columns. So even if showDetail works in some cases, it is actually an anomaly. Until we get a first-class segue for 'columns' (eg. showSupplementary, showSecondary, showCompact), we may have to just set things programatically using setViewController(_:for:) methods. Furthermore, I don't think the new documentation prescribes any specific direction in which the settings should be made (eg. Primary -> Supplementary -> Secondary). For example, an app may choose to populate supplementary and secondary at the same time (eg. Supplementary showing the overview of Secondary content), or secondary may drive the supplementary column. (eg. supplementary shows a snippet of secondary content). For these reasons, defining new segues m
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’21
Reply to How to capture unknown number of matches using RegexBuilder?
Just want to clarify, suppose I want to parse a table with multiple columns each separated by “|”, I can do one of the followings and use firstMatch(of: regex) or wholeMatch(of: regex), but they assume fixed number of columns in the table. How do I deal with dynamic number of columns? // using multi-line literal let regex = #/ (|) (? (.*?)(?=|)) (|) (? (.*?)(?=|)) (|) (? (.*?)(?=|)) /# // using RegexBuilder let separator = /|/ let regexBuilder = Regex { separator Capture ( OneOrMore(.any, .reluctant) ) separator Capture ( OneOrMore(.any, .reluctant) ) separator Capture ( OneOrMore(.any, .reluctant) ) separator }
Topic: App & System Services SubTopic: General Tags:
Jul ’23
NavigationSplitView in two-column mode does not work properly on iOS in portrait mode
Hey there, I was trying to get an overview of the new navigation in the Xcode-14 Beta. I watched the WWDC22 session The SwiftUI Cookbook for Navigation and downloaded the associated sample code https://developer.apple.com/documentation/swiftui/bringing_robust_navigation_structure_to_your_swiftui_app. When trying it out, I noticed that the two-column mode of the NavigationSplitView in portrait mode does not work properly on iOS. In the download version of NavigationCookbook, a click on one of the related recipes in the recipe detail view does not lead to the detail view of the corresponding recipe (portrait format only on iOS), but to the detail of the NavigationSplitView. The only solution I found was to include a NavigationStack in .navigationDestation. Is there a more sophisticated solution other than using @Environment(.horizontalSizeClass) private var horizontalSizeClass to avoid the problem.
1
0
1.2k
Jul ’22
Reply to GeometryReader problem
It turns out that the problem isn't with GeometryReader, it's with LazyVGrid. I'm not clear on why, but my grid with 5 columns doesn't always report the same size. I can make it work by adding a 6th column that doesn't get used in the view. Very odd.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to Table column cannot show value with function tableView:aTableView objectValueForTableColumn:aTableColumn row:rowIndex
I think I called that function in wrong way. What do you mean precisely ? You do not call this func yourself. System calls it when needed to populate the given column * row with the content you specify. . And how does this function know which column it want to fill up the value, based on the second parameter I input? because what you specify in returned value depends on column (you test the identifier) and the row (you pick in the appropriate data source).
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’22
SwiftUI Table sorts only the first column if the data is loaded later
All examples regarding SwiftUI Tables and sorting work fine, but they also have all the data available immediately. If I load the data in .task, sorting only works on the first column. Test data: struct Customer: Identifiable { let id = UUID() let name: String let email: String let creationDate: Date } func parseDate(from text: String) -> Date { let formatter = DateFormatter() formatter.dateFormat = dd/MM/yyyy return formatter.date(from: text) ?? Date() } func getTestData() -> [Customer] { return [ Customer(name: John Smith, email: john.smith@example.com, creationDate: parseDate(from: 04/11/2015)), Customer(name: Jane Doe, email: jane.doe@example.com, creationDate: parseDate(from: 29/04/2009)), Customer(name: Bob Johnson, email: bob.johnson@example.com, creationDate: parseDate(from: 01/08/2010))] } And here the view: table 1 populates the array in the initializer table 2 loads the content in .task, initially it is empty table 3 loads the content in .task, initially it contains one dummy object
1
0
663
Mar ’24
iPad crash: Unexpected view controller change in Supplementary column
I'm receiving repetitive crash logs related to the UISplitController supplementary collumn. Fatal Exception: NSInternalInconsistencyException Unexpected view controller change in Supplementary column for expanding I can't reproduce it and the logs have no reference at all to any of my code - I'm wondering if it can be somehow related to orientation changes. Any help would be very appreciated. Here is part of the crash log: Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x9904c __exceptionPreprocess 1 libobjc.A.dylib 0x15f54 objc_exception_throw 2 Foundation 0x1306cc _userInfoForFileAndLine 3 UIKitCore 0x991928 -[UISplitViewControllerPanelImpl panelController:separateSupplementaryViewControllerFromPrimaryViewController:] 4 UIKitCore 0x96699c __54-[UIPanelController _expandWithTransitionCoordinator:]_block_invoke_4 5 UIKitCore 0xb0d78 +[UIPanelController _withDisabledAppearanceTransitions:forVisibleDescendantsOf:perform:] 6 UIKitCore 0xb0940 -[UIPanelController _withDisabledAppeara
2
0
1.1k
Dec ’21