Browser View
The Browser component is build to present any kind of websites or blogs. The implementation of Browser is straightforward. You can implement it manually or using Cocoapod package manager.
Name | Version | Content |
---|---|---|
MGBrowserKit | 0.1.7 | UINavigationBar - UIWebView |
Installation
To install this component you can use Cocoapods or drag and drop the folder of the component into your project manually.
Cocoapods
MGBrowserKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MGBrowserKit', :git => 'https://haraldbregu:4a4d1162147e80549f22cafb59060bdf59c4934a@github.com/HaraldBregu/MGBrowserKit.git'
Customization
To customize content of Browser component you have to edit BrowserComponent.swift
file. By updating and changing this file you will have different content. Follow the steps below. Open the file and start edit this block of code:
Assets
To change the items of content, edit this code of lines:
return BrowserAsset(
string: BrowserString(
title: "My Website",
navigationTitle: "My Website"),
font: BrowserFont(),
image: BrowserImage(),
color: BrowserColor(
navigationBar: MGTemplate.color.navigationBar,
navigationBarContent: MGTemplate.color.text.primary,
toolBar: MGTemplate.color.toolBar,
toolBarContent: MGTemplate.color.text.primary,
view: MGTemplate.color.view,
viewContent: MGTemplate.color.text.primary),
data: BrowserData(
url: "https://thenextweb.com/",
enableAds: false,
adsUnitId: "ca-app-pub-3940256099942544/2934735716"))