Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 GMSMapView 的缩放(浮动)属性上添加一个观察者。我想知道这是否可能,我该怎么做?
给你:)
import RxSwift import RxCocoa extension GMSMapView { public var rx_zoom: Observable<Float> { return self.rx_observe(Float.self, "camera.zoom") .filter { $0 != nil } .map { $0! } } }
瞧!