I used the iOS 14 API UISplitViewController.automaticSupplementaryFillDimension to extend the supplementary column to the far edge of the split view controller, covering the secondary column. This API introduced in Xcode 12.0 beta 1 has been removed in Xcode 12.0 beta 5 (12A8189h).
Anyone knows how to now extend the supplementary column to the far edge of the split view to cover the secondary column?
The documentation for preferredSupplementaryColumnWidthFraction in Xcode 12.0 beta 5 (12A8189h) still mentions the removed API:
To extend the supplementary column to the far edge of the split view controller, covering the secondary column, set this property to automaticSupplementaryFillDimension.
Post
Replies
Boosts
Views
Activity
Hey,
I need to know the size of the widget in advance in order to create a proper UI for my widget. This works great by using the displaySize property provided by the TimelineProviderContext.
However so far I did not find any way to get the widget size for my placeholder view. Since I don't have a provider, I have no TimelineProviderContext and thus no displaySize.
Is there any way to know the widget size in the placeholder?
Here is a code snippet where I would need to pass the widget size to the PlaceholderView view:
struct MyWidget: Widget {
public var body: some WidgetConfiguration {
StaticConfiguration(kind: myWidgetKind, provider: Provider(), placeholder: PlaceholderView()) { entry in
WidgetEntryView(entry)
}
.configurationDisplayName("Display Name")
.description("Description")
.supportedFamilies([.systemSmall, .systemMedium])
}
}
Thanks in advance!
I would like to update my app to use the new cell reordering APIs in UICollectionViewDiffableDataSource.
Currently it seems that there is no sample code demonstrating these APIs. I could not find it in the Modern Collection Views sample.
Will there be an updated version of the Modern Collection Views app demonstrating how to use the reordering APIs? That would be really helpful to quickly start.
Thanks in advance!