Spatial photo in RealityView has a default corner radius. I made a parallel effect with spatial photos in ScrollView(like Spatial Gallery), but the corner radius disappeared on left and right spatial photos. I've tried .clipShape and .mask modifiers, but they did't work. How to clip or mask spatial photo with corner radius effect?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
let component = GestureComponent(DragGesture())
iOS: ☑️
visionOS: ❌
This bug from beta to public, please fix it.
I want to use List(data:, editActions:, rowContent:), the data: needs a $property, but I can't pass $persons in there directly. Is there any way to solve like this below:
import SwiftUI
import SwiftData
struct BindableTest: View {
@Environment(\.modelContext) var modelContext
@Query var persons: [Person]
var body: some View {
VStack {
Button("Add") {
let person = Person(name: "test", age: 12)
modelContext.insert(person)
}
List($persons, editActions: .all) { $person in
Text(person.name)
Text(person.age.formatted())
}
}
}
}
iOS 17