About 63,600,000 results
Open links in new tab
  1. What is _: in Swift telling me? - Stack Overflow

    Jun 17, 2015 · Swift needs a convention for saying what the name of a function is, including not only the function name itself (before the parentheses) but also the external names of the …

  2. Swift await/async - how to wait synchronously for an async task to ...

    Feb 3, 2022 · 77 I'm bridging the sync/async worlds in Swift and doing incremental adoption of async/await. I'm trying to invoke an async function that returns a value from a non async …

  3. 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, …

  4. null / nil in Swift - Stack Overflow

    8 Swift’s nil is not the same as nil in Objective-C. In Objective-C, nil is a pointer to a non-existent object. In Swift, nil is not a pointer—it is the absence of a value of a certain type. Optionals of …

  5. How does one declare optional methods in a Swift protocol?

    415 In Swift 2 and onwards it's possible to add default implementations of a protocol. This creates a new way of optional methods in protocols.

  6. swift2 - Swift: guard let vs if let - Stack Overflow

    The Swift Docs on Control Flow explain the idea behind that: Using a guard statement for requirements improves the readability of your code, compared to doing the same check with …

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

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

  8. What does $0 and $1 mean in Swift Closures? - Stack Overflow

    Mar 22, 2016 · TL;DR Swift 5.9 $0, $1, $2 are Closure 's first, second and third Shorthand Argument Names or, in other words, implicit parameter names, if you like. The shorthand …

  9. ios - Swift - encode URL - Stack Overflow

    Jul 3, 2014 · 98 Swift 4 & 5 To encode a parameter in URL I find using .alphanumerics character set the easiest option:

  10. 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...