Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Swift getting started snippet #35

Open
alexbredy opened this issue Apr 6, 2017 · 2 comments
Open

Swift getting started snippet #35

alexbredy opened this issue Apr 6, 2017 · 2 comments

Comments

@alexbredy
Copy link

alexbredy commented Apr 6, 2017

Hi there, just noticed something while I was setting up the code in Swift.

I think the snippet should be rewritten like this in order to compile:

FBNotificationsManager.shared().presentPushCard(forRemoteNotificationPayload: userInfo, from: nil) { viewController, error in
        if let _ = error {
            completionHandler(.failed)
        } else {
            completionHandler(.newData)
        }
}

Thanks!

@alexbredy alexbredy changed the title Small error in Swift getting started snippet Update Swift getting started snipped Apr 6, 2017
@alexbredy alexbredy changed the title Update Swift getting started snipped Swift getting started snippet Apr 6, 2017
@bre7
Copy link

bre7 commented May 8, 2017

👍 #36 sent

@ethanhunt88
Copy link

#36 sent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants