Skip to content

Commit

Permalink
Made delegate protocol for class types only
Browse files Browse the repository at this point in the history
  • Loading branch information
meismyles committed Jan 16, 2017
1 parent 32b7743 commit 31b03ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions Example/SwiftWebVCExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.3.0</string>
<string>0.3.4</string>
<key>CFBundleVersion</key>
<string>0.3.0.0</string>
<string>0.3.4.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
2 changes: 1 addition & 1 deletion SwiftWebVC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SwiftWebVC'
s.version = '0.3.3'
s.version = '0.3.4'
s.summary = 'SwiftWebVC is a simple inline browser for your Swift iOS app.'

# This description is used to generate tags and improve search results.
Expand Down
4 changes: 2 additions & 2 deletions SwiftWebVC/SwiftWebVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

import WebKit

public protocol SwiftWebVCDelegate {
public protocol SwiftWebVCDelegate: class {
func didStartLoading()
func didFinishLoading(success: Bool)
}

public class SwiftWebVC: UIViewController {

public var delegate: SwiftWebVCDelegate?
public weak var delegate: SwiftWebVCDelegate?
var storedStatusColor: UIBarStyle?
var buttonColor: UIColor? = nil
var titleColor: UIColor? = nil
Expand Down

0 comments on commit 31b03ec

Please sign in to comment.