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> {
3333 self.pageSize = pageSize
3434 }
3535
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
3642 func reload() async {
3743 state = .loading
3844 next = nil