I am looking for a solution to add a nil object to and existing Mappable Model so I can use it for my Placeholder.
here is the model:
class PortfolioModel : Mappable {
var photoUrl : String?
var portfolioId : Int!
required init?(map: Map) {
}
func mapping(map: Map) {
photoUrl <- map["photoUrl"]
portfolioId <- map["portfolioId"]
}
}
in another class in my ViewController I have this:
var portfolioList : [PortfolioModel]?