parse-community / Parse-Swift

The Swift SDK for Parse Platform (iOS, macOS, watchOS, tvOS, Linux, Android, Windows)
https://parseplatform.org
MIT License
308 stars 69 forks source link

feat: add toCLLocation and toCLLocationCoordinate2D to ParseGeoPoint #366

Closed cbaker6 closed 2 years ago

cbaker6 commented 2 years ago

New Pull Request Checklist

Issue Description

There are no properties for converting a ParseGeoPoint to CLLocation and CLLocationCoordinate2D, only methods.

Related issue: #n/a

Approach

Created computed properties named toCLLocation and toCLLocationCoordinate2D and deprecate toCLLocation() and toCLLocationCoordinate2D(). In addition, improve the documentation for these properties.

TODOs before merging

parse-github-assistant[bot] commented 2 years ago

Thanks for opening this pull request!

codecov[bot] commented 2 years ago

Codecov Report

Merging #366 (67062fd) into main (5a2c5fd) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #366   +/-   ##
=======================================
  Coverage   87.90%   87.91%           
=======================================
  Files         114      114           
  Lines       12207    12213    +6     
=======================================
+ Hits        10731    10737    +6     
  Misses       1476     1476           
Impacted Files Coverage Δ
Sources/ParseSwift/Types/Query.swift 94.37% <ø> (ø)
Sources/ParseSwift/Extensions/Date.swift 100.00% <100.00%> (ø)
Sources/ParseSwift/Types/ParseGeoPoint.swift 98.90% <100.00%> (+0.07%) :arrow_up:
Sources/ParseSwift/Objects/ParseUser.swift 86.12% <0.00%> (-0.09%) :arrow_down:
Sources/ParseSwift/Coding/ParseEncoder.swift 77.77% <0.00%> (+0.11%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5a2c5fd...67062fd. Read the comment docs.