swift_nugget's profile picture.

Swift Nuggets

@swift_nugget

With Swift 5, no need of the return keyword in your computed property

swift_nugget's tweet image. With Swift 5, no need of the return keyword in your computed property

Swift Nuggets reposted

Day 94 of the #100DaysOfSwiftUI is out now, wrapping up our layout and geometry technique project with three GeometryReader challenges and a new review to test your skills! hackingwithswift.com/100/swiftui/94 (PS: If you celebrate Christmas, don't feel bad for skipping a day! 🎄)

twostraws's tweet image. Day 94 of the #100DaysOfSwiftUI is out now, wrapping up our layout and geometry technique project with three GeometryReader challenges and a new review to test your skills! hackingwithswift.com/100/swiftui/94  (PS: If you celebrate Christmas, don't feel bad for skipping a day! 🎄)

Difference between Classes and Structs in Swift - Structs are value types whereas classes are reference types - Struct values are copied whereas class instances are accessed through their references - Struct doesn't support inheritance whereas classes do. #SwiftNuggets


Computed properties in swift don't store values, they compute their values. They have getters and optional setters. Check out the simple use case below.

swift_nugget's tweet image. Computed properties in swift don't store values, they compute their values. They have getters and optional setters. Check out the simple use case below.

Swift is really a great language, I have used it for a couple of years now, In my subsequent tweets, I will be dropping in useful swift nuggets. Stay tuned 🤞🏿


Loading...

Something went wrong.


Something went wrong.