Custom MapAnnotation with RoundedRectangle Borders
SwiftUI Mastery Travel Discovery
Now that you understand how to render MapMarkers in your Maps, why don't we go ahead and introduce some custom views through MapAnnotation to spice things up. We'll start by rendering out some Text and then add an Image as well inside a VStack. Finally we'll end by discussing how to draw a RoundedRectangle border around our views.

Comments (2)
iTollMouS
2 years ago
Here is how I did it to get perfecto Text(attraction.name) .font(.system(size: 12, weight: .semibold)) .padding(.horizontal, 6) .padding(.vertical, 4) .foregroundColor(.white) .background(LinearGradient(gradient: Gradient(colors: [Color.red, Color.blue]), startPoint: .leading, endPoint: .trailing)) .cornerRadius(5) .overlay(RoundedRectangle(cornerRadius: 5).stroke(Color.white))
Brian Voong
2 years ago
iTollMouS
2 years ago
Thanks for the reply . I hope you can create more courses in SwiftUI for Instagram ., Twitter / Tinder clone .
Brian Voong
2 years ago
c.smith
2 years ago
Firestore and push notifications
Daryl Wong
2 years ago
Firestore will be great, thx.
Daryl Wong
2 years ago
Consider using Firestore, thx...
iTollMouS
2 years ago
Please include Pagination , Push Notification(Not using Node.js or CloudMessaging) the way you download the 2 certs and upload it in the project setting in Firebase, Firestore.
shivaskanthan
2 years ago
CloudKit would be great. I've not been able to find really good content on it.
MaxApp
2 years ago
Thanks for telling us about the keyboard shortcuts! Most of the time I would be like how does he do that and I go in the internet and spend 5 minutes to find out how you did it?. command + option + control was very very useful
HELP & SUPPORT