Skip to content

Better type support for Swift #28

@cjwirth

Description

@cjwirth

I was using this in my app, and I was having difficulties with using the subscripting to get/set block route handlers. This is because the subscript method returns id, which in Swift was coming up as AnyObject. It wasn't let me cast the return value to DPLRouteHandlerBlock, because closures aren't objects.

There is probably some elegant solution that I didn't think of, but I just ended up writing a wrapper around it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions