Skip to content

Commit c75796d

Browse files
committed
Storyboard added to the pod
1 parent 697905a commit c75796d

File tree

5 files changed

+61
-8
lines changed

5 files changed

+61
-8
lines changed

PPLeftMenuNavigation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ s.author = { '<YOUR NAME HERE>' => '<YOUR EMAIL HERE>' }
1414
s.source = { :git => 'https://github.com/PierrePerrin/PPDesignLeftMenuNavigation.git', :tag => s.version.to_s }
1515

1616
s.ios.deployment_target = '8.2'
17-
s.source_files = 'PPLeftMenuNavigation/PPLeftMenuNavigation/*.{swift,jpg}'
17+
s.source_files = 'PPLeftMenuNavigation/PPLeftMenuNavigation/*.{swift,jpg,storyboard}'
1818

1919
end

PPLeftMenuNavigation/PPLeftMenuNavigation.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
F911CD821E969C5C00ACF511 /* PPMain.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F911CD811E969C5C00ACF511 /* PPMain.storyboard */; };
1110
F911CD841E969CCF00ACF511 /* PPMenuContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F911CD831E969CCF00ACF511 /* PPMenuContainerViewController.swift */; };
1211
F911CD861E969D7D00ACF511 /* PPLeftMenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F911CD851E969D7D00ACF511 /* PPLeftMenuViewController.swift */; };
1312
F911CD881E969E0600ACF511 /* PPLeftMenuItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = F911CD871E969E0600ACF511 /* PPLeftMenuItem.swift */; };
1413
F911CD8C1E96A0E600ACF511 /* PPLeftMenuTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F911CD8B1E96A0E600ACF511 /* PPLeftMenuTableViewCell.swift */; };
1514
F911CD981E96B16800ACF511 /* PPConstant.swift in Sources */ = {isa = PBXBuildFile; fileRef = F911CD971E96B16800ACF511 /* PPConstant.swift */; };
1615
F95DEF4E1E97F0B200289803 /* backGround@2x.jpg in Resources */ = {isa = PBXBuildFile; fileRef = F95DEF4D1E97F0B200289803 /* backGround@2x.jpg */; };
1716
F96195011EA52FB8002B4CF8 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = F96195001EA52FB8002B4CF8 /* Info.plist */; };
17+
F96195251EA53A16002B4CF8 /* PPMain.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F96195241EA53A16002B4CF8 /* PPMain.storyboard */; };
1818
/* End PBXBuildFile section */
1919

2020
/* Begin PBXFileReference section */
2121
F911CD761E969C4900ACF511 /* PPLeftMenuNavigation.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PPLeftMenuNavigation.framework; sourceTree = BUILT_PRODUCTS_DIR; };
22-
F911CD811E969C5C00ACF511 /* PPMain.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = PPMain.storyboard; path = ../../../../../Downloads/PPMain.storyboard; sourceTree = "<group>"; };
2322
F911CD831E969CCF00ACF511 /* PPMenuContainerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PPMenuContainerViewController.swift; sourceTree = "<group>"; };
2423
F911CD851E969D7D00ACF511 /* PPLeftMenuViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PPLeftMenuViewController.swift; sourceTree = "<group>"; };
2524
F911CD871E969E0600ACF511 /* PPLeftMenuItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PPLeftMenuItem.swift; sourceTree = "<group>"; };
2625
F911CD8B1E96A0E600ACF511 /* PPLeftMenuTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PPLeftMenuTableViewCell.swift; sourceTree = "<group>"; };
2726
F911CD971E96B16800ACF511 /* PPConstant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PPConstant.swift; sourceTree = "<group>"; };
2827
F95DEF4D1E97F0B200289803 /* backGround@2x.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "backGround@2x.jpg"; sourceTree = "<group>"; };
2928
F96195001EA52FB8002B4CF8 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
29+
F96195241EA53A16002B4CF8 /* PPMain.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = PPMain.storyboard; sourceTree = "<group>"; };
3030
/* End PBXFileReference section */
3131

