I understand that The text property of UILabel is optional, I tried adding an else but i'm not sure what else to add.
productData.product.productName is me getting the name of the product from the database
if var pName = productData.product.productName { //error
self.productName.text = pName
}
@IBOutlet weak var pName: UILabel!
Initializer for conditional binding must have Optional type, not 'String' is the error I get, It was working I think im not sure where its gone wrong