Don't write this code! (use a multiline string instead 😌)

preview_player
Показать описание
#iOS #swift #softwaredeveloper #iosdeveloper

Thank you for watching this video 🙌

Рекомендации по теме
Комментарии
Автор

yeah, except that when string is localized (almost 99% of uses of strings) than first option is actually better, right?

jur
Автор

This is absolutely nice, but this doesn't work in something like Localizable.strings file.

ahmadmabrouk
Автор

Vincent, Hello 👋 Why not the “joined” function? It has been declared in String type. And through it, we can set the needed separator without using the multiline solution

MrDanylo
Автор

This will also work with SwiftUI Text view!

nigelgee
Автор

didn't you accidentally add a line break by moving the 1st line below instead of writing it right after the """ ?

leandrotami