Skip to content
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

New WebKit and Safari architecture #27

Closed
filimo opened this issue Oct 7, 2019 · 0 comments
Closed

New WebKit and Safari architecture #27

filimo opened this issue Oct 7, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@filimo
Copy link
Owner

filimo commented Oct 7, 2019

Improve architecture to manage WebKit and Safari

draw.io

    ┌────────────────┐                                  ┌────────────────┐
    │                │                                  │                │
    │      View      │────────openSafari───────────────▶│     Safari     │
    │                │                                  │                │
    └────────────────┘                                  └────────────────┘
    │                │
    │                │
makeView        updateView                                    ┌──────────────────────┐
    │                │                                        │                      │
    ▼                ▼                   ┌───────────────────▶│      WKPageView      │
    ┌────────────────┐                   │                    │                      │
    │                │               makeView                 └──────────────────────┘
    │ WKPepresenter  │───────────────────┘                    │           │          ▲
    │                │                ┌──────────────────┐    │           │          │
    └────────────────┘──makeView      │  WKScriptsSetup  │    │           │          │
                             └───────▶│                  │ create        ┌┘   goBack handler
     ┌───────────────────────┐        └──────────────────┘    │        load          │
     │     WKCoordinator     │                  │             │          │           │
     │                       │                  │             ▼          ▼           │
     └───────────────────────┘                  │             ┌──────────────────────┐
     ▲           ▲                              │             │      WKWebView       │
     │           │                              └──setup─────▶│                      │
     │           │                                            └──────────────────────┘
     │           │              ┌────────────────────────┐    │           │
     │           │              │ WKScriptMessageHandler │    │           │
     │           └──────────────│                        │◀───┘           │
     ┌──────────────────────┐   └────────────────────────┘                │
     │ WKNavigationDelegate │                                             │
     │                      │◀──────────────────────────navigation events─┘
     └──────────────────────┘
@filimo filimo added the enhancement New feature or request label Oct 7, 2019
@filimo filimo self-assigned this Oct 7, 2019
filimo added a commit that referenced this issue Oct 7, 2019
@filimo filimo closed this as completed Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant