Search results for

column

2,046 results found

Post

Replies

Boosts

Views

Activity

Reply to Weird behavior with NavigationSplitView and @State
Same issue is happening when you have Three Column layout. But it seems to be more visible what is happening. When I select other category in the main sidebar, the selected item in secondary sidebar won't get unselected, plus new item from selected category gets selected. So now after two clicks I have somehow two selected items in my secondary sidebar and when i'll continue playing with it I'll get thread ERROR. The problem is the automatic selection of item in second list. you can't touch on that and reset it when the category from primary sidebar is changed. What is really surprising for me is that I haven't found any threads about this so far, even though this behavior is happening in the most basic example of three column layout where you have same items in different categories.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
A glitch of CGContextSetFillPattern glitch on Ventura
I find a glitch of CGContextSetFillPattern glitch only on Ventura. If the size of the pattern is a multiple of 4, there will be a hole in the upper right corner of the pattern in the first column. I make a demo Xcode project here. I have tried all three CGPatternTiling enum values, all have the same result.
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
595
Mar ’23
Reply to CoreData stack init is freeze
I noticed a CoreData error when keeps app working with the copied sqlite files. The console shows: CoreData: error: (13) database or disk is full CoreData: annotation: Disconnecting from sqlite database due to an error. CoreData: error: SQLCore dispatchRequest: exception handling request: , error during SQL execution : database or disk is full with userInfo of { NSFilePath = /var/mobile/Containers/Data/Application/77B8EAB6-120F-4E4D-AE96-EDC81258A250/Documents/myDB2.sqlite; NSSQLiteErrorDomain = 13; } It happens randomly and multiple times after different CoreData activities: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = 'ACHANGE' SELECT all columns from the regular table. SQLite bind[2] = SQLite: EXPLAIN QUERY PLAN SELECT sql: COMMIT Fetching 13543 rows Is it mean that the iPad doesn't have enough disk or RAM space? The iPad storage shows 26 GB of 128 GB used and application alocated only 48 MB RAM. I don't see the same errors on a different iPad with the same copied files.
Mar ’23
In UISplitViewController, can I use same viewController as a primary and compact column?
I am trying to utilize UISplitViewController to develop my app for iPad users. Since my app has a UITabBarController as its root view controller, I want to set this root view controller as a primary view controller in new UISplitViewController hierarchy, and its detail view controller to the secondary column. Also, when the app's width size class is compact (iPad SplitView mode), I want it to be same as current app. So the root view controller (UITabBarController) should be on the compact column of the new UISplitViewController system like below. class MySplitViewController: UISplitViewController { override init(style: UISplitViewController.Style) { super.init(style: style) let primaryVC = PrimaryViewController() let secondaryVC = SecondaryViewController() setViewController(primaryVC, for: .primary) setViewController(secondaryVC, for: .secondary) setViewController(primaryVC, for: .compact) } } With this code, in regular width mode, the primary and secondary column looks great as I e
2
0
597
Mar ’23
Reply to Video with different audio and video durations for HLS playback
I don't understand what is the discontinuity information duration table saying. What is the domains column? What does it mean if the start time table is all empty dashes? Also, I tried running the validator tool against the same file without differing video and audio stream duration and there was no error about Different content duration detected between discontinuities but there was still a shorter discontinuity information table. So is there something else that could be causing that warning instead of the total duration of the two streams being different in seconds? And yes I meant to extend the audio stream to match the video stream duration by padding the request and manifest with silence or padding video with empty P frames.
Topic: Media Technologies SubTopic: Streaming Tags:
Mar ’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
723
Feb ’23
SwiftUI popover disappearing when focus changes to its elements on some devices
I have a weird problem using a popover - this behavior is pretty random to me so I somehow think it's a bug - but I cannot reproduce the problem in a smaller project to give you reproducible code. I'm showing a table with a few rows and columns, one of this items per row is editable. If the user taps on the button a popover does appear, presenting a View with a TextField or a TextEditor (tried both with the same result). It all works fine on the iPhone (any situation), it works on the iPad in horizontal format, it works on the iPad in vertical format if there is an external keyboard connected. But - as soon as iOS needs to show the on screen keyboard, the popover disappears and so does the keyboard again. I replaced the popover view with a simplified version, to make sure there is nothing wrong with the popoverView and still got the same behavior. struct SimpleRemarkPopover: View { @Binding var showPopover:Bool @State var comment:String var body: some View { TextEditor(text: $comment) Button(action:
2
0
2.4k
Feb ’23
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 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
557
Feb ’23