Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created January 30, 2021 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sturdysturge/9a9028cb67bd43d5378facba435f85ba to your computer and use it in GitHub Desktop.
Save sturdysturge/9a9028cb67bd43d5378facba435f85ba to your computer and use it in GitHub Desktop.
import SwiftUI
import RealityKit
struct ARSettingsView: View {
let models: [ModelEntity]
var body: some View {
Group {
Form {
ForEach(models, id: \.self) {
model in
Section(header: Text(model.name)) {
MaterialsView(model: model)
}
}
}
.frame(height: 100)
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottom)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment