Post

Replies

Boosts

Views

Activity

Reply to UISlider Unusual Track Behaviour
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))     } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’22
Reply to Does the RX 580 support Object Capture?
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).
Topic: Graphics & Games SubTopic: General Tags:
Jul ’23
Reply to CollectionView not calling didSelectItemAt correctly
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.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’24
Reply to CollectionView not calling didSelectItemAt correctly
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) } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’24