-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Swift Receiver Demo #68
Conversation
@@ -48,6 +48,8 @@ | |||
<key>UISupportedInterfaceOrientations</key> | |||
<array> | |||
<string>UIInterfaceOrientationPortrait</string> | |||
<string>UIInterfaceOrientationLandscapeLeft</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why or how that got in there! Let me remove that.
import Foundation | ||
|
||
public class DPLMessageRouteHandler: DPLRouteHandler | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching between same & next line open braces in this file ;)
@platedbay A couple stylistic consistency nitpicks but I'm excited to get this merged! :) |
Nice, let's wait for tests to pass then LGTM |
👍 |
As a side-note, anything you come across as you build on DLK on Swift, feel free to open an issue - I'd love to make it better in any way we can. |
Will do! |
Add a Swift Receiver Demo
I've created a simple example of how to use the DeepLinkKit in Swift. As of creating this PR, the only way to handle routes is by creating classes that subclasses the
DPLRouteHandler
class. This was requested in #65.In order to support the shorthand approach of registering a
DPLRouteHandlerBlock
to a route, we'd need (I believe) to enhance the library a bit more (create a sort of class/struct that has theDPLRouteHandlerBlock
as a property would be a potential solution). This is out of scope of this PR as per #28.I can also create a Swift version of the SenderDemo; however, there aren't many changes involved with that one. Let me know what you guys think!