Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

Reply to macOS Monterey Xcode Update Questions (New Warnings)
The proposed solution of unchecking the column selection checkbox in IB attributes for the tableview does not solve it here ( macOS 12.4, Xcode 13.4.1 ). Maybe I'm too trusting but Xcode knows the column selection attribute is for a view-based tableview, so it could disable the Column checkbox to prevent the selection if it is truly not supported. The warning ( and whatever the underlying cause is ) has no visible impact on my app. Other workarounds and thoughts welcome ( TIA )!
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’22
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
79
Jul ’25
Reply to Best way to make a grid with both top and left headers
Using private var columns: [GridItem] = [ GridItem(.fixed(100)), GridItem(.fixed(100)), GridItem(.fixed(100)) ] is the best way to guarantee them to be the same size. Using .flexible will allow to you either set nothing or the min/max. The size will change depending on the content though (and same with adaptive ). For this, you can ensure equal column widths if you make the header the same width for each column.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
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
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
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 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
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 UICollectionView for macOS Screen Sizes
Code you shared creates three columns for every size. I want to increase column in numbers when size increases.I used your idea fixed cell size but it creates unmanageable space between two horizontal cells at certain sizes...
Replies
Boosts
Views
Activity
May ’20
Reply to macOS Monterey Xcode Update Questions (New Warnings)
The proposed solution of unchecking the column selection checkbox in IB attributes for the tableview does not solve it here ( macOS 12.4, Xcode 13.4.1 ). Maybe I'm too trusting but Xcode knows the column selection attribute is for a view-based tableview, so it could disable the Column checkbox to prevent the selection if it is truly not supported. The warning ( and whatever the underlying cause is ) has no visible impact on my app. Other workarounds and thoughts welcome ( TIA )!
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to how do I remove the columns showing in the below pic if no data is available.
Do you want to remove a column or a row ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
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:
Replies
1
Boosts
0
Views
79
Activity
Jul ’25
Reply to NSBrowser Column titles not showing up.
Hmm even though you cannot adjust the space in IB for the area where column titles go, coming out of Interface builder, if I resize the window, column titles suddenly shows up.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’17
Reply to Best way to make a grid with both top and left headers
Using private var columns: [GridItem] = [ GridItem(.fixed(100)), GridItem(.fixed(100)), GridItem(.fixed(100)) ] is the best way to guarantee them to be the same size. Using .flexible will allow to you either set nothing or the min/max. The size will change depending on the content though (and same with adaptive ). For this, you can ensure equal column widths if you make the header the same width for each column.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to NavigationSplitView not working as shown in "What's new with SwiftUI" session
Of course right after I asked the question I notice this in the release notes 🤦‍♂️ Conditional views in columns of NavigationSplitView fail to update on some state changes. (91311311) Workaround: Wrap the contents of the column in a ZStack.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to xcode 9.2 syntax coloring
I found a way to turn on/off the menu. If the column Compare/Blame ... is shown the Syntax Coloring menu does not apear. If the right column is not visible one can edit the Color scheme of the code ....
Replies
Boosts
Views
Activity
Feb ’18
Reply to Value column missing for Info.plist
Can you try moving your mouse over the header row to the right end, and seeing if you get the mouse resizing icon? The columns are resizable widths if you get the mouse over the edge of the first column that you currently see. — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
Mar ’25
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:
Replies
Boosts
Views
Activity
May ’22
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:
Replies
Boosts
Views
Activity
Jan ’21
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.
Replies
1
Boosts
0
Views
1.2k
Activity
Jul ’22
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:
Replies
Boosts
Views
Activity
Jul ’23
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:
Replies
Boosts
Views
Activity
Dec ’24
Reply to Apple Connect Having Issue Recognizing Routing Numbers
I am having the same issue with the Column N.A. How can we solve this?
Replies
Boosts
Views
Activity
Jun ’25