Post

Replies

Boosts

Views

Activity

Reply to MKMarkerAnnotationView being clipped
I know this was two years ago so you probably found a workaround by now, but I just came across this and figured out a hack to make it work. // Manually set the bounds to be larger than 28x28. // 80 is an arbitrary number to prevent clipping. annotationView.bounds = CGRect( x: self.point(for: location.coordinate).x, y: self.point(for: location.coordinate).y, width: 80, height: 80 ) // Use the bounds (not the frame) with setting the rect to draw in let rect = CGRect( x: self.point(for: location.coordinate).x, y: self.point(for: location.coordinate).y, width: annotationView.bounds.width, height: annotationView.bounds.height ) For me, this has fixed the problem. I'm not completely comfortable with having to use 80 as an arbitrary value – it feels like it could break in the future – but it'll do for now.
Jul ’23
Reply to App icon assets don't show in iOS 18
Just echoing that this is affecting my apps too – it seems like a regression?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to PHImageManager.requestImage method spiking memory by 20MB while loading a 4MB image
I'm experiencing the same issue. It seems that setting resizeMode to .fast alleviates the problem.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to MKMarkerAnnotationView being clipped
I know this was two years ago so you probably found a workaround by now, but I just came across this and figured out a hack to make it work. // Manually set the bounds to be larger than 28x28. // 80 is an arbitrary number to prevent clipping. annotationView.bounds = CGRect( x: self.point(for: location.coordinate).x, y: self.point(for: location.coordinate).y, width: 80, height: 80 ) // Use the bounds (not the frame) with setting the rect to draw in let rect = CGRect( x: self.point(for: location.coordinate).x, y: self.point(for: location.coordinate).y, width: annotationView.bounds.width, height: annotationView.bounds.height ) For me, this has fixed the problem. I'm not completely comfortable with having to use 80 as an arbitrary value – it feels like it could break in the future – but it'll do for now.
Replies
Boosts
Views
Activity
Jul ’23
Reply to NavigationStack doesn't refresh its body when a state value changes from `nil`
Just to close the loop on this, it's no longer an issue from iOS 16 beta 5 onwards.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to NavigationStack doesn't refresh its body when a state value changes from `nil`
I just tried this and it did indeed fix the problem. Thanks for helping!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Is it possible to switch back to App Clip from third-party app
I'd also like to do this in an app. The app I'm building uses Spotify's API, so I need users to go to Safari to sign in to Spotify and authorise my app to access their data, then be redirected to my app via a redirect URI callback.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22