Search results for

column

2,062 results found

Post

Replies

Boosts

Views

Activity

Reply to CKRecordValue type NSDate stores nil value?
Just discovered that... We can not have a nil NSDate field in CloudKit, when I save a record it is set to a default date 2001,01,01 but it is not nil. I do not want to add a boolean column or a placeholder value to know if the date is nil or not + always think about it otherwise I will have incorrect data shown to the user. Is there something we can do ? Does someone has an answer? I miss something I think as I can not find many resources on this BIG disadvantage to use CloudKit!
Feb ’23
SwiftUI encountered an issue when pushing a NavigationLink. Please file a bug.
Hello Team of Devs, I'm trying to use a card with to actions, the first action is when I press it show me a list (it works) and the second action it's when I made a long pressure on the card it show me a menu, for that Menu I'm using ContextMenu, I'm using a navigationLink to show me a part that it let me Edit the card, but it doesn't show me the information that I want, for example I have a 4 card, and when y use contexMenu with card 1 it show me information of card 3. This is the code. VStack{ Grid{ LazyVGrid(columns: adaptiveColumns, spacing : 10){ ForEach($list) { $Category in NavigationLink(destination: CategoryList(list: $Category)){ Card(list: Category).frame(height: 100) .contextMenu{ Button { // self.selectedCategory = $Category editCategory = true } label: { Text(Edit) } } } } background{ ForEach($list) { $list in NavigationLink(, destination: DetailCardView(list: $list), isActive : $editCategory) } } } } } The background it's the code that I want that charge when I press the card using con
0
0
791
Feb ’23
VFS deadlock (WebDAV on Apple Silicon only)
FB9108925 FB10408005 Since Apple Silicon we've seen a lot of WebDAV instability in macOS 11.x, 12.x and now 13.x that isn't found on x86 Macs. Some were fixed in earlier minor OS upgrades (e.g. webdavfs-387.100.1 that added a missing mutex init), but it's still highly unreliable. The purpose of this post is to put more focus on the bug, see if there is something else we can do to help solve this, as well as hear about potential workarounds from other people experiencing the same problems. I've got a reproducible case described below that triggers a deadlock in VFS every time, requiring a hard reboot to fully recover. Before reboot I've captured this stack trace showing the WebDAV/VFS/UBC/VM layers getting tangled up (macOS 13.2 Build 22D49 running on Macmini9,1): Thread 0x16358 1001 samples (1-1001) priority 46 (base 31) 1001 thread_start + 8 (libsystem_pthread.dylib + 7724) [0x18d2e0e2c] 1001 _pthread_start + 148 (libsystem_pthread.dylib + 28780) [0x18d2e606c] 1001 ??? (diskarbitrationd + 99400) [0x100d5c448
1
0
1.1k
Feb ’23
Tables, Pickers and Bindings, woe my...
I have a Core Data entity with a few properties, the ones of interest here are a UUID column named id and an Int16 column containing values between 0 and 3. I have a Table in SwiftUI which is correctly arranging the items stored by Core Data into its rows. The selection: binds a Set of the id values. I have another view to which I have sent the Set of id values (Set) (Bin is the name of my entity) using @Binding var ... - so far so good. Within that view, I can determine that I am correctly getting the set of interest, and most of what I am trying to accomplish I can get to work. What is driving me up the wall, however, is that I am trying to get a Picker in the child view to let me change the value of the Int16 property (called playMode) of the first selected object from the table. I have tried numerous things to create that binding but I can't seem to find the magic combination that works in any sensible way. Here is what I am currently doing, which seems to come closest. I set up a @State
1
0
745
Feb ’23
SwiftUI Table View with Array of reference types?
I am trying to use a SwiftUI Table View [1] with an Array of class objects so that updates to properties in the class objects are reflected in the table. This works fine for me with structs and @State, however, I'm trying to find a way to achieve the same effect with @StateObject given that @State only supports value types. The only problem is that @StateObject doesn't seem to be supported by Array. When I try to extend Array to conform to ObservableObject, I get: Non-class type 'Array' cannot conform to class protocol 'ObservableObject' It seems that wrapping the array with an object and using @Published to publish changes does not work as evidenced by this [2] other post. Appreciate if anyone has any ideas on how to make this work! And if there is no way to make it work, I don't understand why Apple has made it so that a TableColumn initializer would require [3] the RowValue to conform to NSObject. Because this effectively means that to have sorting capabilities for a column, the underlying data ty
1
0
563
Feb ’23
View Layout on MacOS with Swift UI
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 :)
1
0
1.1k
Feb ’23
Reply to setTunnelNetworkSettings never gets executed
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
Feb ’23
SwiftUI LazyVGrid Positioning
Hello, I want to create a dashboard with LazyVGrid. I made a lineup like 2-2-1. It's okay as the images in the first 2 rows are the same, but I can't fit last image exactly because the bottom image is bigger than the others. I am attaching a screenshot for your better understanding. How can I center currency converter image overflowing from the screen? struct ContentView: View { let columns = [ GridItem(.fixed(150), spacing: 30), GridItem(.fixed(150), spacing: 30),] var body: some View { NavigationView{ LazyVGrid(columns: columns) { // WEIGHT * MASS NavigationLink(destination: UnitView()) { Image(systemName: scalemass) .font(.system(size: 60)) .padding() .frame(width: 150, height: 150, alignment: .center) .background(Rectangle().fill(Color.purple.opacity(0.5)) .shadow(radius: 3)).cornerRadius(20) .foregroundColor(.black) .overlay(Text(Weight) .foregroundColor(.black) .padding() .font(.system(size: 22)), alignment: .bottom )} //DISTANCE * NavigationLink(destination: DistanceView()) {
2
0
4.3k
Feb ’23
Why does "Xcode GPU Frame Capture" shows that "PreZ Test Fails" percent is zero.
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
2
0
1.4k
Feb ’23
NavigationSplitView 2-column loses state when minimized on iPad
Hello! I've noticed that when I am using NavigationSplitView and I minimize the app on iPadOS and then resume, if I am using a 2 column setup it loses state upon resume. This does not appear to happen on with a 3 column setup though. I'm wondering if others have run into this and if anyone has figured out a way around it. It seems like it's a bug and I should file a bug for it, but wanted to check with more people first. Here's some example code, run it, select your number of columns, then minimize the app, count to 3 (because why not!) and open the app and you'll notice that $selection is now nil. import SwiftUI struct Item: Identifiable, Hashable { var id: Int var name: String var description: String } struct ContentView: View { @State var selection: Item? var items: [Item] = [ .init(id: 1, name: One, description: Is the loneliest number), .init(id: 2, name: Two, description: Two can be as bad as one), .init(id: 3, name: Three, description: Three Dog Night) ] var body: some View {
1
0
747
Feb ’23
Reply to How SwiftUI Table sorting works ?
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:
Jan ’23
Reply to How SwiftUI Table sorting works ?
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:
Jan ’23