fix: fix build failure

This commit is contained in:
Kenta Kubo 2025-09-02 02:26:14 +09:00
parent 2c3f8a4b2f
commit 17f950ecba
No known key found for this signature in database
GPG key ID: 3D79E20285C94BE8

View file

@ -114,8 +114,10 @@ extension RuleView: View {
}
}
@available(iOS 17, *)
#Preview {
@Previewable @State var rule = OnDemandRule(name: "Preview Rule")
NavigationStack {
RuleView(rule: .constant(OnDemandRule(name: "Preview Rule")))
RuleView(rule: $rule)
}
}