Skip to content

Commit e27c7a0

Browse files
author
Edward Smith
committed
Updated documentation.
1 parent 9d71e57 commit e27c7a0

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Examples/WebViewExample/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ a link is opened.
1414

1515
## Building
1616

17-
Just run `pod install` to install all pod dependencies.
17+
* Just run `pod install` and `pod update` in terminal to install all pod dependencies.
18+
* Then build and run the WebViewExample.xcworkspace with Xcode.

Examples/WebViewExample/WebViewExample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
3D562F8D7B0B6038B36B6404 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/AdSupport.framework; sourceTree = DEVELOPER_DIR; };
3737
4D38B16F1F7458D800A377A0 /* Web.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Web.bundle; sourceTree = "<group>"; };
3838
4D38B1711F75760800A377A0 /* String+Planets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+Planets.swift"; sourceTree = "<group>"; };
39+
4D54B3201F7D964400DC4FA6 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
3940
6D6117909230007A384D2046 /* Pods-WebViewExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WebViewExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-WebViewExample/Pods-WebViewExample.release.xcconfig"; sourceTree = "<group>"; };
4041
73F43B2C303E9BF5A6714F1B /* Pods-WebViewExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WebViewExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WebViewExample/Pods-WebViewExample.debug.xcconfig"; sourceTree = "<group>"; };
4142
7B016F1E1E97F29000C34EBA /* BNCLog.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BNCLog.swift; sourceTree = "<group>"; };
@@ -123,6 +124,7 @@
123124
7B3B97771E8C1B640089C04B = {
124125
isa = PBXGroup;
125126
children = (
127+
4D54B3201F7D964400DC4FA6 /* README.md */,
126128
7B3B97821E8C1B650089C04B /* WebViewExample */,
127129
7B3B97811E8C1B650089C04B /* Products */,
128130
96D7BCBB1907B2D5CC1A09E2 /* Pods */,

Examples/WebViewExample/WebViewExample/ArticleViewController.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ class ArticleViewController: UIViewController, ArticleViewDelegate {
7474
override func viewDidAppear(_ animated: Bool) {
7575
super.viewDidAppear(animated)
7676

77-
// Log a BNCRegisterViewEvent each time the user views the page.
77+
/* Log a BNCRegisterViewEvent each time the user views the page.
78+
*
79+
* This does several things behind the scenes:
80+
* - Since `automaticallyListOnSpotlight` is true for this Branch Universal Object, it is
81+
* listed on Spotlight.
82+
* - The 'view' ranking for searches is bumped with each organic view.
83+
* - The 'view' event is tracked in analytics on the Branch dashboard.
84+
*/
7885
buo.userCompletedAction(BNCRegisterViewEvent)
7986
BNCLog("Logged BNCRegisterViewEvent on BUO")
8087
addForwardBackControl()

0 commit comments

Comments
 (0)