initialization - Cannot invoke initializer for type with an argument list of type Swift -


i have app 12 viewcontrollers. while go 1 viewcontroller save data struct fulldata. in class twelvethviewcontroller take contents of struct fulldata , pass them arguments instance of firebasedata, error - cannot invoke initializer type firebasedatawith argument list of type`( (firepostcode:string,fireselectedbathrow:int))

import foundation   struct fulldata {     static  var finalpostcode:string!     static  var finalselectedbathrow:int! }   struct firebasedata {   var firepostcode:string!   var fireselectedbathrow:int!     init(firepostcode:string,fireselectedbathrow:int){      self.firepostcode = firepostcode      self.fireselectedbathrow = fireselectedbathrow  } }   class twelvethviewcontroller: uiviewcontroller {    @ibaction func savetodb(sender: anyobject) {      let firedata = firebasedata(firepostcode: fulldata.finalpostcode,      fireselectedbathrow: fulldata.finalselectedbathrow)   } } 


Comments