Skip to content

Passing object and allowing dismiss? #7

@ozumado

Description

@ozumado

Hello there,

I'm just learning SwiftUI and I faced a problem while using this library (which is awesome and simple btw.). Is it possible to pass an object to modal view and enable dismiss action?

ModalLink(destination: DetailedView(item:item).init(dismiss:))

Doesn't seem to work... I'm either able to only pass an object or enable dismiss action.

ModalLink(destination: DetailedView(item:item)
ModalLink(destination: DetailedView.init(dismiss:))

Any clues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions