Posts

Post not yet marked as solved
1 Replies
435 Views
I want to show the user actual start and end dates of the video played on the AVPlayer time slider, instead of the video duration data. I would like to show something like this: 09:00:00 ... 12:00:00 (which indicates that the video started at 09:00:00 CET and ended at 12:00:00 CET), instead of: 00:00:00 ... 02:59:59. I would appreciate any pointers to this direction.
Posted
by tomas.bek.
Last updated
.
Post marked as solved
2 Replies
2.6k Views
Dear All, How do I share a PDFDocument using the new ShareLink of the SwiftUI? The following code does not compute: let pdf = PDFDocument(data: data) ShareLink(items: pdf.dataRepresentation()!) Thanks.
Posted
by tomas.bek.
Last updated
.
Post not yet marked as solved
0 Replies
1.1k Views
Dear All, Recent updates in SwiftUI allow to add scope bars just beneath the search bar. Those are limited in space, though. How does one implement a scrollable filter as is seen in the Apple’s own Developer app?
Posted
by tomas.bek.
Last updated
.
Post not yet marked as solved
0 Replies
1.5k Views
Dear all, I want to add a Picker view under the search bar similarly as seen on the Files app: I would be happy with one of the two options - 1) to have a picker view to be visible under the search bar all the time (ie. even when the search bar is not activated), 2) to have the picker view to be visible when search bar is active. I tried to implement this by using the toolbar modifier but without luck. NavigationView {     List {         ...     }     .searchable(text: $searchText)     .toolbar {         ToolbarItem {             Picker(selection: $selectedScope) {                 ...             } label: {                 ...             }             .pickerStyle(.segmented)         }     } } I have also tried the workaround by adding the Picker view within the List/Form but in this case the Picker view disappears when the user scrolls the list down.     List {         Section {             Picker(selection: $selectedScope) {                 ...             } label: {                 ...             }             .pickerStyle(.segmented)         }         ...     }     .searchable(text: $searchText) } One last thing I tried was to put the picker view within the search bar’s suggestions parameter. This however, obscures the search results under the suggestions view.     List {         ...     }     .searchable(text: $searchText), suggestions: Picker(selection: $selectedScope) {                 ...             } label: {                 ...             }             .pickerStyle(.segmented) }) } Any ideas?
Posted
by tomas.bek.
Last updated
.
Post not yet marked as solved
1 Replies
661 Views
I have an app that uses Core Data integrated with CloudKit (public database). In one of the entities I have a boolean attribute, which is then "converted" to Int64 within the CloudKit dashboard. In the CloudKit Dashboard true values are marked as 1 and false values are marked as 0. In the previous version of the CloudKit dashboard I could change "true" (1) value to "false" (0) by simply entering zero (0) in the corresponding box. In the new version of the CloudKit it seems that this is not possible anymore as zero value is automatically deleted. This means that I cannot set any values to false (0) in the public database. Does anyone else has the same issue and knows any workarounds? Thanks.
Posted
by tomas.bek.
Last updated
.
Post not yet marked as solved
0 Replies
457 Views
Hello, I want to implement a footer supplementary view in a collection view in my app. I followed the example in the Modern Collection Views sample code and indeed the footer shows up perfectly. The problem arises when I implement a UIRefreshControl for the same collection view. This refresh control requests to 'reaply' the snapshot to the collection view. After this and several refreshes, all supplementary views show up perfectly again. However, when I check the 'Debug Memory Graph' section, I can see about 30-50 iterations of the custom Supplementary View. I added a deinit code within the custom supplementary view to check if it is called after reaplying the snapshot. It seems that it is applied only after 30-50 iterations of the custom supplementary views is reached in the Memory Graph. Is this a normal behaviour? Thank you.
Posted
by tomas.bek.
Last updated
.