Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Custom callout: re-add lazy vars
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbunny committed Aug 16, 2017
1 parent 35e87f6 commit 7961bd1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Examples/Swift/CustomCalloutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ class CustomCalloutView: UIView, MGLCalloutView {
}
}

// Lazy initialization of optional vars for protocols causes segmentation fault: 11s in Swift 3.0. https://bugs.swift.org/browse/SR-1825

var leftAccessoryView = UIView() /* unused */
var rightAccessoryView = UIView() /* unused */
lazy var leftAccessoryView = UIView() /* unused */
lazy var rightAccessoryView = UIView() /* unused */

weak var delegate: MGLCalloutViewDelegate?

Expand Down

0 comments on commit 7961bd1

Please sign in to comment.