Multiline string literalsBasics article available: Strings
One really nice benefit of Swift multiline string literals - even for single lines of text - is that they don't require quotes to be escaped. Perfect when working with things like HTML, or creating a custom description for an object.
let html = highlighter.highlight("Array<String>") XCTAssertEqual(html, """ <span class="type">Array</span><<span class="type">String</span>> """)
The perfect calculation companion for developers. Calculate anything — from dates, to budgets and prices, to what value to use as input for an algorithm. With variables, natural language processing, inline results, and more — it’s like Swift Playgrounds, but for math calculations.