You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change to networkOperation in PostsPageViewController.swift. Previous change allowed for builds without error but failed during TestFlight upload. This version passes TestFlight and also more closely reflects similar networkOperation setup in other files.
// Avoid warning in Xcode 14 beta 1 "cannot access property with a non-sendable type from a non-isolated deinit"
165
+
// UIViewController actually does guarantee deinit on the main queue, but the Swift compiler doesn't know that.
166
+
// (Also, it seems like an oversight that wrapping the access in an immediately-executed closure avoids the warning, so be prepared for more warnings here.)
167
+
{ networkOperation?.cancel()}()
167
168
}
168
169
169
170
varposts:[Post]=[]
@@ -201,8 +202,8 @@ final class PostsPageViewController: ViewController {
0 commit comments