Wrap WWW Folder Inside Xcode & Wire Up All to Work

I created a mobile app using HTML5, CSS, JavaScript -- done. I used PhoneGap Build to make it cross-platform--it works fine on iOS. Want to put app in Xcode to use Local Notifications and a few other Swift features. Got a Xcode Local Notification template going, so I stuck the entire www folder inside Xcode. I eventually also want to add a Search Bar to search an array, which is the meat of the app.


MAIN QUESTION: How do I wire www folder up so that I can see the index.html and other html pages working in simulator as the PhoneGap Build app works now on the mobile device, seeing Javascript code active and running and internal navigation icons? All code is self-contained so that app runs without internet.


2ndary QUESTIONS: How to get Local Notification and Search working.

UPDATES:

Local Notifications: I got a template going following a YT tutorial by Yp.py. Not sure if I'll be able to implement once I get the "meat" of my app wrapped inside Xcode.

Search: Still working this out.


Main Question: I am currently exploring WKWebView and the Tab Bar Controller to "wrap" or "nest" my "www" folder inside of an Xcode project.

(Note: I am NOT using PhoneGap Build product but rather the HTML, CSS, Javascript, and .png files I developed.)

I am not sure how to implement. Do I put the following in the override func "viewDidLoad" section of Swift code?


for WKWebView:

I was told to implement func url(forResource: String?, withExtension: String?), but I am unsure as to how.

(Note: the link above seems useful for experienced programmer, but for newbies, waay over our heads, I should think. Is there a video on this topic? And not a WWDC video, which again does not seem to give step by step examples and not just high-level overviews/training, at least not the ones I've watched so far. I am taking online courses into Xcode and Swift, but have yet to reach an answer.)

should func url read

func url(forResource: "index", withExtnesion: "html, subdirectory: "www")

How do I point this to my internal "www" folder, subdirectory, I guess is the correct term?

There is no external "url". Will this still work?


I also searched "Guides and Samples"to find func url(forResource...) sample code, but have not yet found location.

Wrap WWW Folder Inside Xcode & Wire Up All to Work
 
 
Q