I tried to used some @inlinable and @usableFromInline in a SwiftUI library but found that things like @Observable and @State are not friendly for using inline attributes:
@Observable
final class MyModel {
@usableFromInline var myState = 0
// Expanded to something like `@usableFromInline private var`
}
Since I used generics in Views and there might be some heavy computations in models, I do want to keep the call stack inlinable. Is there a better approach for this?