Swift 5.9 allows omitting the return keyword, making code more concise in if and switch expressions #swiftlang
SwiftBeta Swift y SwiftUI’s Post
More Relevant Posts
-
Meet the Swift Testing framework https://lnkd.in/eYBpbu2N ✨ A new way of writing tests in Swift 💪 Reduce boilerplate code ❌ Improved diagnostics #swiftlang #iosdev
To view or add a comment, sign in
-
⇤ Just a quick recall of a noteworthy addition to Swift 5.8 that slipped my mind: No more need for explicit ‘self’ after ‘weak self’ is unwrapped. This small yet impactful improvement makes our Swift code cleaner and more concise. #swiftprogramming
To view or add a comment, sign in
-
The #expect macro in Swift Testing is a great example of how Swift Macros can impact our workflows. Where XCTest required us to use many different expectation methods, we can now rely on a single improved replacement which comes with better debugging features. https://lnkd.in/eJ7wxgEG #swiftlang #iosdev
To view or add a comment, sign in
-
Senior Android Developer | Software Engineer | Kotlin | Jetpack Compose | Mobile Architecture | Reactive Programming | Clean Code
The “Guard Let / Else” Syntax In Swift: If You’re A Swift Developer You Already Know The Power Of “If Let” For Checking Nil Values. Let’s take it to the next level with “guard / else” statement: The “guard let / else” not only checks for nil, but after the check the variable remains a non-optional, so you can use it safely until you exit the current function. Let’s dive into an example:
To view or add a comment, sign in
-
🥇 Using @Environment in SwiftUI to link Swift Package dependencies https://lnkd.in/evUt3Z9M 🥈 Async await in Swift explained with code examples https://lnkd.in/e4kq8CWb 🥉 Bar Chart creation using Swift Charts https://lnkd.in/eGspSSMx #swiftlang #swiftlee
To view or add a comment, sign in
-
🥇 Using the #expect macro for Swift Testing https://lnkd.in/eGc_aGYZ 🥈 Async await in Swift explained with code examples https://lnkd.in/e4kq8CWb 🥉 Sendable and @Sendable closures explained with code examples https://lnkd.in/eQrjaDif #swiftlang #swiftlee
To view or add a comment, sign in
-
Was practicing some swift code after a while & ended up writing about Swift Result Builder. #swift #swiftui #ResultBuilder #resultBuilder
To view or add a comment, sign in
-
We have two crucial places where Swift can run our code: Main Thread and Cooperative Thread Pool. The next step is always to be sure where the Swift language will run your code. https://buff.ly/43oknwc
To view or add a comment, sign in
-
Restrict Protocol only for class type conformance. 💡 You can limit protocol adoption to class types (and not structures or enumerations) by adding the AnyObject protocol to a protocol’s inheritance list. see below code: - #iOSDeveloper #swiftlang
To view or add a comment, sign in
-
Here is how to migrate from XCTest to Swift Testing with Swift 6.0+Xcode 16.0+. #automationTesting #unittest #swiftesting
Migrating from XCTest to Swift Testing
pradappandiyan.medium.com
To view or add a comment, sign in
iOS Developer | Swift | SwiftUI | Web Developer | React JS
4moGood to know!