Post

Replies

Boosts

Views

Activity

Reply to Forward Geocoding: Using getCoordinates() function to create MKMapItem
Still looking for guidance on how to create MKMapItem that is suitable for use in MKLookAroundSceneRequest() function. When I print the MKMapItem from a working Lookaround view: <MKMapItem: 0x600003ecf800> { isCurrentLocation = 0; name = "503 Alger St"; placemark = "503 Alger St, 503 Alger St, Detroit, MI 48202, United States @ <+42.38204680,-83.07368270> +/- 0.00m, region CLCircularRegion (identifier:'<+42.38204680,-83.07368270> radius 70.59', center:<+42.38204680,-83.07368270>, radius:70.59m)"; timeZone = "America/Detroit (EST) offset -18000"; } The MKMapItem's I have created look like this but do not work for Lookaround view: isCurrentLocation = 0; name = "503 ALGER ST DETROIT MI 48202-2163 USA"; placemark = "503 ALGER ST DETROIT MI 48202-2163 USA @ <+42.38204680,-83.07368270> +/- 0.00m, region CLCircularRegion (identifier:'<+42.38204680,-83.07368270> radius 0.00', center:<+42.38204680,-83.07368270>, radius:0.00m)"; } <MKMapItem: 0x600003e24400> { isCurrentLocation = 0; name = "2501 SHERIDAN ST, DETROIT, MI, 48214-1793"; placemark = "2501 SHERIDAN ST, DETROIT, MI, 48214-1793 @ <+42.35993330,-83.00728570> +/- 0.00m, region CLCircularRegion (identifier:'<+42.35993330,-83.00728570> radius 0.00', center:<+42.35993330,-83.00728570>, radius:0.00m)"; timeZone = "EST (GMT-5) offset -18000"; } You can see I tried adding timeZone property to one, but that didn't work. I'm noticing that "radius:70.59m" vs "radius:0.00m" could be the factor I need to figure out to get this working. I wish there was a guide or additional documentation to help me understand how to use this framework! Thanks for any help :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to Announcing the Swift Student Challenge 2026
If working in Xcode, are you still requiring the submissions to be App Playground (.swiftpm) files? The Get Ready page has been updated to say "For your submission to the Swift Student Challenge, submit an app built in Xcode or Swift Playground that can be experienced within three minutes." Thank you for the clarification!
Replies
Boosts
Views
Activity
Nov ’25
Reply to Forward Geocoding: Using getCoordinates() function to create MKMapItem
Still looking for guidance on how to create MKMapItem that is suitable for use in MKLookAroundSceneRequest() function. When I print the MKMapItem from a working Lookaround view: <MKMapItem: 0x600003ecf800> { isCurrentLocation = 0; name = "503 Alger St"; placemark = "503 Alger St, 503 Alger St, Detroit, MI 48202, United States @ <+42.38204680,-83.07368270> +/- 0.00m, region CLCircularRegion (identifier:'<+42.38204680,-83.07368270> radius 70.59', center:<+42.38204680,-83.07368270>, radius:70.59m)"; timeZone = "America/Detroit (EST) offset -18000"; } The MKMapItem's I have created look like this but do not work for Lookaround view: isCurrentLocation = 0; name = "503 ALGER ST DETROIT MI 48202-2163 USA"; placemark = "503 ALGER ST DETROIT MI 48202-2163 USA @ <+42.38204680,-83.07368270> +/- 0.00m, region CLCircularRegion (identifier:'<+42.38204680,-83.07368270> radius 0.00', center:<+42.38204680,-83.07368270>, radius:0.00m)"; } <MKMapItem: 0x600003e24400> { isCurrentLocation = 0; name = "2501 SHERIDAN ST, DETROIT, MI, 48214-1793"; placemark = "2501 SHERIDAN ST, DETROIT, MI, 48214-1793 @ <+42.35993330,-83.00728570> +/- 0.00m, region CLCircularRegion (identifier:'<+42.35993330,-83.00728570> radius 0.00', center:<+42.35993330,-83.00728570>, radius:0.00m)"; timeZone = "EST (GMT-5) offset -18000"; } You can see I tried adding timeZone property to one, but that didn't work. I'm noticing that "radius:70.59m" vs "radius:0.00m" could be the factor I need to figure out to get this working. I wish there was a guide or additional documentation to help me understand how to use this framework! Thanks for any help :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Forward Geocoding: Using getCoordinates() function to create MKMapItem
A friend helped me and wrote this custom initializer that accepts a name when creating a new MKMapItem. extension MKMapItem { public convenience init(name: String? = nil, lat: Double, lon: Double) { let placemark = MKPlacemark(coordinate: .init(latitude: lat, longitude: lon)) self.init(placemark: placemark) self.name = name } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24