title: How to compare two Struct objects?
body: <p>I have two objects for the same struct class having different values. I need to compare these two objects whether they are equal or not. Please guide me through a proper solution.</p>
  
  <pre><code>struct CustomerInfo {
     var billAddressCity: String?
  
     init(a:String?){
        billAddressCity = a
  
    }
  }
  
   /* init object */
   var obj1 =  CustomerInfo?
   var obj2 =  CustomerInfo?
  
   obj1 = CustomerInfo(a: "ONE")
   obj2 = CustomerInfo(a: "TWO")
  
   /*  I need to compare these two objects */
  
   if obj1 == obj2 {
       Print(equal values)
    }
  </code></pre>
  
  <p>This is not the answer Iam looking for, as it says i need to compare each and every values of fields manually, 
  <a href="https://stackoverflow.com/questions/30105272/compare-two-instances-of-an-object-in-swift">Compare two instances of an object in Swift</a></p>