About 15,900,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 parameters.

  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 function. I …

  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, unannounced …

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

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

    I have been reading about Optionals in Swift, and I have seen examples where if let is used to check if an Optional holds a value, and in case it does – do something with the unwrapped value. Howe...

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

  7. What is the entry point of swift code execution? - Stack Overflow

    May 6, 2016 · The entry point in a plain Swift module is the file in the module called main.swift. main.swift is the only file which is allowed to have expressions and statements at the top level (all …

  8. swift if or/and statement like python - Stack Overflow

    swift if or/and statement like python Asked 11 years, 1 month ago Modified 5 years, 6 months ago Viewed 80k times

  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. 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 number rounded to 3 …