Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halo not working in user location? #48

Open
ghost opened this issue May 11, 2020 · 0 comments
Open

Halo not working in user location? #48

ghost opened this issue May 11, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented May 11, 2020

Hello sir, thanks you for your library, the halo is not working for me, can you look in my code?

thanks :)

` let halo = PulsingHaloLayer()

    if annotation is MKUserLocation {
      let pin = mapView.view(for: annotation) as? MKPinAnnotationView ?? MKPinAnnotationView(annotation: annotation, reuseIdentifier: nil)
        pin.image = #imageLiteral(resourceName: "iphoneiconmap").resized(with: CGSize(width: 10, height: 25))
        
        halo.position = view.center
        pin.layer.addSublayer(halo)
        halo.backgroundColor = #colorLiteral(red: 0.7579909581, green: 0.6050492619, blue: 0.005667506656, alpha: 1)
        halo.start()
        
       return pin

    }`

the halo is showing but in the map not in the user location

@ghost ghost changed the title Halo not working? Halo not working in user location? May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants