Skip to content

Commit

Permalink
Fix SwiftUI observing's @_spi usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed May 21, 2024
1 parent 20859a1 commit be539af
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ object SwiftUIFlowObservingGenerator {
var initialValue: Element { get }
}
extension SkieSwiftFlowWithInitialValue {
var flow: Flow {
Swift.fatalError("SkieSwiftFlowWithInitialValue has to be conformed to with @_spi(SKIE) enabled and this property implemented")
}
var initialValue: Element {
Swift.fatalError("SkieSwiftFlowWithInitialValue has to be conformed to with @_spi(SKIE) enabled and this property implemented")
}
}
internal struct SkieSwiftFlowWithInitialValueImpl<Flow: SkieSwiftFlowProtocol>: SkieSwiftFlowWithInitialValue {
let flow: Flow
let initialValue: Flow.Element
Expand All @@ -148,7 +158,7 @@ object SwiftUIFlowObservingGenerator {
extension SkieSwiftMutableStateFlow: SkieSwiftFlowWithInitialValue {
@_spi(SKIE)
public var flow: some SkieSwiftMutableStateFlow<Element> {
public var flow: SkieSwiftMutableStateFlow<Element> {
self
}
Expand Down

0 comments on commit be539af

Please sign in to comment.