Skip to content

Commit cba631d

Browse files
authored
Create SnowView.swift
1 parent ae6d5a4 commit cba631d

File tree

1 file changed

+28
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)