Sorry that was a typo in my question. “meterNumber” is supposed to be “name”
Post
Replies
Boosts
Views
Activity
The error is in the the collection view class at required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") }
The init method above that
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))
}
}
Change the contentMode from .scaleToFill to .aspectFit
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.
Where can I find which cards support this?
The sample app is up https://developer.apple.com/documentation/realitykit/guided-capture-sample
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).
Enquired about this during a lab session at WWDC and you cannot get multiple camera streams.
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.
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)
}
}