# Topic:2 How To Make About Us WebView For Your Application (For Client Company) Swift3 iOS

**URL:** <https://forums.kodeco.com/t/topic-2-how-to-make-about-us-webview-for-your-application-for-client-company-swift3-ios/27004>\
**Category:** Swift\
**Created:** [March 8, 2017, 11:29am UTC](https://forums.kodeco.com/t/topic-2-how-to-make-about-us-webview-for-your-application-for-client-company-swift3-ios/27004 "2017-03-08T11:29:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay005](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jay005/32/67646_2.png) [@jay005](https://forums.kodeco.com/u/jay005)\
**Post date:** [March 8, 2017, 11:29am UTC](https://forums.kodeco.com/t/topic-2-how-to-make-about-us-webview-for-your-application-for-client-company-swift3-ios/27004/1 "2017-03-08T11:29:54Z")

</div>

Here Is Our Basic Web View For About Us…

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/1/9/1985e76a1af1cde68934e5c62d12522ccfc88617.png)

For More Information.

> [@UIView Tutorial for iOS: How To Make a Custom UIView in iOS 5: A 5 Star Rating View](https://forums.kodeco.com/t/uiview-tutorial-for-ios-how-to-make-a-custom-uiview-in-ios-5-a-5-star-rating-view/6660):
>
> A UIView tutorial in which you will learn how to make a a custom UIView in iOS 5 - a handy view to let users rate something in your app from 1 to 5 stars! This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/3115-uiview-tutorial-for-ios-how-to-make-a-custom-uiview-in-ios-5-a-5-star-rating-view](https://www.raywenderlich.com/3115-uiview-tutorial-for-ios-how-to-make-a-custom-uiview-in-ios-5-a-5-star-rating-view)

> [@How to Write an iOS App That Uses a Web Service](https://forums.kodeco.com/t/how-to-write-an-ios-app-that-uses-a-web-service/6367):
>
> A tutorial on how to write an iOS App that uses a web service. Comes with a companion tutorial showing you how to make the web service itself! This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/3088-how-to-write-an-ios-app-that-uses-a-web-service](https://www.raywenderlich.com/3088-how-to-write-an-ios-app-that-uses-a-web-service)

> [@Table View Helper Class for iOS](https://forums.kodeco.com/t/table-view-helper-class-for-ios/7082):
>
> Make a beautiful table view on the iPhone using this handy helper class. This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/3153-table-view-helper-class-for-ios](https://www.raywenderlich.com/3153-table-view-helper-class-for-ios)

---

<div class="post-metadata">

**Author:** ![jay005](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jay005/32/67646_2.png) [@jay005](https://forums.kodeco.com/u/jay005)\
**Post date:** [March 8, 2017, 11:35am UTC](https://forums.kodeco.com/t/topic-2-how-to-make-about-us-webview-for-your-application-for-client-company-swift3-ios/27004/2 "2017-03-08T11:35:02Z")

</div>

For This You Have To Take One Blank View Controller… And Select A web View As Shown In Picture…

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/5/1/5105d158a97a4f7edea2a592bd69343dff195469.png)

Select It And Put It In To Your Blank VC…  
Now Set Some Margin And Constraint For Better View…  
click on this image…

---

<div class="post-metadata">

**Author:** ![jay005](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jay005/32/67646_2.png) [@jay005](https://forums.kodeco.com/u/jay005)\
**Post date:** [March 8, 2017, 11:39am UTC](https://forums.kodeco.com/t/topic-2-how-to-make-about-us-webview-for-your-application-for-client-company-swift3-ios/27004/3 "2017-03-08T11:39:57Z")

</div>

Now Its Time To Code It…  
So, Here We have code For It…

import UIKit

class AboutuswebViewControoler: UIViewController,UIWebViewDelegate {

@IBOutlet weak var webView: UIWebView!  
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!

func webViewDidStartLoad(\_ webView: UIWebView) {  
activityIndicator.isHidden = false  
activityIndicator.startAnimating()  
}

func webViewDidFinishLoad(\_ webView: UIWebView) {  
activityIndicator.isHidden = true  
activityIndicator.stopAnimating()  
}

func webView(\_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) → Bool {  
return true  
}

```
override func viewDidLoad() {
    super.viewDidLoad()
    webView.delegate = self
    let url = URL(string: "http://www.google.com/")
    webView.loadRequest(URLRequest(url: url!))   
}    

func webView(_ webView: UIWebView, didFailLoadWithError error: Error) {
    print("error" + error.localizedDescription)
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    // Get the new view controller using segue.destinationViewController.
    // Pass the selected object to the new view controller.
}
*/

```

@IBAction func BackButton(\_ sender: Any) {  
webView.reload()  
}  
}

---

<div class="post-metadata">

**Author:** ![jay005](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jay005/32/67646_2.png) [@jay005](https://forums.kodeco.com/u/jay005)\
**Post date:** [March 8, 2017, 11:49am UTC](https://forums.kodeco.com/t/topic-2-how-to-make-about-us-webview-for-your-application-for-client-company-swift3-ios/27004/4 "2017-03-08T11:49:32Z")

</div>

Now You Can Get Result like this…  
But By Giving Any URL At here

let url = URL(string: “[http://www.google.com/](http://www.google.com/)”)

You Can Get The Web View Of That Particular Site…  
But The Condition To Fix The View With This Method Is Only The Web Site Should Responsive…

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/3/b/3b4726f27570dce09b1224d17baaed2b15aa1dbb.png)

---

<div class="post-metadata">

**Author:** ![jay005](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jay005/32/67646_2.png) [@jay005](https://forums.kodeco.com/u/jay005)\
**Post date:** [March 8, 2017, 11:54am UTC](https://forums.kodeco.com/t/topic-2-how-to-make-about-us-webview-for-your-application-for-client-company-swift3-ios/27004/5 "2017-03-08T11:54:18Z")

</div>

I Have Given A **Home Button** So User Can Not Browse In Their Browser And On Click Of **Reload** User Can Able To Reload The Site…

![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/b/e/be60012e9d63a5d0428c734b7495d3d4b983f693.png)

Basically This View Uses The Browser And In Browser User Can Navigate Them Selves Anywhere So To Stick User With This View I Was Used Home Button In My Application…

![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/c/a/caaaa34399565ca07711fc4300f69892032225fe.png)

Now What Happens When User Click On About Us From My Application User Can Not able To Browse In Their Browser And If User Click On The **Home** Button User Will Be Redirected To The Application…

U Can Also Put Some gestures To Provide View Like Loading Your Requested Site…  
😉  
👍
