About 18,600,000 results
Open links in new tab
  1. ios - Swift `in` keyword meaning? - Stack Overflow

    May 21, 2015 · The question of what purpose in serves has been well-answered by other users here; in summary: in is a keyword defined in the Swift closure syntax as a separator between …

  2. Swift - How to replace characters in a String? - Stack Overflow

    I am looking for a way to replace characters in a Swift String. In this example String: "This is my string" I would like to replace the spaces, " ", with "+" to end up...

  3. syntax - Swift make method parameter mutable? - Stack Overflow

    Jun 6, 2014 · For Swift 1 and 2 (for Swift 3 see answer by achi using an inout parameter): Argument of a function in Swift is let by default so change it to var if you need to alter the value …

  4. Swift: Sort array of objects alphabetically - Stack Overflow

    Swift: Sort array of objects alphabetically Asked 11 years ago Modified 3 years, 2 months ago Viewed 173k times

  5. What is the "some" keyword in Swift (UI)? - Stack Overflow

    Jun 3, 2019 · Swift 5.1 does not appear to have some as a keyword, and I don't see what else the word some could be doing there, since it goes where the type usually goes. Is there a new, …

  6. Swift - Sort array of objects with multiple criteria

    Jun 3, 2016 · Swift way to inmitate NSSortDescriptor. This uses the concept that 'functions are a first-class type'. SortDescriptor is a function type, takes two values, returns a bool. Say …

  7. ios - Swift: delete all array elements - Stack Overflow

    Jul 2, 2015 · Swift: delete all array elements Asked 10 years, 4 months ago Modified 5 years, 6 months ago Viewed 120k times

  8. ios - How to format localised strings in Swift? - Stack Overflow

    How to format localised strings in Swift? Asked 9 years, 9 months ago Modified 8 months ago Viewed 40k times

  9. Printing a variable memory address in swift - Stack Overflow

    Mar 15, 2017 · Here is the original answer that was marked correct (for posterity/politeness): Swift "hides" pointers, but they still exists under the hood. (because the runtime needs it, and for …

  10. How do I open a file in Swift? - Stack Overflow

    Jun 10, 2014 · The Swift standard library does not include this functionality. The standard library mainly contains data structures, low-level types and calls, and semi-built-in language features; …