added preview for views
This commit is contained in:
1 parent
1650145d4d
commit
1e2670903f
36 files changed
+744
-16
No files matched your search
@@ -50,7 +50,7 @@ struct VideoNotePreview: View {
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
Spacer()
|
||||
// Spacer()
|
||||
Text(durationText)
|
||||
.font(.caption2.monospacedDigit().weight(.semibold))
|
||||
.foregroundStyle(.white)
|
||||
@@ -153,3 +153,12 @@ struct VideoNotePreview: View {
|
||||
isPlaying.toggle()
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
VideoNotePreview(
|
||||
model: PreviewSupport.model,
|
||||
message: PreviewSupport.videoNoteMessage(),
|
||||
onFallbackTap: {}
|
||||
)
|
||||
.padding()
|
||||
}
|
||||
Reference in new issue
Block a user