3232
/* Begin PBXFrameworksBuildPhase section */
@@ -59,13 +59,13 @@
5959
F911CD781E969C4900ACF511 /* PPLeftMenuNavigation */ = {
6060
isa = PBXGroup;
6161
children = (
62+
F96195241EA53A16002B4CF8 /* PPMain.storyboard */,
6263
F95DEF4D1E97F0B200289803 /* backGround@2x.jpg */,
6364
F911CD971E96B16800ACF511 /* PPConstant.swift */,
6465
F911CD831E969CCF00ACF511 /* PPMenuContainerViewController.swift */,
6566
F911CD8B1E96A0E600ACF511 /* PPLeftMenuTableViewCell.swift */,
6667
F911CD871E969E0600ACF511 /* PPLeftMenuItem.swift */,
6768
F911CD851E969D7D00ACF511 /* PPLeftMenuViewController.swift */,
68-
F911CD811E969C5C00ACF511 /* PPMain.storyboard */,
6969
F96195001EA52FB8002B4CF8 /* Info.plist */,
7070
F911CD771E969C4900ACF511 /* Products */,
7171
);
@@ -143,7 +143,7 @@
143143
buildActionMask = 2147483647;
144144
files = (
145145
F95DEF4E1E97F0B200289803 /* backGround@2x.jpg in Resources */,
146-
F911CD821E969C5C00ACF511 /* PPMain.storyboard in Resources */,
146+
F96195251EA53A16002B4CF8 /* PPMain.storyboard in Resources */,
147147
F96195011EA52FB8002B4CF8 /* Info.plist in Resources */,
148148
);
149149
runOnlyForDeploymentPostprocessing = 0;

PPLeftMenuNavigation/PPLeftMenuNavigation.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12118" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
3+
<device id="retina4_7" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
6+
<dependencies>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
9+
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
10+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
11+
</dependencies>
12+
<scenes>
13+
<!--Left Menu View Controller-->
14+
<scene sceneID="u0D-Tq-3UC">
15+
<objects>
16+
<viewController storyboardIdentifier="PPLeftMenuViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="ceD-fJ-Gcp" customClass="PPLeftMenuViewController" customModule="PPLeftMenuNavigation" customModuleProvider="target" sceneMemberID="viewController">
17+
<layoutGuides>
18+
<viewControllerLayoutGuide type="top" id="gAy-1b-rUy"/>
19+
<viewControllerLayoutGuide type="bottom" id="N1A-hS-07B"/>
20+
</layoutGuides>
21+
<view key="view" contentMode="scaleToFill" id="RGL-TB-pAD">
22+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
23+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
24+
<subviews>
25+
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="KHi-mG-Ehx">
26+
<rect key="frame" x="20" y="33.5" width="200" height="600"/>
27+
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
28+
<constraints>
29+
<constraint firstAttribute="width" constant="200" id="dav-Mc-XmK"/>
30+
</constraints>
31+
</tableView>
32+
</subviews>
33+
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
34+
<constraints>
35+
<constraint firstItem="KHi-mG-Ehx" firstAttribute="centerY" secondItem="RGL-TB-pAD" secondAttribute="centerY" id="CVj-ZB-sXM"/>
36+
<constraint firstItem="KHi-mG-Ehx" firstAttribute="height" secondItem="RGL-TB-pAD" secondAttribute="height" multiplier="0.9" id="Gmr-MU-N98"/>
37+
<constraint firstItem="KHi-mG-Ehx" firstAttribute="leading" secondItem="RGL-TB-pAD" secondAttribute="leading" constant="20" id="IXO-rP-Req"/>
38+
</constraints>
39+
</view>
40+
<connections>
41+
<outlet property="tableView" destination="KHi-mG-Ehx" id="kW1-LZ-64H"/>
42+
</connections>
43+
</viewController>
44+
<placeholder placeholderIdentifier="IBFirstResponder" id="LH1-gj-ukA" userLabel="First Responder" sceneMemberID="firstResponder"/>
45+
</objects>
46+
<point key="canvasLocation" x="261.60000000000002" y="-229.83508245877064"/>
47+
</scene>
48+
</scenes>
49+
</document>

PPLeftMenuNavigationExample/PPLeftMenuNavigationExample/MainViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class MainViewController: PPMenuContainerViewController, PPLeftMenuDatasource {
2424
if let vc = self.viewController(forItem: menuItems.first!){
2525
self.contentViewController = vc
2626
}
27-
self.backgroundImage = #imageLiteral(resourceName: "home-1")
28-
self.addBlurToBackground = true
27+
// self.backgroundImage = #imageLiteral(resourceName: "home-1")
28+
// self.addBlurToBackground = true
2929
}
3030

3131
func viewController(forItem item : mainLeftMenuItem) -> UIViewController?{
@@ -58,7 +58,7 @@ class MainViewController: PPMenuContainerViewController, PPLeftMenuDatasource {
5858

5959
func didSelectRow(atIndex index: Int, item : PPLeftMenuItem) {
6060
if let vc = self.viewController(forItem: menuItems[index]){
61-
self.setContentViewController(viewController: vc, animated: true,blurTransition: true)
61+
self.setContentViewController(viewController: vc, animated: true,blurTransition: false)
6262
}
6363
}
6464

0 commit comments

Comments
 (0)