Explicit deinit on PagedListModel for the Release optimizer !94

merged merged by cmc on 2026-09-08 04:37 UTC · krz/gitbay-ios:release-inliner-workaround into main

1 file changed, +6 −0

Layout: unified · split

gitbay/Repos/PagedListModel.swift +6
@@ -33,6 +33,12 @@ final class PagedListModel<Element: Decodable & Sendable> {
33 self.pageSize = pageSize 33 self.pageSize = pageSize
34 } 34 }
35 35
36 // An explicit deinit: with the deployment target at iOS 18 the Swift
37 // 6.3 optimizer crashes inlining the synthesized one of this generic
38 // @Observable class (isCallerAndCalleeLayoutConstraintsCompatible),
39 // which only a Release build reaches.
40 deinit {}
41
36 func reload() async { 42 func reload() async {
37 state = .loading 43 state = .loading
38 next = nil 44 next = nil