About 18,300,000 results
Open links in new tab
  1. xcode - Swift: Understanding // MARK - Stack Overflow

    What is the purpose of writing comments in Swift as: // MARK: This is a comment When you can also do: // This is a comment What does the // MARK achieve?

  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. Swift: print () vs println () vs NSLog () - Stack Overflow

    Sep 20, 2014 · Back in Swift 1.x, print did not add newline characters at the end of the printed string, whereas println did. But nowadays, print always adds the newline character at the end …

  4. What is the difference between `let` and `var` in Swift?

    Jun 3, 2014 · This is on topic but a poorly phrased question. There are at least 2 questions (i) diff between let and var; (ii) type safe vs type infer. In addition, when the poster mentioned …

  5. How do I get the App version and build number using Swift?

    I have an IOS app with an Azure back-end, and would like to log certain events, like logins and which versions of the app users are running. How can I return the version and build number …

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

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

  7. Newest 'swift' Questions - Stack Overflow

    Stack Overflow | The World’s Largest Online Community for Developers

  8. Swift 3 - How to make timer work in background - Stack Overflow

    i am trying to do an application which can make a timer run in background. here's my code: let taskManager = Timer.scheduledTimer(timeInterval: 10, target: self, selector: #selector(self.

  9. Swift - How to mutate a struct object when iterating over it

    Apr 21, 2015 · Swift - How to mutate a struct object when iterating over it Asked 10 years, 6 months ago Modified 2 years, 6 months ago Viewed 32k times

  10. How does String.Index work in Swift - Stack Overflow

    Sep 24, 2016 · It was deprecated in Swift 5 and replaced with the more explicit (String.Index (utf16Offset: l, in: s)). In my opinion this should have been a question rather than an answer e.g.