added preview for views
This commit is contained in:
@@ -177,4 +177,12 @@ private enum SystemCameraError: LocalizedError {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
SystemPhotoCameraView(
|
||||
onDismissRequest: {},
|
||||
onMedia: { _ in },
|
||||
onCancel: {}
|
||||
)
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user