Skip to content

Commit

Permalink
Fixed single-view binding problem
Browse files Browse the repository at this point in the history
  • Loading branch information
blsage committed Oct 26, 2020
1 parent a3f52d7 commit 4528807
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Sources/iPages/Decomposable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ extension View {
extension View {
func decompose() -> [AnyView] {
if let decomposable = self as? Decomposable {
print("1")
return decomposable.subviews()
}
if Body.self == Never.self {
print("2")
return [AnyView(self)]
}
print("3")
return body.decompose()
return [AnyView(self)]
}
}

Expand Down

0 comments on commit 4528807

Please sign in to comment.