swift - How to I extract a PHAsset's Location property? -
xcode says phasset doesn't have 'location' member.
what's remedy swift?
short answer: might have forgotten import corelocation;
import photos import corelocation let asset: anyobject? = nil if let asset = asset as? phasset { let location = asset.location }
when remove corelocation import, can replicate error.
Comments
Post a Comment