Код: Выделить всё
Cannot find 'GMSPinImageOptions' in scope
Код: Выделить всё
import GoogleMaps
extension GMSMarker {
func setTintColor(_ tint: UIColor) {
let options = GMSPinImageOptions() // Cannot find 'GMSPinImageOptions' in scope
options.backgroundColor = tint
let pinImage = GMSPinImage(options: options) // Cannot find 'GMSPinImage' in scope
icon = pinImage
}
}
Также здесь приведены официальные документы, на которые я ссылаюсь, «Настройка маркера».
Подробнее здесь: https://stackoverflow.com/questions/782 ... -scope-ios
Мобильная версия