I think you found work solution, by the way:
Task {
await MatchHistoryController.shared.fetchMatchRecords()
if Task.isCancelled == false else { return }
await MainActor.run { [weak self] in self?.dataSource.apply(self.initialSnapshot(), animatingDifferences: false) }
}
But what about if you need to apply datasource in global queue, and do it in UIViewController which bordered as @MainActor :)
I have got warn UICollectionViewDiffableDataSource is not @Sendable :)
Post
Replies
Boosts
Views
Activity
@PBK Hello, what about if you have test department which should test subscription workflow?
How to test auto-renew subscription on device of testers which use AdHoc build.
Also they want to change auto renew subscribe period over appstoreconnect accout, for control time of testing ?)
I have got this crash too, but it happened when scroll this widget in widget install menu.
This description of crash is not informative at all! @Apple
Never do next :)
Settings -> Development -> Multi path network -> Switch On -> Set aggregate -> Switch Off :)
This will break network connection at all :)
If you found something like this in Console while iPhone is connected:
nw_endpoint_flow_attach_protocols [C5228.1.1 IPv4#7016c7df:443 in_progress multipath-socket-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] Failed to attach socket protocol
Try to check this settings if you have Development menu enabled :)
Have a nice evening :)
In video "Build SwiftUI views for widgets" author use .isPlaceholder(false) to set view is not placeholder, but... It's not available >____<
Value of type 'Text' has no member 'isPlaceholder'
Xcode Version 12.0.1 (12A7300)
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
extension View {
public func redacted(reason: RedactionReasons) -> some View
public func unredacted() -> some View
}
Does it work with tvOS 13.
I saw some bug with this usage, when I minimized our app to tray, dark mode disappear when restore from tray, and I can't see any characters button in search field :(