Skip to content

Commit

Permalink
Update examples to v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniocasero committed Oct 8, 2018
1 parent de41a6c commit 78b6c8c
Show file tree
Hide file tree
Showing 16 changed files with 313 additions and 259 deletions.
26 changes: 2 additions & 24 deletions Example/Panels.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@
C4951F20211ECFFA001923B9 /* Frameworks */,
C4951F21211ECFFA001923B9 /* Resources */,
676378DD72C6127E165C1386 /* [CP] Embed Pods Frameworks */,
9DFDB2E51086814E88B7AEBA /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -277,21 +276,6 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Panels_Example/Pods-Panels_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
9DFDB2E51086814E88B7AEBA /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Panels_Example/Pods-Panels_Example-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -456,10 +440,7 @@
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Panels/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "Uttopia.Panels-Example";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
Expand All @@ -475,10 +456,7 @@
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Panels/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "Uttopia.Panels-Example";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
Expand Down
8 changes: 4 additions & 4 deletions Example/Panels/ViewControllers/BasicViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import UIKit
import Panels

class BasicViewController: UIViewController {
let panelManager = Panels()
lazy var panelManager = Panels(target: self)
lazy var panel = UIStoryboard.instantiatePanel(identifier: "PanelOptions")
override func viewDidLoad() {
super.viewDidLoad()
var panelConfiguration = PanelConfiguration(storyboardName: "PanelOptions")
panelConfiguration.panelSize = .oneThird
panelManager.addPanel(with: panelConfiguration, target: self)
let panelConfiguration = PanelConfiguration(size: .oneThird)
panelManager.show(panel: self.panel, config: panelConfiguration)
}
}
6 changes: 3 additions & 3 deletions Example/Panels/ViewControllers/CustomViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
import UIKit
import Panels
class CustomViewController: UIViewController {
let panelManager = Panels()
var panelable: Panelable!
lazy var panelManager = Panels(target: self)
lazy var panel = UIStoryboard.instantiatePanel(identifier: "PanelDetails")
var panelConfiguration: PanelConfiguration!
override func viewDidLoad() {
super.viewDidLoad()
panelConfiguration.panelSize = .custom(400)
panelable = panelManager.addPanel(with: panelConfiguration, target: self)
panelManager.show(panel: panel, config: panelConfiguration)
panelManager.delegate = self
}
}
Expand Down
2 changes: 1 addition & 1 deletion Example/Panels/ViewControllers/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
import Panels

class MainViewController: UIViewController {
var customConfiguration = PanelConfiguration(storyboardName: "PanelDetails")
var customConfiguration = PanelConfiguration()

override func viewDidLoad() {
super.viewDidLoad()
Expand Down
11 changes: 7 additions & 4 deletions Example/Panels/ViewControllers/MaterialViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ import UIKit
import Panels

class MaterialViewController: UIViewController {
let panelManager = Panels()
lazy var panelManager = Panels(target: self)
override func viewDidLoad() {
super.viewDidLoad()
var panelConfiguration = PanelConfiguration(storyboardName: "PanelMaterial")
panelConfiguration.panelSize = .half
let panel = UIStoryboard.instantiatePanel(identifier: "PanelMaterial")
var panelConfiguration = PanelConfiguration(size: .half)
panelConfiguration.animateEntry = true
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
self.panelManager.addPanel(with: panelConfiguration, target: self)
self.panelManager.show(panel: panel, config: panelConfiguration)
}
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.panelManager.dismiss()
}
}
}
1 change: 0 additions & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ use_frameworks!

target 'Panels_Example' do
pod 'Panels', :path => '../'
pod 'ArrowPanels'
end
8 changes: 4 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
PODS:
- Panels (0.1)
- Panels (1.0.0)

DEPENDENCIES:
- Panels (from `../`)

EXTERNAL SOURCES:
Panels:
:path: ../
:path: "../"

SPEC CHECKSUMS:
Panels: 3406bc28161fed8cedeb1f1c0a3c71d9d39c3180
Panels: b45ddc95045bebed9449b13faf0fae30c1d78e82

PODFILE CHECKSUM: 37a23b2f0e4c406277d40efab05492a5406ef942

COCOAPODS: 1.3.1
COCOAPODS: 1.5.3
11 changes: 6 additions & 5 deletions Example/Pods/Local Podspecs/Panels.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 78b6c8c

Please sign in to comment.