Tom Derry Marion Mantilla Tom Derry Marion Mantilla - 3 months ago 19
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.


Hahaha, "\n" LOL???

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

So result would be this?

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