-
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.
- Loading branch information
Showing
7 changed files
with
160 additions
and
0 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
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
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 UIKit | ||
import Swinject | ||
|
||
internal class AnimalPagesViewController: UIPageViewController { | ||
let animalPage: AnimalViewController | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
animalPage = UIStoryboard( | ||
name: "Pages", | ||
bundle: Bundle(for: AnimalPagesViewController.self) | ||
).instantiateViewController(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.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="c9R-0n-AJU"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--Animal Pages View Controller--> | ||
<scene sceneID="wdC-vN-RNz"> | ||
<objects> | ||
<pageViewController autoresizesArchivedViewToFullSize="NO" transitionStyle="pageCurl" navigationOrientation="horizontal" spineLocation="min" id="c9R-0n-AJU" customClass="AnimalPagesViewController" customModule="SwinjectTests" customModuleProvider="target" sceneMemberID="viewController"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="OWH-1u-wrP" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="-340" y="121"/> | ||
</scene> | ||
<!--Animal View Controller--> | ||
<scene sceneID="IxS-yc-Y2y"> | ||
<objects> | ||
<viewController storyboardIdentifier="AnimalPage" id="DEB-S9-zld" customClass="AnimalViewController" customModule="SwinjectTests" customModuleProvider="target" sceneMemberID="viewController"> | ||
<layoutGuides> | ||
<viewControllerLayoutGuide type="top" id="TLP-Zd-ePG"/> | ||
<viewControllerLayoutGuide type="bottom" id="gcx-MT-IDE"/> | ||
</layoutGuides> | ||
<view key="view" contentMode="scaleToFill" id="EsB-wj-vOr"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> | ||
</view> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="4nP-pU-g0r" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="340" y="121"/> | ||
</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