Skip to content

Commit ae6d5a4

Browse files
authored
Create RainView.swift
1 parent 97fef82 commit ae6d5a4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//
2+
// RainView.swift
3+
// VisionParticleEffects
4+
5+
import SwiftUI
6+
import RealityKit
7+
import RealityKitContent
8+
9+
struct RainView: View {
10+
var body: some View {
11+
NavigationStack {
12+
ZStack {
13+
Model3D(named: "Rain") { model in
14+
model
15+
.resizable()
16+
.aspectRatio(contentMode: .fit)
17+
} placeholder: {
18+
ProgressView()
19+
}
20+
}
21+
}
22+
}
23+
}
24+
25+
#Preview {
26+
RainView()
27+
}

0 commit comments

Comments
 (0)