I'm experiencing the same issue. It seems that setting resizeMode to .fast alleviates the problem.
Post
Replies
Boosts
Views
Activity
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.
Just to close the loop on this, it's no longer an issue from iOS 16 beta 5 onwards.
I just tried this and it did indeed fix the problem. Thanks for helping!
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.
I've been looking for the same, but sadly I don't think it's possible yet.
Thank you, the new API makes a lot of sense. Have a good WWDC 😊