About 28,800,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. 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 the function …

  3. Newest 'swift' Questions - Stack Overflow

    Dec 7, 2025 · Stack Overflow | The World’s Largest Online Community for Developers

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

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

  7. ios - How do you create a Swift Date object? - Stack Overflow

    Swift has its own Date type. No need to use NSDate. Creating a Date and Time in Swift In Swift, dates and times are stored in a 64-bit floating point number measuring the number of seconds since the …

  8. Precision string format specifier in Swift - Stack Overflow

    Jun 5, 2014 · Precision string format specifier in Swift Asked 11 years, 6 months ago Modified 8 months ago Viewed 437k times

  9. How to find index of list item in Swift? - Stack Overflow

    Jun 4, 2014 · I am trying to find an item index by searching a list. Does anybody know how to do that? I see there is list.StartIndex and list.EndIndex but I want something like python's list.index("text").

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