Tom Derry Marion Mantilla Tom Derry Marion Mantilla - 1 year ago 73
Swift Question

How to do multiple lines in GoogleMaps marker snippet in Swift?

Let says I have this code

//time and speed are strings
marker.snippet = time + speed // 2016/04/14 60kmph

I want them to show in two lines and not one line only
Thanks in advance.

Answer Source

Hahaha, "\n" LOL???

"\n" should get parsed as a standard new line.

So result would be this?

marker.snippet = time + "\n" + speed
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download