I was using this to hide the keyboard when tapped on screen (in the SwiftUI view), looks like the gesture recogniser for this was causing the issue. Once removed the collectionView works correctly.
func hideKeyboardOnTap() -> some View {
return self.onTapGesture {
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
}
}
Post
Replies
Boosts
Views
Activity
The collection view cell is recognising taps with isHighlighted so I can get around this problem by using a delegate. Passing the indexPath to the cell then back to the collection view with the delegate method. While this technically works it's called too often and "taps" are recognised even when trying to scroll.
Enquired about this during a lab session at WWDC and you cannot get multiple camera streams.
After digging around I found out that Object Capture uses the CPU for Ray Tracing and requires Intel Skylake (6th gen).
So you need a 6th gen or later Intel CPU and an AMD GPU with 4GB+ of VRAM (or any Apple Silicon Device). Therefore Object Capture does work with the RX 580 (tested).
The sample app is up https://developer.apple.com/documentation/realitykit/guided-capture-sample
Where can I find which cards support this?
I fixed this by going into the pods folder in the terminal and running git add --all the committing and pushing from the project root via the terminal.
Change the contentMode from .scaleToFill to .aspectFit
class CustomSlider: UISlider {
override func trackRect(forBounds bounds: CGRect) -> CGRect {
let point = CGPoint(x: bounds.minX, y: bounds.midY)
return CGRect(origin: point, size: CGSize(width: bounds.width, height: 20))
}
}
The init method above that
The error is in the the collection view class at required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") }
Sorry that was a typo in my question. “meterNumber” is supposed to be “name”