Post

Replies

Boosts

Views

Activity

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
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 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 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 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:
Replies
Boosts
Views
Activity
Feb ’24
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:
Replies
Boosts
Views
Activity
Feb ’24
Reply to How to get multiple camera streams?
Enquired about this during a lab session at WWDC and you cannot get multiple camera streams.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
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:
Replies
Boosts
Views
Activity
Jul ’23
Reply to how to download sample app?
The sample app is up https://developer.apple.com/documentation/realitykit/guided-capture-sample
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Does the RX 580 support Object Capture?
Where can I find which cards support this?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Xcode still tracking deleted files
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.
Replies
Boosts
Views
Activity
Nov ’22
Reply to (SceneKit) How to the the image in the center of the SCNScene (dynamically)? (NOT SPRITEKIT)
Change the contentMode from .scaleToFill to .aspectFit
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
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:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Error -> init(coder:) has not been implemented
The init method above that
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Error -> init(coder:) has not been implemented
The error is in the the collection view class at required init?(coder: NSCoder) {         fatalError("init(coder:) has not been implemented")     }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to UITableView indexPath changing while scrolling
Sorry that was a typo in my question. “meterNumber” is supposed to be “name”
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’21