Yes, sorry it is:
class ViewController: UIViewController, MKMapViewDelegate{
Now, the new struct is correct:
struct Szczyt {
var name: String
var describtion: String
var lattitude: CLLocationDegrees
var longtitude: CLLocationDegrees
var coordinate: CLLocationCoordinate2D {
.init(latitude: lattitude, longitude: longtitude)
// here Im trying to create var for this property to set it for all objects
}
}
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: