About 19,000,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 - 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 …

  3. How does one declare optional methods in a Swift protocol?

    One of the Swift Core Team members (I don't remember who that was exactly) said that Swift only has "optional protocol requirements" because it is needed for Obj-C interop. Also, the …

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

  5. ios - Swift - encode URL - Stack Overflow

    Jul 3, 2014 · I like the Swift 3 solution, but it does not work for me in Swift 4: "Cannot use mutating member on immutable value: 'urlQueryAllowed' is a get-only property".

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

    The Swift Docs on Control Flow explain the idea behind that: Using a guard statement for requirements improves the readability of your code, compared to doing the same check with …

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

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

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

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