- Language: Swift 4.2
- Platform: iOS 12
- Editor: Xcode 10
Create a simple browser. App will have only 2 Screen as follows
-
Screen 1 - Web Browser
- This whole screen will Show the webpage in Webview.
- At top of the screen their will be a text field & a go button where user can enter search text or url. If it is url then display that webpage and If it is a search string then show google search results page with query as search string.
- At bottom of the screen There will be 3 buttons. Back, Forward & Bookmark. On pressing bookmark The Page should be Bookmarked.
-
Screen 2 - All Bookmarks
-
From Screen 1 use can navigate to this Page via menu item.
-
This page should show all the bookmarked pages. If a user tap on any bookmark then that link will open in Screen 1. NOTE: The Bookmark page should be removed from navigation stack, ie. When tapping on Bookmark Item, Screen 1 should open but when I press back button It should exit from the app & should not open The bookmark page again.
-
-
How to exit from App
- When user press Back button on Screen 1 show a toast with message “press again to exit”. On second tap of back button user should be exit from App. ie. user should press back button 2 times from screen 1 to exit from the App.
- Forward button disabled when no page to forward
- Option to remove bookmark
- Progress bar to show loading progress
- Persistence of bookmarks after quitting app