About 46,100,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. ios - What is "self" used for in Swift? - Stack Overflow

    Nov 10, 2014 · I am new to Swift and I'm wondering what self is used for and why. I have seen it in classes and structures but I really don't find them essential nor necessary to even mention …

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

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

  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. How can I use Timer (formerly NSTimer) in Swift?

    "How can I use NSTimer in Swift?" – the same way you use it in Objective-C. Its API didn't change.

  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. Newest 'swift' Questions - Stack Overflow

    2 days ago · Stack Overflow | The World’s Largest Online Community for Developers

  9. Rounding a double value to x number of decimal places in swift

    Dec 7, 2014 · The nature of Swift's Double appears to be that it can be imprecise – because of the way it's stored/accessed in binary, even using this rounding function will not return a …

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