Hi all, I have just started to learn swiftUI for macOS, and am struggling with the view set-up. The view below is the one I am trying to achieve. I had no issues with using navigation view to get the column style with View 1 and View 2&3, being able to stretch/resize each column as well. I have not however been able to make a stretchable 'row' view for View 2 and View 3. How can I achieve this? I tried using a Navigation Stack to wrap View 2 and View 3, which gave me the layout I want, though the 'rows' (being View 2 and View 3) are fixed, and can't be resized/dragged, like the columns of View 1 and View 2&3 can. How can I allow resizing between View 2 and View 3 as well, while preserving the overall layout show in the image? Thank you for the help :)
Search results for
column
2,046 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Xcode GPU Frame Capture shows that PreZ Test Fails percent is zero. I can't understand what is wrong.. I drawed the opaque primitives with depth test, no alpha test, no alpha blend. I thought that Hidden Surface Removal removes hidden surfaces, so There is no killed fragments by PreZ Test Kill. But I couldn't find the column about Hidden Surface Removal. It looks that xcode gpu frame capture doesn't show the data about hidden surface removal. I tested it on iphone 13 mini(ios 16.3), M1 Mac Ventura
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Metal
Metal Performance Shaders
Xcode
Graphical Debugger
So the droid you’re looking for here is Developer Account Help > Reference > Supported capabilities (macOS). The rightmost column, confusingly labelled “Apple Developer”, lists the capabilities available to folks using free provisioning (a Personal Team in Xcode parlance). You’ll note that Network Extension is not listed there so, yes, you’ll need a developer account. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic:
App & System Services
SubTopic:
Networking
Tags:
The export to CSV option on a testflight group table only gives you First/Last/Email and I'd like to include the status/build/install date on the export to create reports on Beta user engagement. I used to be able to low-tech copy the table of users and paste it into excel, but seems like the table format has changed to some React Div view and it no longer copies/pastes. I've also tried to run some browser extensions that scrape table data and I haven't been successful. (they don't even recognize this list as an HTML table) Anyone know how to get a report of the testflight users that includes the Status column?
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
Beta
TestFlight
Hi himav, for the follow up questions you had, clicking on the Family name column header would change the sortOrder array property to include the Comparator for that column (or reverse that Comparator if the sortOrder array already had one for that column). You could see the sortOrder binding as a representation of how different columns want to take part in sorting - and then you could sort the data accordingly. For custom Comparator on individual columns, you could use one of TableColumn's initializers that come with comparator as a parameter, and that custom comparator you provided will be included into sortOrder if you click on the corresponding column header. Hope this helps!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Hello everyone, I am new to the Swift and the SwiftUI. Trying to understand how sorting works on SwiftUI Table view. The following code does what I intend to do, but I am not able to understand how does it actually work. Need help with the answers for the questions posted below the code. import SwiftUI struct Person: Identifiable { let givenName: String let familyName: String let emailAddress: String let id = UUID() } private var people = [ Person(givenName: f1, familyName: l1, emailAddress: e1@example.com), Person(givenName: f2, familyName: l2, emailAddress: e2@example.com), Person(givenName: f3, familyName: l3, emailAddress: e3@example.com) ] struct ContentView: View { @State private var selected = Set() // Question 1 @State private var sortOrder = [KeyPathComparator(Person.givenName)] var body: some View { Table(people, selection: $selected, sortOrder: $sortOrder) { TableColumn(Given name, value: .givenName) TableColumn(Family name, value: .familyName) TableColumn(Email, value: .emailAddress) } // Question
Still not completely clear to me. Lets say I click on Family name column, what happens next? Does the value of sortOrder variable change if I click on Family name column? If yes, what will be the new value? Also, how can I use custom Comparator for different columns?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Question 1 : I want to be able to sort by all the columns. How many KeyPathComparators should be in the sortOrder array? Surprisingly, a single comparator works for all columns . Question 2: What is the value of newOrder? Is it same as the sortOrder? What does it contain? You get the same behaviour with this: .onChange(of: sortOrder) { _ in people.sort(using: sortOrder) } . Question 3: sortOrder contains the comparator for only givenName. How does the above code able to provide sort functionality for all the columns? Same as question 1 ? I found this tutorial interesting. https://www.kodeco.com/books/macos-by-tutorials/v1.0/chapters/4-using-tables-custom-views And changed your code to make it work better (immediately change rows when tapping another column header) struct Person: Identifiable { let givenName: String let familyName: String let emailAddress: String let id = UUID() } private var people = [ Person(givenName: f1, familyName: Bob, emailAddress: xbob@ example.com),
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Hi All! I am working on a Multiplatform SwiftUI app and I've encountered an issue with NavigationSplitView. My app's ContentView is a NavigationSplitView sidebar and detail. The sidebar is a list with several NavigationLinks. (I haven't adopted programmatic navigation because of the simplicity this sidebar.) One of the NavigationLinks brings the user to a Table with several rows and columns. Then, when I go to select an item on the table, a row shows selected for a split second, before deselecting itself again. Then, I can use the table as normal. This happens every time the view is opened. The reason I think that this is an issue with NavigationSplitView is because when I use the legacy NavigationView, everything is fine. Is this normal behavior for NavigationSplitView, and if it is, how to I make it so that my table receives focus when the NavigationLink is open?
I downloaded the database from my app store connect profile and now that I have the data all set up in my warehouse I am unable to do any analysis because I am unsure of what data the tables and columns are actually displaying. How do I get a key that describes what the data means that are in tables and columns?
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
Analytics & Reporting
Ok, a bit of work to get the older and more stable versions up and running. First and foremost, you'll need homebrew Then you'll need to use the version of python supported for the targeted release. The table for how to match up archival versions of tensorflow-macos and tensorflow-metal is near the bottom of this page. You can then use brew to install the legacy python brew install python@3.9 And then use that to create a virtual environment. Code follows for my install, though double check the location of your homebrew. /opt/homebrew/opt/python@3.9/bin/python3.9 -m venv ~/tensorflow source ~/tensorflow/bin/activate With the virtual environment created, you then need to get the urls for the old pip installs. Apple prohibits the linking of external urls on this forum, but you can look up tensorflow-macos and tensoflow-metal at pypi dot org and find their release history on the left side column. Then right click/command click the release. pip install is an acceptable way to install packages. Take care
Topic:
Machine Learning & AI
SubTopic:
General
Tags:
Thinking of trying to code a 3d engineering design software. I know it won't be easy to code. The basic idea is the user is given an interactive 3d interface, and the user can move through the 3d space, drag and drop columns beams etc, select deselect dragged or created items, assign values to it, dimensions etc. The user should be able to change sizes of elements (like when user type 10 width, the beam should change it's size to the typed value etc), get fixed to other elements etc. Any idea which documentation should I look at for xcode, swiftui to get an idea or first few steps into interactive 3d etc?
You can bind the table to the fetch request's sort descriptors there is no need to have additional state, e.g. Table(stats, sortOrder: $stats.sortDescriptors) { When the users clicks on a table column the fetch and the table will update automatically. Unfortunately there is an issue where if the View containing the FetchRequest is re-init then the sortDescriptors get reset to their default. I'm not sure if that is a design flaw in @FetchRequest or we are supposed to make our own @State for the sort in the view above and pass it in as a binding and use the value in the @FetchRequest and using the binding to the binding in the Table, e.g. @Binding var sortDescriptors: [SortDescriptor] init(sd: Binding<[SortDescriptor]>) { _items = FetchRequest(sortDescriptors: sd.wrappedValue) _sortDescriptors = sd } ... Table(stats, sortOrder: $sortDescriptors) {
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
I habe the following code : @Environment(.managedObjectContext) private var context @FetchRequest(fetchRequest: Club.fetch(NSPredicate.all)) private var clubs: FetchedResults @State private var selectedClubs = Set() @State var sortOrder: [KeyPathComparator] = [ .init(.city, order: SortOrder.forward) ] var body: some View { VStack { Text(Clubs) Table(clubs, selection: $selectedClubs, sortOrder: $sortOrder) { TableColumn(Club ID, value: .clubId) TableColumn(Name, value: .name) TableColumn(Short Name, value: .shortName) TableColumn(Acronym, value: .acronym) TableColumn(City, value: .city) }.onChange(of: sortOrder) { newValue in print(newValue) } } } } How can I enable column sorting? The example app from wwdc does not use Core Data.
I need help with this topic please. I'm interested in the three column layout version. Column one I want my list of Core Data Entities, Column two I want a list of my Core Data Entity's ListView items, and for Column three I want the detail view of the selected list view item. Any help on figuring out the best way to accomplish this would be much appreciated. Thanks