Skip to content

How to load Html File in WKWebView or SFSafariVC ? #371

@theRealGupta

Description

@theRealGupta

How to load HTML by string?

let server = HttpServer()
server[path] = { request in
    return HttpResponse.ok(.text("<html string>"))
}
server.start()

This code is mention in your Doc file.

Que 1: What is server[path] ? Means Path = ??? in place of path what path i will provide?
Que 2: After loading Html file in using HttpHandlers.directory(NSBundle.mainBundle().resourcePath! + "/www")
how i will display in our WKWebView or SFSafariVC ? what will be url for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions