Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Mar 19, 2024
1 parent a298d72 commit 4596376
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Tests/PerceptionTests/RuntimeWarningTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -544,21 +544,6 @@
self.render(FeatureView())
}

func testOnChange() {
struct FeatureView: View {
let model = Model()
@State var count = 0
var body: some View {
Text("Hi")
.onChange(of: count) { _ in
_ = model.count
}
.onAppear { count += 1 }
}
}
self.render(FeatureView())
}

private func render(_ view: some View) {
let image = ImageRenderer(content: view).cgImage
_ = image
Expand Down

0 comments on commit 4596376

Please sign in to comment.