-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from jakubvano/fix_storyboard_injection
Fix storyboard injection
- Loading branch information
Showing
11 changed files
with
240 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// InjectionVerifiable.swift | ||
// Swinject | ||
// | ||
// Created by Jakub Vaňo on 28/10/16. | ||
// Copyright © 2016 Swinject Contributors. All rights reserved. | ||
// | ||
|
||
internal protocol InjectionVerifiable: AnyObject { | ||
var wasInjected: Bool { get set } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// AnimalPagesViewController.swift | ||
// Swinject | ||
// | ||
// Created by Jakub Vaňo on 27/10/16. | ||
// Copyright © 2016 Swinject Contributors. All rights reserved. | ||
// | ||
|
||
import AppKit | ||
import Swinject | ||
|
||
internal class AnimalPagesViewController: NSPageController { | ||
let animalPage: AnimalViewController | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
animalPage = NSStoryboard( | ||
name: "Pages", | ||
bundle: Bundle(for: AnimalPagesViewController.self) | ||
).instantiateController(withIdentifier: "AnimalPage") as! AnimalViewController | ||
|
||
super.init(coder: aDecoder) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="DpY-PQ-6TH"> | ||
<dependencies> | ||
<deployment identifier="macosx"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/> | ||
</dependencies> | ||
<scenes> | ||
<!--Animal Pages View Controller--> | ||
<scene sceneID="ajh-jW-cvc"> | ||
<objects> | ||
<pagecontroller id="DpY-PQ-6TH" customClass="AnimalPagesViewController" customModule="SwinjectTests" customModuleProvider="target" sceneMemberID="viewController"> | ||
<view key="view" id="O2u-zU-y44"> | ||
<rect key="frame" x="0.0" y="0.0" width="450" height="300"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
</view> | ||
</pagecontroller> | ||
<customObject id="Kah-4j-UwY" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="-189" y="-5"/> | ||
</scene> | ||
<!--Animal View Controller--> | ||
<scene sceneID="F7O-wN-Mlm"> | ||
<objects> | ||
<viewController storyboardIdentifier="AnimalPage" id="laR-VI-hPN" customClass="AnimalViewController" customModule="SwinjectTests" customModuleProvider="target" sceneMemberID="viewController"> | ||
<view key="view" id="kEW-PC-iVW"> | ||
<rect key="frame" x="0.0" y="0.0" width="450" height="300"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
</view> | ||
</viewController> | ||
<customObject id="dRT-QK-Lv6" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="282" y="-5"/> | ||
</scene> | ||
</scenes> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.