i am using mapkit how i can multiple line in MKAnnotation view.
Every annotation there has title and subtitle. how i show sub title with
Using auto layout you can type something like:
let subtitleLabel = UILabel()
subtitleLabel.text = "Location updated\n" + dateFormatter.string(from: date)
subtitleLabel.numberOfLines = 0
subtitleLabel.font = UIFont.systemFont(ofSize: 14)
subtitleLabel.textColor = .lightGray
subtitleLabel.setContentCompressionResistancePriority(.required, for: .vertical)
annotationView?.detailCalloutAccessoryView = subtitleLabel