zhuorantan / LocationPicker

A ready for use and fully customizable location picker for your app
MIT License
400 stars 79 forks source link

locationPicker.pinImage = UIImage(...) not working? #27

Closed JoniVR closed 7 years ago

JoniVR commented 7 years ago

I tried changing the pin image in the locationPicker (subclassing), but when I set the pinImage to a custom image it doesn't seem to change the image.

JoniVR commented 7 years ago

In case anyone else runs into this, the easiest workaround was just calling self.pinView.image = #imageLiteral(resourceName: "Location filled - checkin icon") instead of self.pinImage = #imageLiteral(resourceName: "Location filled - checkin icon")

Couldn't find a reason why it isn't displaying it but at least this way it works.