Skip to content

Commit e8727c8

Browse files
chore(readme): adds project's basic working
Adds project's basic working in readme file.
1 parent 9d4e48e commit e8727c8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# JavaScript-iOS Screenshots
1+
# JavaScript-iOS
2+
This project is a test project that invokes `JavaScript` from native `Swift` code. `WKWebKit` is used to invoke `JavaScript`. Initially `JavaScript` is loaded from a web url in `String` form and evaluated using `WKWebView` instance. `Operation` enum represents a single operation which will be created using JS function `startOperation`. 4 different operations are created and 4 different progress UI elements are used to represent each operation. Progress UI elements are custom UIView's (`HorizontalProgressBar` and `CircularProgressBar`). A MessageHandler (`jumbo` here) is added to `WKWebViewConfiguration's` `userContentController` which receives the messages posted on the handler through `WKScriptMessageHandler's` delegate method `didReceive`. Upon receiving a new message, it is identified which operation this message belongs to and that operation's UI progress is updated accordingly using `handleMessage` (inside `VaccineTrialViewController`).
3+
4+
## Unit Tests
5+
There are 4 unit tests added `JavaScriptTests`
26

37
## Operations in progress
48
<img width="412" alt="Screenshot 2020-09-03 at 9 29 50 PM" src="https://user-images.githubusercontent.com/12998613/92148263-f3db3f00-ee39-11ea-9bf5-3e17a103e226.png">

0 commit comments

Comments
 (0)