├── Demo
├── Demo.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── project.pbxproj
└── Demo
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
│ ├── ViewController.swift
│ ├── Base.lproj
│ └── LaunchScreen.storyboard
│ └── Info.plist
├── DOMContentLoadedDelegate.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── DOMContentLoadedDelegate
├── DOMContentLoadedDelegate.h
├── Info.plist
├── UIWebView+DOMContentLoadedDelegate.m
└── DOMContentLoadedDelegate.swift
├── DOMContentLoadedDelegateTests
├── Info.plist
└── DOMContentLoadedDelegateTests.swift
├── LICENSE
└── README.md
/Demo/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegate.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo/Demo/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // Demo
4 | //
5 | // Created by CHEN Xian’an on 1/7/16.
6 | // Copyright © 2016 lazyapps. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
17 | window = UIWindow(frame: UIScreen.mainScreen().bounds)
18 | window?.rootViewController = ViewController()
19 | window?.makeKeyAndVisible()
20 | return true
21 | }
22 |
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegate/DOMContentLoadedDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // DOMContentLoadedDelegate.h
3 | // DOMContentLoadedDelegate
4 | //
5 | // Created by CHEN Xian’an on 1/6/16.
6 | // Copyright © 2016 lazyapps. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | //! Project version number for DOMContentLoadedDelegate.
12 | FOUNDATION_EXPORT double DOMContentLoadedDelegateVersionNumber;
13 |
14 | //! Project version string for DOMContentLoadedDelegate.
15 | FOUNDATION_EXPORT const unsigned char DOMContentLoadedDelegateVersionString[];
16 |
17 | // In this header, you should import all the public headers of your framework using statements like #import
18 |
19 |
20 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegateTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegate/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(CURRENT_PROJECT_VERSION)
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegateTests/DOMContentLoadedDelegateTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DOMContentLoadedDelegateTests.swift
3 | // DOMContentLoadedDelegateTests
4 | //
5 | // Created by CHEN Xian’an on 1/6/16.
6 | // Copyright © 2016 lazyapps. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import DOMContentLoadedDelegate
11 |
12 | class DOMContentLoadedDelegateTests: XCTestCase, DOMContentLoadedDelegate {
13 |
14 | var DOMContentLoaded = false
15 |
16 | var DOMContentLoadedExp: XCTestExpectation?
17 |
18 | func testDOMContentLoaded() {
19 | let webView = UIWebView(frame: CGRectZero)
20 | webView.delegate = self
21 | webView.loadRequest(NSURLRequest(URL: NSURL(string: "https://en.wikipedia.org/wiki/Special:Random")!))
22 | DOMContentLoadedExp = expectationWithDescription(__FUNCTION__)
23 | waitForExpectationsWithTimeout(15) { error in
24 | print(error)
25 | XCTAssertTrue(self.DOMContentLoaded)
26 | }
27 | }
28 |
29 | func DOMContentLoaded(webView: UIWebView) {
30 | DOMContentLoaded = true
31 | DOMContentLoadedExp?.fulfill()
32 | }
33 |
34 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2016 — Present CHEN Xian-an
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # `DOMContentLoadedDelegate`
2 |
3 | Need to evaluate JS on `UIWebView` safely? Wait until `- webViewDidFinishLoad:`. But it is too slow if there are many resources (e.g. images) to load. `DOMContentLoadedDelegate` lets you access DOM as soon as possible.
4 |
5 | ## How to Use
6 |
7 | 1. Add the `DOMContentLoadedDelegate` repository as a submodule of your application’s repository.
8 | 2. Drag and drop `DOMContentLoadedDelegate.xcodeproj` into your application’s Xcode project or workspace.
9 | 3. On the “General” tab of your application target’s settings, add `DOMContentLoadedDelegate.framework` to the “Embedded Binaries” section.
10 |
11 | Set your class confirms to `DOMContentLoadedDelegate` and do things that required to access DOM in `- DOMContentLoaded:`.
12 |
13 | See a real usage inside `Demo` folder.
14 |
15 | Or, If you would prefer to use Carthage or CocoaPods, please pull request.
16 |
17 | ## About Me
18 |
19 | * Twitter: [@_cxa](https://twitter.com/_cxa)
20 | * Apps available in App Store:
21 | * PayPal: xianan.chen+paypal 📧 gmail.com, buy me a cup of coffee if you find it's useful for you.
22 |
23 | ## License
24 |
25 | `DOMContentLoadedDelegate` is released under the MIT license. In short, it's royalty-free but you must keep the copyright notice in your code or software distribution.
26 |
--------------------------------------------------------------------------------
/Demo/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "83.5x83.5",
66 | "scale" : "2x"
67 | }
68 | ],
69 | "info" : {
70 | "version" : 1,
71 | "author" : "xcode"
72 | }
73 | }
--------------------------------------------------------------------------------
/Demo/Demo/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // Demo
4 | //
5 | // Created by CHEN Xian’an on 1/7/16.
6 | // Copyright © 2016 lazyapps. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import DOMContentLoadedDelegate
11 |
12 | class ViewController: UIViewController {
13 |
14 | lazy private var webView: UIWebView = {
15 | let w = UIWebView(frame: CGRectZero)
16 | w.translatesAutoresizingMaskIntoConstraints = false
17 | w.delegate = self
18 | return w
19 | }()
20 |
21 | override func loadView() {
22 | super.loadView()
23 | view.addSubview(webView)
24 | NSLayoutConstraint.activateConstraints([
25 | webView.leadingAnchor.constraintEqualToAnchor(view.leadingAnchor),
26 | webView.trailingAnchor.constraintEqualToAnchor(view.trailingAnchor),
27 | webView.topAnchor.constraintEqualToAnchor(view.topAnchor),
28 | webView.bottomAnchor.constraintEqualToAnchor(view.bottomAnchor)
29 | ])
30 |
31 | guard let url = NSURL(string: "https://en.wikipedia.org/wiki/Special:Random") else { fatalError("Fail to construct URL") }
32 | webView.loadRequest(NSURLRequest(URL: url))
33 | }
34 |
35 | override func prefersStatusBarHidden() -> Bool {
36 | return true
37 | }
38 |
39 | }
40 |
41 |
42 | extension ViewController: DOMContentLoadedDelegate {
43 |
44 | func webViewDidFinishLoad(webView: UIWebView) {
45 | print("webViewDidFinishLoad: ", NSDate())
46 | }
47 |
48 | func DOMContentLoaded(webView: UIWebView) {
49 | print("DOM accessible, e.g. you can get document title now: ", webView.stringByEvaluatingJavaScriptFromString("document.title"), " ", NSDate())
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/Demo/Demo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Demo/Demo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 |
30 | UILaunchStoryboardName
31 | LaunchScreen
32 | UIRequiredDeviceCapabilities
33 |
34 | armv7
35 |
36 | UISupportedInterfaceOrientations
37 |
38 | UIInterfaceOrientationPortrait
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UISupportedInterfaceOrientations~ipad
43 |
44 | UIInterfaceOrientationPortrait
45 | UIInterfaceOrientationPortraitUpsideDown
46 | UIInterfaceOrientationLandscapeLeft
47 | UIInterfaceOrientationLandscapeRight
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegate/UIWebView+DOMContentLoadedDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // UIWebView+DOMContentLoadedDelegate.m
3 | // DOMContentLoadedDelegate
4 | //
5 | // Created by CHEN Xian’an on 1/6/16.
6 | // Copyright © 2016 lazyapps. All rights reserved.
7 | //
8 |
9 | @import UIKit;
10 | @import ObjectiveC.runtime;
11 |
12 | @implementation UIWebView (DOMContentLoadedDelegate)
13 |
14 | #pragma clang diagnostic push
15 | #pragma clang diagnostic ignored "-Warc-performSelector-leaks"
16 |
17 | + (void)load
18 | {
19 | static dispatch_once_t onceToken;
20 | dispatch_once(&onceToken, ^{
21 | // Swizzle `initWithCoder:` & `initWithFrame:` to registerJ SContextObserver automatically
22 | SEL selector = @selector(initWithCoder:);
23 | Method method = class_getInstanceMethod(self, selector);
24 | id (*origInitWithCoder)(id, SEL, id) = (void *)class_getMethodImplementation(self, selector);
25 | IMP newInitWithCoder = imp_implementationWithBlock(^id(id sender, id coder) {
26 | id ret = origInitWithCoder(sender, selector, coder);
27 | [ret performSelector:NSSelectorFromString(@"registerJSContextObserver")];
28 | return ret;
29 | });
30 |
31 | if (!class_addMethod(self, selector, newInitWithCoder, method_getTypeEncoding(method)))
32 | method_setImplementation(method, newInitWithCoder);
33 |
34 | selector = @selector(initWithFrame:);
35 | method = class_getInstanceMethod(self, selector);
36 | id (*origInitWithFrame)(id, SEL, CGRect) = (void *)class_getMethodImplementation(self, selector);
37 | IMP newInitWithFrame = imp_implementationWithBlock(^id(id sender, CGRect frame) {
38 | id ret = origInitWithFrame(sender, selector, frame);
39 | [ret performSelector:NSSelectorFromString(@"registerJSContextObserver")];
40 | return ret;
41 | });
42 |
43 | if (!class_addMethod(self, selector, newInitWithFrame, method_getTypeEncoding(method)))
44 | method_setImplementation(method, newInitWithFrame);
45 | });
46 | }
47 |
48 | #pragma clang diagnostic pop
49 |
50 | @end
51 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegate/DOMContentLoadedDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DOMContentLoadedDelegate.swift
3 | // DOMContentLoadedDelegate
4 | //
5 | // Created by CHEN Xian’an on 1/6/16.
6 | // Copyright © 2016 lazyapps. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import JavaScriptCore
11 |
12 | @objc public protocol DOMContentLoadedDelegate: UIWebViewDelegate {
13 |
14 | optional func DOMContentLoaded(webView: UIWebView)
15 |
16 | }
17 |
18 | private extension UIWebView {
19 |
20 | @objc func registerJSContextObserver() {
21 | let observer = JSContextObserver(webView: self)
22 | let key: StaticString = #function
23 | objc_setAssociatedObject(self, key.utf8Start, observer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
24 | }
25 |
26 | }
27 |
28 | private let JSContextDidCreateNotificaiton = "DOMContentLoadedDelegate.JSContextDidCreateNotificaiton"
29 |
30 | private extension NSObject {
31 |
32 | @objc func webView(webView: AnyObject, didCreateJavaScriptContext context: JSContext, forFrame frame: AnyObject) {
33 | NSNotificationCenter.defaultCenter().postNotificationName(JSContextDidCreateNotificaiton, object: context)
34 | }
35 |
36 | }
37 |
38 | private final class JSContextObserver: NSObject {
39 |
40 | weak var webView: UIWebView?
41 |
42 | var observer: AnyObject?
43 |
44 | init(webView wv: UIWebView) {
45 | super.init()
46 | webView = wv
47 | observer = NSNotificationCenter.defaultCenter().addObserverForName(JSContextDidCreateNotificaiton, object: nil, queue: nil, usingBlock: handleJSContextDidCreateNotitification)
48 | }
49 |
50 | deinit {
51 | if let o = observer { NSNotificationCenter.defaultCenter().removeObserver(o) }
52 | }
53 |
54 | func handleJSContextDidCreateNotitification(notifaction: NSNotification) {
55 | let sel = #selector(DOMContentLoadedDelegate.DOMContentLoaded(_:))
56 | guard
57 | let jsContextInNotification = notifaction.object as? JSContext,
58 | let jsContext = webView?.valueForKeyPath("documentView.webView.mainFrame.javaScriptContext") as? JSContext,
59 | let delegate = webView?.delegate where jsContext == jsContextInNotification && delegate.respondsToSelector(sel)
60 | else { return }
61 |
62 | let funcObj: @convention(block) () -> () = { [weak self, weak delegate] in
63 | guard
64 | let webView = self?.webView,
65 | let dlg = delegate
66 | else { return }
67 |
68 | NSOperationQueue.mainQueue().addOperationWithBlock {
69 | dlg.performSelector(sel, withObject: webView)
70 | }
71 | }
72 |
73 | let funcName = "com_lazyapps_DOMContentLoaded"
74 | jsContext.setObject(unsafeBitCast(funcObj, AnyObject.self), forKeyedSubscript: funcName)
75 | jsContext.evaluateScript("addEventListener('DOMContentLoaded', \(funcName))")
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/Demo/Demo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | E0B07D971C3E1DB5001CCAB7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B07D961C3E1DB5001CCAB7 /* AppDelegate.swift */; };
11 | E0B07D991C3E1DB5001CCAB7 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B07D981C3E1DB5001CCAB7 /* ViewController.swift */; };
12 | E0B07D9E1C3E1DB5001CCAB7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E0B07D9D1C3E1DB5001CCAB7 /* Assets.xcassets */; };
13 | E0B07DA11C3E1DB5001CCAB7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E0B07D9F1C3E1DB5001CCAB7 /* LaunchScreen.storyboard */; };
14 | E0B07DB11C3E1DEF001CCAB7 /* DOMContentLoadedDelegate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E0B07DAE1C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.framework */; };
15 | E0B07DB21C3E1DEF001CCAB7 /* DOMContentLoadedDelegate.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E0B07DAE1C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXContainerItemProxy section */
19 | E0B07DAD1C3E1DCF001CCAB7 /* PBXContainerItemProxy */ = {
20 | isa = PBXContainerItemProxy;
21 | containerPortal = E0B07DA81C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.xcodeproj */;
22 | proxyType = 2;
23 | remoteGlobalIDString = E0B07D321C3CF6F5001CCAB7;
24 | remoteInfo = DOMContentLoadedDelegate;
25 | };
26 | E0B07DAF1C3E1DCF001CCAB7 /* PBXContainerItemProxy */ = {
27 | isa = PBXContainerItemProxy;
28 | containerPortal = E0B07DA81C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.xcodeproj */;
29 | proxyType = 2;
30 | remoteGlobalIDString = E0B07D3C1C3CF6F5001CCAB7;
31 | remoteInfo = DOMContentLoadedDelegateTests;
32 | };
33 | E0B07DB31C3E1DEF001CCAB7 /* PBXContainerItemProxy */ = {
34 | isa = PBXContainerItemProxy;
35 | containerPortal = E0B07DA81C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.xcodeproj */;
36 | proxyType = 1;
37 | remoteGlobalIDString = E0B07D311C3CF6F5001CCAB7;
38 | remoteInfo = DOMContentLoadedDelegate;
39 | };
40 | /* End PBXContainerItemProxy section */
41 |
42 | /* Begin PBXCopyFilesBuildPhase section */
43 | E0B07DB51C3E1DEF001CCAB7 /* Embed Frameworks */ = {
44 | isa = PBXCopyFilesBuildPhase;
45 | buildActionMask = 2147483647;
46 | dstPath = "";
47 | dstSubfolderSpec = 10;
48 | files = (
49 | E0B07DB21C3E1DEF001CCAB7 /* DOMContentLoadedDelegate.framework in Embed Frameworks */,
50 | );
51 | name = "Embed Frameworks";
52 | runOnlyForDeploymentPostprocessing = 0;
53 | };
54 | /* End PBXCopyFilesBuildPhase section */
55 |
56 | /* Begin PBXFileReference section */
57 | E0B07D931C3E1DB5001CCAB7 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; };
58 | E0B07D961C3E1DB5001CCAB7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
59 | E0B07D981C3E1DB5001CCAB7 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
60 | E0B07D9D1C3E1DB5001CCAB7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
61 | E0B07DA01C3E1DB5001CCAB7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
62 | E0B07DA21C3E1DB5001CCAB7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
63 | E0B07DA81C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DOMContentLoadedDelegate.xcodeproj; path = ../DOMContentLoadedDelegate.xcodeproj; sourceTree = ""; };
64 | /* End PBXFileReference section */
65 |
66 | /* Begin PBXFrameworksBuildPhase section */
67 | E0B07D901C3E1DB5001CCAB7 /* Frameworks */ = {
68 | isa = PBXFrameworksBuildPhase;
69 | buildActionMask = 2147483647;
70 | files = (
71 | E0B07DB11C3E1DEF001CCAB7 /* DOMContentLoadedDelegate.framework in Frameworks */,
72 | );
73 | runOnlyForDeploymentPostprocessing = 0;
74 | };
75 | /* End PBXFrameworksBuildPhase section */
76 |
77 | /* Begin PBXGroup section */
78 | E0B07D8A1C3E1DB5001CCAB7 = {
79 | isa = PBXGroup;
80 | children = (
81 | E0B07DA81C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.xcodeproj */,
82 | E0B07D951C3E1DB5001CCAB7 /* Demo */,
83 | E0B07D941C3E1DB5001CCAB7 /* Products */,
84 | );
85 | sourceTree = "";
86 | };
87 | E0B07D941C3E1DB5001CCAB7 /* Products */ = {
88 | isa = PBXGroup;
89 | children = (
90 | E0B07D931C3E1DB5001CCAB7 /* Demo.app */,
91 | );
92 | name = Products;
93 | sourceTree = "";
94 | };
95 | E0B07D951C3E1DB5001CCAB7 /* Demo */ = {
96 | isa = PBXGroup;
97 | children = (
98 | E0B07D961C3E1DB5001CCAB7 /* AppDelegate.swift */,
99 | E0B07D981C3E1DB5001CCAB7 /* ViewController.swift */,
100 | E0B07D9D1C3E1DB5001CCAB7 /* Assets.xcassets */,
101 | E0B07D9F1C3E1DB5001CCAB7 /* LaunchScreen.storyboard */,
102 | E0B07DA21C3E1DB5001CCAB7 /* Info.plist */,
103 | );
104 | path = Demo;
105 | sourceTree = "";
106 | };
107 | E0B07DA91C3E1DCF001CCAB7 /* Products */ = {
108 | isa = PBXGroup;
109 | children = (
110 | E0B07DAE1C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.framework */,
111 | E0B07DB01C3E1DCF001CCAB7 /* DOMContentLoadedDelegateTests.xctest */,
112 | );
113 | name = Products;
114 | sourceTree = "";
115 | };
116 | /* End PBXGroup section */
117 |
118 | /* Begin PBXNativeTarget section */
119 | E0B07D921C3E1DB5001CCAB7 /* Demo */ = {
120 | isa = PBXNativeTarget;
121 | buildConfigurationList = E0B07DA51C3E1DB5001CCAB7 /* Build configuration list for PBXNativeTarget "Demo" */;
122 | buildPhases = (
123 | E0B07D8F1C3E1DB5001CCAB7 /* Sources */,
124 | E0B07D901C3E1DB5001CCAB7 /* Frameworks */,
125 | E0B07D911C3E1DB5001CCAB7 /* Resources */,
126 | E0B07DB51C3E1DEF001CCAB7 /* Embed Frameworks */,
127 | );
128 | buildRules = (
129 | );
130 | dependencies = (
131 | E0B07DB41C3E1DEF001CCAB7 /* PBXTargetDependency */,
132 | );
133 | name = Demo;
134 | productName = Demo;
135 | productReference = E0B07D931C3E1DB5001CCAB7 /* Demo.app */;
136 | productType = "com.apple.product-type.application";
137 | };
138 | /* End PBXNativeTarget section */
139 |
140 | /* Begin PBXProject section */
141 | E0B07D8B1C3E1DB5001CCAB7 /* Project object */ = {
142 | isa = PBXProject;
143 | attributes = {
144 | LastSwiftUpdateCheck = 0720;
145 | LastUpgradeCheck = 0800;
146 | ORGANIZATIONNAME = lazyapps;
147 | TargetAttributes = {
148 | E0B07D921C3E1DB5001CCAB7 = {
149 | CreatedOnToolsVersion = 7.2;
150 | LastSwiftMigration = 0800;
151 | };
152 | };
153 | };
154 | buildConfigurationList = E0B07D8E1C3E1DB5001CCAB7 /* Build configuration list for PBXProject "Demo" */;
155 | compatibilityVersion = "Xcode 3.2";
156 | developmentRegion = English;
157 | hasScannedForEncodings = 0;
158 | knownRegions = (
159 | en,
160 | Base,
161 | );
162 | mainGroup = E0B07D8A1C3E1DB5001CCAB7;
163 | productRefGroup = E0B07D941C3E1DB5001CCAB7 /* Products */;
164 | projectDirPath = "";
165 | projectReferences = (
166 | {
167 | ProductGroup = E0B07DA91C3E1DCF001CCAB7 /* Products */;
168 | ProjectRef = E0B07DA81C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.xcodeproj */;
169 | },
170 | );
171 | projectRoot = "";
172 | targets = (
173 | E0B07D921C3E1DB5001CCAB7 /* Demo */,
174 | );
175 | };
176 | /* End PBXProject section */
177 |
178 | /* Begin PBXReferenceProxy section */
179 | E0B07DAE1C3E1DCF001CCAB7 /* DOMContentLoadedDelegate.framework */ = {
180 | isa = PBXReferenceProxy;
181 | fileType = wrapper.framework;
182 | path = DOMContentLoadedDelegate.framework;
183 | remoteRef = E0B07DAD1C3E1DCF001CCAB7 /* PBXContainerItemProxy */;
184 | sourceTree = BUILT_PRODUCTS_DIR;
185 | };
186 | E0B07DB01C3E1DCF001CCAB7 /* DOMContentLoadedDelegateTests.xctest */ = {
187 | isa = PBXReferenceProxy;
188 | fileType = wrapper.cfbundle;
189 | path = DOMContentLoadedDelegateTests.xctest;
190 | remoteRef = E0B07DAF1C3E1DCF001CCAB7 /* PBXContainerItemProxy */;
191 | sourceTree = BUILT_PRODUCTS_DIR;
192 | };
193 | /* End PBXReferenceProxy section */
194 |
195 | /* Begin PBXResourcesBuildPhase section */
196 | E0B07D911C3E1DB5001CCAB7 /* Resources */ = {
197 | isa = PBXResourcesBuildPhase;
198 | buildActionMask = 2147483647;
199 | files = (
200 | E0B07DA11C3E1DB5001CCAB7 /* LaunchScreen.storyboard in Resources */,
201 | E0B07D9E1C3E1DB5001CCAB7 /* Assets.xcassets in Resources */,
202 | );
203 | runOnlyForDeploymentPostprocessing = 0;
204 | };
205 | /* End PBXResourcesBuildPhase section */
206 |
207 | /* Begin PBXSourcesBuildPhase section */
208 | E0B07D8F1C3E1DB5001CCAB7 /* Sources */ = {
209 | isa = PBXSourcesBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | E0B07D991C3E1DB5001CCAB7 /* ViewController.swift in Sources */,
213 | E0B07D971C3E1DB5001CCAB7 /* AppDelegate.swift in Sources */,
214 | );
215 | runOnlyForDeploymentPostprocessing = 0;
216 | };
217 | /* End PBXSourcesBuildPhase section */
218 |
219 | /* Begin PBXTargetDependency section */
220 | E0B07DB41C3E1DEF001CCAB7 /* PBXTargetDependency */ = {
221 | isa = PBXTargetDependency;
222 | name = DOMContentLoadedDelegate;
223 | targetProxy = E0B07DB31C3E1DEF001CCAB7 /* PBXContainerItemProxy */;
224 | };
225 | /* End PBXTargetDependency section */
226 |
227 | /* Begin PBXVariantGroup section */
228 | E0B07D9F1C3E1DB5001CCAB7 /* LaunchScreen.storyboard */ = {
229 | isa = PBXVariantGroup;
230 | children = (
231 | E0B07DA01C3E1DB5001CCAB7 /* Base */,
232 | );
233 | name = LaunchScreen.storyboard;
234 | sourceTree = "";
235 | };
236 | /* End PBXVariantGroup section */
237 |
238 | /* Begin XCBuildConfiguration section */
239 | E0B07DA31C3E1DB5001CCAB7 /* Debug */ = {
240 | isa = XCBuildConfiguration;
241 | buildSettings = {
242 | ALWAYS_SEARCH_USER_PATHS = NO;
243 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
244 | CLANG_CXX_LIBRARY = "libc++";
245 | CLANG_ENABLE_MODULES = YES;
246 | CLANG_ENABLE_OBJC_ARC = YES;
247 | CLANG_WARN_BOOL_CONVERSION = YES;
248 | CLANG_WARN_CONSTANT_CONVERSION = YES;
249 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
250 | CLANG_WARN_EMPTY_BODY = YES;
251 | CLANG_WARN_ENUM_CONVERSION = YES;
252 | CLANG_WARN_INFINITE_RECURSION = YES;
253 | CLANG_WARN_INT_CONVERSION = YES;
254 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
255 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
256 | CLANG_WARN_UNREACHABLE_CODE = YES;
257 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
258 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
259 | COPY_PHASE_STRIP = NO;
260 | DEBUG_INFORMATION_FORMAT = dwarf;
261 | ENABLE_STRICT_OBJC_MSGSEND = YES;
262 | ENABLE_TESTABILITY = YES;
263 | GCC_C_LANGUAGE_STANDARD = gnu99;
264 | GCC_DYNAMIC_NO_PIC = NO;
265 | GCC_NO_COMMON_BLOCKS = YES;
266 | GCC_OPTIMIZATION_LEVEL = 0;
267 | GCC_PREPROCESSOR_DEFINITIONS = (
268 | "DEBUG=1",
269 | "$(inherited)",
270 | );
271 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
272 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
273 | GCC_WARN_UNDECLARED_SELECTOR = YES;
274 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
275 | GCC_WARN_UNUSED_FUNCTION = YES;
276 | GCC_WARN_UNUSED_VARIABLE = YES;
277 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
278 | MTL_ENABLE_DEBUG_INFO = YES;
279 | ONLY_ACTIVE_ARCH = YES;
280 | SDKROOT = iphoneos;
281 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
282 | TARGETED_DEVICE_FAMILY = "1,2";
283 | };
284 | name = Debug;
285 | };
286 | E0B07DA41C3E1DB5001CCAB7 /* Release */ = {
287 | isa = XCBuildConfiguration;
288 | buildSettings = {
289 | ALWAYS_SEARCH_USER_PATHS = NO;
290 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
291 | CLANG_CXX_LIBRARY = "libc++";
292 | CLANG_ENABLE_MODULES = YES;
293 | CLANG_ENABLE_OBJC_ARC = YES;
294 | CLANG_WARN_BOOL_CONVERSION = YES;
295 | CLANG_WARN_CONSTANT_CONVERSION = YES;
296 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
297 | CLANG_WARN_EMPTY_BODY = YES;
298 | CLANG_WARN_ENUM_CONVERSION = YES;
299 | CLANG_WARN_INFINITE_RECURSION = YES;
300 | CLANG_WARN_INT_CONVERSION = YES;
301 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
302 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
303 | CLANG_WARN_UNREACHABLE_CODE = YES;
304 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
305 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
306 | COPY_PHASE_STRIP = NO;
307 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
308 | ENABLE_NS_ASSERTIONS = NO;
309 | ENABLE_STRICT_OBJC_MSGSEND = YES;
310 | GCC_C_LANGUAGE_STANDARD = gnu99;
311 | GCC_NO_COMMON_BLOCKS = YES;
312 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
313 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
314 | GCC_WARN_UNDECLARED_SELECTOR = YES;
315 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
316 | GCC_WARN_UNUSED_FUNCTION = YES;
317 | GCC_WARN_UNUSED_VARIABLE = YES;
318 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
319 | MTL_ENABLE_DEBUG_INFO = NO;
320 | SDKROOT = iphoneos;
321 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
322 | TARGETED_DEVICE_FAMILY = "1,2";
323 | VALIDATE_PRODUCT = YES;
324 | };
325 | name = Release;
326 | };
327 | E0B07DA61C3E1DB5001CCAB7 /* Debug */ = {
328 | isa = XCBuildConfiguration;
329 | buildSettings = {
330 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
331 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
332 | INFOPLIST_FILE = Demo/Info.plist;
333 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
334 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
335 | PRODUCT_BUNDLE_IDENTIFIER = com.lazyapps.DOMContentLoadedDelegateDemo;
336 | PRODUCT_NAME = "$(TARGET_NAME)";
337 | SWIFT_VERSION = 2.3;
338 | };
339 | name = Debug;
340 | };
341 | E0B07DA71C3E1DB5001CCAB7 /* Release */ = {
342 | isa = XCBuildConfiguration;
343 | buildSettings = {
344 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
345 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
346 | INFOPLIST_FILE = Demo/Info.plist;
347 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
348 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
349 | PRODUCT_BUNDLE_IDENTIFIER = com.lazyapps.DOMContentLoadedDelegateDemo;
350 | PRODUCT_NAME = "$(TARGET_NAME)";
351 | SWIFT_VERSION = 2.3;
352 | };
353 | name = Release;
354 | };
355 | /* End XCBuildConfiguration section */
356 |
357 | /* Begin XCConfigurationList section */
358 | E0B07D8E1C3E1DB5001CCAB7 /* Build configuration list for PBXProject "Demo" */ = {
359 | isa = XCConfigurationList;
360 | buildConfigurations = (
361 | E0B07DA31C3E1DB5001CCAB7 /* Debug */,
362 | E0B07DA41C3E1DB5001CCAB7 /* Release */,
363 | );
364 | defaultConfigurationIsVisible = 0;
365 | defaultConfigurationName = Release;
366 | };
367 | E0B07DA51C3E1DB5001CCAB7 /* Build configuration list for PBXNativeTarget "Demo" */ = {
368 | isa = XCConfigurationList;
369 | buildConfigurations = (
370 | E0B07DA61C3E1DB5001CCAB7 /* Debug */,
371 | E0B07DA71C3E1DB5001CCAB7 /* Release */,
372 | );
373 | defaultConfigurationIsVisible = 0;
374 | defaultConfigurationName = Release;
375 | };
376 | /* End XCConfigurationList section */
377 | };
378 | rootObject = E0B07D8B1C3E1DB5001CCAB7 /* Project object */;
379 | }
380 |
--------------------------------------------------------------------------------
/DOMContentLoadedDelegate.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | E0B07D361C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = E0B07D351C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
11 | E0B07D3D1C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E0B07D321C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.framework */; };
12 | E0B07D421C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B07D411C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.swift */; };
13 | E0B07D4F1C3CF720001CCAB7 /* UIWebView+DOMContentLoadedDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E0B07D4D1C3CF720001CCAB7 /* UIWebView+DOMContentLoadedDelegate.m */; };
14 | E0B07D511C3CF776001CCAB7 /* DOMContentLoadedDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B07D501C3CF776001CCAB7 /* DOMContentLoadedDelegate.swift */; };
15 | /* End PBXBuildFile section */
16 |
17 | /* Begin PBXContainerItemProxy section */
18 | E0B07D3E1C3CF6F5001CCAB7 /* PBXContainerItemProxy */ = {
19 | isa = PBXContainerItemProxy;
20 | containerPortal = E0B07D291C3CF6F5001CCAB7 /* Project object */;
21 | proxyType = 1;
22 | remoteGlobalIDString = E0B07D311C3CF6F5001CCAB7;
23 | remoteInfo = DOMContentLoadedDelegate;
24 | };
25 | /* End PBXContainerItemProxy section */
26 |
27 | /* Begin PBXFileReference section */
28 | E0B07D321C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = DOMContentLoadedDelegate.framework; sourceTree = BUILT_PRODUCTS_DIR; };
29 | E0B07D351C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DOMContentLoadedDelegate.h; sourceTree = ""; };
30 | E0B07D371C3CF6F5001CCAB7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
31 | E0B07D3C1C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DOMContentLoadedDelegateTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
32 | E0B07D411C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DOMContentLoadedDelegateTests.swift; sourceTree = ""; };
33 | E0B07D431C3CF6F5001CCAB7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
34 | E0B07D4D1C3CF720001CCAB7 /* UIWebView+DOMContentLoadedDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIWebView+DOMContentLoadedDelegate.m"; sourceTree = ""; };
35 | E0B07D501C3CF776001CCAB7 /* DOMContentLoadedDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DOMContentLoadedDelegate.swift; sourceTree = ""; };
36 | /* End PBXFileReference section */
37 |
38 | /* Begin PBXFrameworksBuildPhase section */
39 | E0B07D2E1C3CF6F5001CCAB7 /* Frameworks */ = {
40 | isa = PBXFrameworksBuildPhase;
41 | buildActionMask = 2147483647;
42 | files = (
43 | );
44 | runOnlyForDeploymentPostprocessing = 0;
45 | };
46 | E0B07D391C3CF6F5001CCAB7 /* Frameworks */ = {
47 | isa = PBXFrameworksBuildPhase;
48 | buildActionMask = 2147483647;
49 | files = (
50 | E0B07D3D1C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.framework in Frameworks */,
51 | );
52 | runOnlyForDeploymentPostprocessing = 0;
53 | };
54 | /* End PBXFrameworksBuildPhase section */
55 |
56 | /* Begin PBXGroup section */
57 | E0B07D281C3CF6F5001CCAB7 = {
58 | isa = PBXGroup;
59 | children = (
60 | E0B07D341C3CF6F5001CCAB7 /* DOMContentLoadedDelegate */,
61 | E0B07D401C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests */,
62 | E0B07D331C3CF6F5001CCAB7 /* Products */,
63 | );
64 | sourceTree = "";
65 | };
66 | E0B07D331C3CF6F5001CCAB7 /* Products */ = {
67 | isa = PBXGroup;
68 | children = (
69 | E0B07D321C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.framework */,
70 | E0B07D3C1C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.xctest */,
71 | );
72 | name = Products;
73 | sourceTree = "";
74 | };
75 | E0B07D341C3CF6F5001CCAB7 /* DOMContentLoadedDelegate */ = {
76 | isa = PBXGroup;
77 | children = (
78 | E0B07D371C3CF6F5001CCAB7 /* Info.plist */,
79 | E0B07D351C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.h */,
80 | E0B07D4D1C3CF720001CCAB7 /* UIWebView+DOMContentLoadedDelegate.m */,
81 | E0B07D501C3CF776001CCAB7 /* DOMContentLoadedDelegate.swift */,
82 | );
83 | path = DOMContentLoadedDelegate;
84 | sourceTree = "";
85 | };
86 | E0B07D401C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests */ = {
87 | isa = PBXGroup;
88 | children = (
89 | E0B07D411C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.swift */,
90 | E0B07D431C3CF6F5001CCAB7 /* Info.plist */,
91 | );
92 | path = DOMContentLoadedDelegateTests;
93 | sourceTree = "";
94 | };
95 | /* End PBXGroup section */
96 |
97 | /* Begin PBXHeadersBuildPhase section */
98 | E0B07D2F1C3CF6F5001CCAB7 /* Headers */ = {
99 | isa = PBXHeadersBuildPhase;
100 | buildActionMask = 2147483647;
101 | files = (
102 | E0B07D361C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.h in Headers */,
103 | );
104 | runOnlyForDeploymentPostprocessing = 0;
105 | };
106 | /* End PBXHeadersBuildPhase section */
107 |
108 | /* Begin PBXNativeTarget section */
109 | E0B07D311C3CF6F5001CCAB7 /* DOMContentLoadedDelegate */ = {
110 | isa = PBXNativeTarget;
111 | buildConfigurationList = E0B07D461C3CF6F5001CCAB7 /* Build configuration list for PBXNativeTarget "DOMContentLoadedDelegate" */;
112 | buildPhases = (
113 | E0B07D2D1C3CF6F5001CCAB7 /* Sources */,
114 | E0B07D2E1C3CF6F5001CCAB7 /* Frameworks */,
115 | E0B07D2F1C3CF6F5001CCAB7 /* Headers */,
116 | E0B07D301C3CF6F5001CCAB7 /* Resources */,
117 | );
118 | buildRules = (
119 | );
120 | dependencies = (
121 | );
122 | name = DOMContentLoadedDelegate;
123 | productName = DOMContentLoadedDelegate;
124 | productReference = E0B07D321C3CF6F5001CCAB7 /* DOMContentLoadedDelegate.framework */;
125 | productType = "com.apple.product-type.framework";
126 | };
127 | E0B07D3B1C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests */ = {
128 | isa = PBXNativeTarget;
129 | buildConfigurationList = E0B07D491C3CF6F5001CCAB7 /* Build configuration list for PBXNativeTarget "DOMContentLoadedDelegateTests" */;
130 | buildPhases = (
131 | E0B07D381C3CF6F5001CCAB7 /* Sources */,
132 | E0B07D391C3CF6F5001CCAB7 /* Frameworks */,
133 | E0B07D3A1C3CF6F5001CCAB7 /* Resources */,
134 | );
135 | buildRules = (
136 | );
137 | dependencies = (
138 | E0B07D3F1C3CF6F5001CCAB7 /* PBXTargetDependency */,
139 | );
140 | name = DOMContentLoadedDelegateTests;
141 | productName = DOMContentLoadedDelegateTests;
142 | productReference = E0B07D3C1C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.xctest */;
143 | productType = "com.apple.product-type.bundle.unit-test";
144 | };
145 | /* End PBXNativeTarget section */
146 |
147 | /* Begin PBXProject section */
148 | E0B07D291C3CF6F5001CCAB7 /* Project object */ = {
149 | isa = PBXProject;
150 | attributes = {
151 | LastSwiftMigration = 0730;
152 | LastSwiftUpdateCheck = 0720;
153 | LastUpgradeCheck = 0800;
154 | ORGANIZATIONNAME = lazyapps;
155 | TargetAttributes = {
156 | E0B07D311C3CF6F5001CCAB7 = {
157 | CreatedOnToolsVersion = 7.2;
158 | LastSwiftMigration = 0800;
159 | };
160 | E0B07D3B1C3CF6F5001CCAB7 = {
161 | CreatedOnToolsVersion = 7.2;
162 | };
163 | };
164 | };
165 | buildConfigurationList = E0B07D2C1C3CF6F5001CCAB7 /* Build configuration list for PBXProject "DOMContentLoadedDelegate" */;
166 | compatibilityVersion = "Xcode 3.2";
167 | developmentRegion = English;
168 | hasScannedForEncodings = 0;
169 | knownRegions = (
170 | en,
171 | );
172 | mainGroup = E0B07D281C3CF6F5001CCAB7;
173 | productRefGroup = E0B07D331C3CF6F5001CCAB7 /* Products */;
174 | projectDirPath = "";
175 | projectRoot = "";
176 | targets = (
177 | E0B07D311C3CF6F5001CCAB7 /* DOMContentLoadedDelegate */,
178 | E0B07D3B1C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests */,
179 | );
180 | };
181 | /* End PBXProject section */
182 |
183 | /* Begin PBXResourcesBuildPhase section */
184 | E0B07D301C3CF6F5001CCAB7 /* Resources */ = {
185 | isa = PBXResourcesBuildPhase;
186 | buildActionMask = 2147483647;
187 | files = (
188 | );
189 | runOnlyForDeploymentPostprocessing = 0;
190 | };
191 | E0B07D3A1C3CF6F5001CCAB7 /* Resources */ = {
192 | isa = PBXResourcesBuildPhase;
193 | buildActionMask = 2147483647;
194 | files = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXSourcesBuildPhase section */
201 | E0B07D2D1C3CF6F5001CCAB7 /* Sources */ = {
202 | isa = PBXSourcesBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | E0B07D511C3CF776001CCAB7 /* DOMContentLoadedDelegate.swift in Sources */,
206 | E0B07D4F1C3CF720001CCAB7 /* UIWebView+DOMContentLoadedDelegate.m in Sources */,
207 | );
208 | runOnlyForDeploymentPostprocessing = 0;
209 | };
210 | E0B07D381C3CF6F5001CCAB7 /* Sources */ = {
211 | isa = PBXSourcesBuildPhase;
212 | buildActionMask = 2147483647;
213 | files = (
214 | E0B07D421C3CF6F5001CCAB7 /* DOMContentLoadedDelegateTests.swift in Sources */,
215 | );
216 | runOnlyForDeploymentPostprocessing = 0;
217 | };
218 | /* End PBXSourcesBuildPhase section */
219 |
220 | /* Begin PBXTargetDependency section */
221 | E0B07D3F1C3CF6F5001CCAB7 /* PBXTargetDependency */ = {
222 | isa = PBXTargetDependency;
223 | target = E0B07D311C3CF6F5001CCAB7 /* DOMContentLoadedDelegate */;
224 | targetProxy = E0B07D3E1C3CF6F5001CCAB7 /* PBXContainerItemProxy */;
225 | };
226 | /* End PBXTargetDependency section */
227 |
228 | /* Begin XCBuildConfiguration section */
229 | E0B07D441C3CF6F5001CCAB7 /* Debug */ = {
230 | isa = XCBuildConfiguration;
231 | buildSettings = {
232 | ALWAYS_SEARCH_USER_PATHS = NO;
233 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
234 | CLANG_CXX_LIBRARY = "libc++";
235 | CLANG_ENABLE_MODULES = YES;
236 | CLANG_ENABLE_OBJC_ARC = YES;
237 | CLANG_WARN_BOOL_CONVERSION = YES;
238 | CLANG_WARN_CONSTANT_CONVERSION = YES;
239 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
240 | CLANG_WARN_EMPTY_BODY = YES;
241 | CLANG_WARN_ENUM_CONVERSION = YES;
242 | CLANG_WARN_INFINITE_RECURSION = YES;
243 | CLANG_WARN_INT_CONVERSION = YES;
244 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
245 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
246 | CLANG_WARN_UNREACHABLE_CODE = YES;
247 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
248 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
249 | COPY_PHASE_STRIP = NO;
250 | CURRENT_PROJECT_VERSION = 1;
251 | DEBUG_INFORMATION_FORMAT = dwarf;
252 | ENABLE_STRICT_OBJC_MSGSEND = YES;
253 | ENABLE_TESTABILITY = YES;
254 | GCC_C_LANGUAGE_STANDARD = gnu99;
255 | GCC_DYNAMIC_NO_PIC = NO;
256 | GCC_NO_COMMON_BLOCKS = YES;
257 | GCC_OPTIMIZATION_LEVEL = 0;
258 | GCC_PREPROCESSOR_DEFINITIONS = (
259 | "DEBUG=1",
260 | "$(inherited)",
261 | );
262 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
263 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
264 | GCC_WARN_UNDECLARED_SELECTOR = YES;
265 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
266 | GCC_WARN_UNUSED_FUNCTION = YES;
267 | GCC_WARN_UNUSED_VARIABLE = YES;
268 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
269 | MTL_ENABLE_DEBUG_INFO = YES;
270 | ONLY_ACTIVE_ARCH = YES;
271 | SDKROOT = iphoneos;
272 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
273 | TARGETED_DEVICE_FAMILY = "1,2";
274 | VERSIONING_SYSTEM = "apple-generic";
275 | VERSION_INFO_PREFIX = "";
276 | };
277 | name = Debug;
278 | };
279 | E0B07D451C3CF6F5001CCAB7 /* Release */ = {
280 | isa = XCBuildConfiguration;
281 | buildSettings = {
282 | ALWAYS_SEARCH_USER_PATHS = NO;
283 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
284 | CLANG_CXX_LIBRARY = "libc++";
285 | CLANG_ENABLE_MODULES = YES;
286 | CLANG_ENABLE_OBJC_ARC = YES;
287 | CLANG_WARN_BOOL_CONVERSION = YES;
288 | CLANG_WARN_CONSTANT_CONVERSION = YES;
289 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
290 | CLANG_WARN_EMPTY_BODY = YES;
291 | CLANG_WARN_ENUM_CONVERSION = YES;
292 | CLANG_WARN_INFINITE_RECURSION = YES;
293 | CLANG_WARN_INT_CONVERSION = YES;
294 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
295 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
296 | CLANG_WARN_UNREACHABLE_CODE = YES;
297 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
298 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
299 | COPY_PHASE_STRIP = NO;
300 | CURRENT_PROJECT_VERSION = 1;
301 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
302 | ENABLE_NS_ASSERTIONS = NO;
303 | ENABLE_STRICT_OBJC_MSGSEND = YES;
304 | GCC_C_LANGUAGE_STANDARD = gnu99;
305 | GCC_NO_COMMON_BLOCKS = YES;
306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
308 | GCC_WARN_UNDECLARED_SELECTOR = YES;
309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
310 | GCC_WARN_UNUSED_FUNCTION = YES;
311 | GCC_WARN_UNUSED_VARIABLE = YES;
312 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
313 | MTL_ENABLE_DEBUG_INFO = NO;
314 | SDKROOT = iphoneos;
315 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
316 | TARGETED_DEVICE_FAMILY = "1,2";
317 | VALIDATE_PRODUCT = YES;
318 | VERSIONING_SYSTEM = "apple-generic";
319 | VERSION_INFO_PREFIX = "";
320 | };
321 | name = Release;
322 | };
323 | E0B07D471C3CF6F5001CCAB7 /* Debug */ = {
324 | isa = XCBuildConfiguration;
325 | buildSettings = {
326 | CLANG_ENABLE_MODULES = YES;
327 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
328 | DEFINES_MODULE = YES;
329 | DYLIB_COMPATIBILITY_VERSION = 1;
330 | DYLIB_CURRENT_VERSION = 1;
331 | DYLIB_INSTALL_NAME_BASE = "@rpath";
332 | INFOPLIST_FILE = DOMContentLoadedDelegate/Info.plist;
333 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
334 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
335 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
336 | PRODUCT_BUNDLE_IDENTIFIER = com.lazyapps.DOMContentLoadedDelegate;
337 | PRODUCT_NAME = "$(TARGET_NAME)";
338 | SKIP_INSTALL = YES;
339 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
340 | SWIFT_VERSION = 2.3;
341 | };
342 | name = Debug;
343 | };
344 | E0B07D481C3CF6F5001CCAB7 /* Release */ = {
345 | isa = XCBuildConfiguration;
346 | buildSettings = {
347 | CLANG_ENABLE_MODULES = YES;
348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
349 | DEFINES_MODULE = YES;
350 | DYLIB_COMPATIBILITY_VERSION = 1;
351 | DYLIB_CURRENT_VERSION = 1;
352 | DYLIB_INSTALL_NAME_BASE = "@rpath";
353 | INFOPLIST_FILE = DOMContentLoadedDelegate/Info.plist;
354 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
355 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
356 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
357 | PRODUCT_BUNDLE_IDENTIFIER = com.lazyapps.DOMContentLoadedDelegate;
358 | PRODUCT_NAME = "$(TARGET_NAME)";
359 | SKIP_INSTALL = YES;
360 | SWIFT_VERSION = 2.3;
361 | };
362 | name = Release;
363 | };
364 | E0B07D4A1C3CF6F5001CCAB7 /* Debug */ = {
365 | isa = XCBuildConfiguration;
366 | buildSettings = {
367 | INFOPLIST_FILE = DOMContentLoadedDelegateTests/Info.plist;
368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
369 | PRODUCT_BUNDLE_IDENTIFIER = com.lazyapps.DOMContentLoadedDelegateTests;
370 | PRODUCT_NAME = "$(TARGET_NAME)";
371 | };
372 | name = Debug;
373 | };
374 | E0B07D4B1C3CF6F5001CCAB7 /* Release */ = {
375 | isa = XCBuildConfiguration;
376 | buildSettings = {
377 | INFOPLIST_FILE = DOMContentLoadedDelegateTests/Info.plist;
378 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
379 | PRODUCT_BUNDLE_IDENTIFIER = com.lazyapps.DOMContentLoadedDelegateTests;
380 | PRODUCT_NAME = "$(TARGET_NAME)";
381 | };
382 | name = Release;
383 | };
384 | /* End XCBuildConfiguration section */
385 |
386 | /* Begin XCConfigurationList section */
387 | E0B07D2C1C3CF6F5001CCAB7 /* Build configuration list for PBXProject "DOMContentLoadedDelegate" */ = {
388 | isa = XCConfigurationList;
389 | buildConfigurations = (
390 | E0B07D441C3CF6F5001CCAB7 /* Debug */,
391 | E0B07D451C3CF6F5001CCAB7 /* Release */,
392 | );
393 | defaultConfigurationIsVisible = 0;
394 | defaultConfigurationName = Release;
395 | };
396 | E0B07D461C3CF6F5001CCAB7 /* Build configuration list for PBXNativeTarget "DOMContentLoadedDelegate" */ = {
397 | isa = XCConfigurationList;
398 | buildConfigurations = (
399 | E0B07D471C3CF6F5001CCAB7 /* Debug */,
400 | E0B07D481C3CF6F5001CCAB7 /* Release */,
401 | );
402 | defaultConfigurationIsVisible = 0;
403 | defaultConfigurationName = Release;
404 | };
405 | E0B07D491C3CF6F5001CCAB7 /* Build configuration list for PBXNativeTarget "DOMContentLoadedDelegateTests" */ = {
406 | isa = XCConfigurationList;
407 | buildConfigurations = (
408 | E0B07D4A1C3CF6F5001CCAB7 /* Debug */,
409 | E0B07D4B1C3CF6F5001CCAB7 /* Release */,
410 | );
411 | defaultConfigurationIsVisible = 0;
412 | defaultConfigurationName = Release;
413 | };
414 | /* End XCConfigurationList section */
415 | };
416 | rootObject = E0B07D291C3CF6F5001CCAB7 /* Project object */;
417 | }
418 |
--------------------------------------------------------------------------------