Fresh Beginning
  • Home
  • Portfolio
  • My Clothing Shop
  • Etsy Clothing Store
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
  • Contact Me
Subscribe

Equatable

A collection of 2 posts
Caveats while using Equatable with NSObject
NSObject

Caveats while using Equatable with NSObject

Today I am going to talk about how to use Equatable with Swift and NSObject inherited objects. This is interesting because last week I came to know about the fact that Swift's inbuilt Equatable protocol does not play nice with objects inherited from NSObject Equality with Swift objects Let's look
Jul 9, 2018 3 min read
Swift 3.0

Equality and Comparison with custom objects in Swift (Equatable protocol)

Few weeks ago I ran into frustrating problem. I was dealing with custom objects in Swift. (Actually struct with properties). They were being stored in an array. Now, this array was going to undergo frequent activity due to user action such as adding new elements and avoiding duplicates. So while
Feb 10, 2017 2 min read
Fresh Beginning © 2025
Powered by Ghost