About 18,700,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. 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.

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

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

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

  5. Can you run and compile Swift code on Windows? - Stack Overflow

    Apr 17, 2016 · With the release of Swift 3.0 being available for Mac OS and Windows, does this mean you can compile and run Swift code on Windows? If so what compiler do you use for Windows?

  6. How do I concatenate strings in Swift? - Stack Overflow

    Jun 4, 2014 · How to concatenate string in Swift? In Objective-C we do like NSString *string = @"Swift"; NSString *resultStr = [string stringByAppendingString:@" is a new Programming Language"]; or …

  7. swift - Read and write a String from text file - Stack Overflow

    I need to read and write data to/from a text file, but I haven't been able to figure out how. I found this sample code in the Swift's iBook, but I still don't know how to write or read data. import...

  8. How to check object is nil or not in swift? - Stack Overflow

    This question is similar to: Swift: Testing optionals for nil. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for …

  9. How is Swift `if let` evaluated? - Stack Overflow

    117 I've seen this code on the Swift site and various posts here and I am trying to grasp the basics. How is this line evaluated?

  10. ios - How can I color a UIImage in Swift? - Stack Overflow

    Aug 4, 2015 · How can I color a UIImage in Swift? Asked 10 years, 4 months ago Modified 2 years, 2 months ago Viewed 156k times