Tom Derry Marion Mantilla Tom Derry Marion Mantilla - 19 days ago 4
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

Hahaha, "\n" LOL???

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

So result would be this?

marker.snippet = time + "\n" + speed
Comments