PromiseKit / CoreLocation

Promises for Swift & ObjC
http://promisekit.org
MIT License
30 stars 29 forks source link

Wrapping geocodePostalAddress into Promise #11

Closed timbms closed 6 years ago

timbms commented 6 years ago

I want to propose an addition to wrap geocodePostalAddress available as of iOS 11 into PromiseKit

    /// Submits a forward-geocoding request using the specified postal address.
    @available(iOS 11.0, *)
    public func geocodePostalAddress(_ postalAddress: CNPostalAddress) -> Promise<[CLPlacemark]> {
        return Promise { seal in
            geocodePostalAddress(postalAddress, completionHandler: seal.resolve)
        }
    }
mxcl commented 6 years ago

k, you want to PR? Or I can probably do it today.

timbms commented 6 years ago

You can do it. I haven't done PR on GitHub so far.

mxcl commented 6 years ago

I make no promises, I have very little time for free open source work today.

nathanhosselton commented 6 years ago

@timbms A small, purely additive change like this is the perfect way to get your feet wet with PRs on GitHub! Why not take a stab at it? It's pretty easy:

  1. Fork the repo (in this case, our CoreLocation repo)
  2. Add the change (it'll go in the CLGeocoder+Promise.swift file)
  3. Open the PR!
timbms commented 6 years ago

OK I take the challenge. Let me do it over the weekend. Tim

On Tue, Feb 20, 2018 at 11:03 PM, Nathan Hosselton <notifications@github.com

wrote:

@timbms https://github.com/timbms A small, purely additive change like this is the perfect way to get your feet wet with PRs on GitHub! Why not take a stab at it? It's pretty easy:

  1. Fork the repo (in this case, our CoreLocation repo https://github.com/PromiseKit/CoreLocation)
  2. Add the change (it'll go in the CLGeocoder+Promise.swift file https://github.com/PromiseKit/CoreLocation/blob/master/Sources/CLGeocoder%2BPromise.swift)

  3. Open the PR!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PromiseKit/CoreLocation/issues/11#issuecomment-367135965, or mute the thread https://github.com/notifications/unsubscribe-auth/AFKRO5EBG18ySa9Z96XqMgsKT3XtvnHIks5tW0ESgaJpZM4SMhWI .

mxcl commented 6 years ago

Closed by #12