Compare commits

..

12 Commits

Author SHA1 Message Date
mrustaa 74647ef9ba 1.0.6 2020-06-10 13:34:15 +03:00
mrustaa 2a14634869 1.0.5 2020-06-10 13:29:38 +03:00
mrustaa 42f03ef1be update 2020-06-10 13:27:42 +03:00
mrustaa 4e56501f41 update 2020-06-10 13:07:47 +03:00
mrustaa 6236c59b73 1.0.4 2020-06-10 12:59:26 +03:00
mrustaa e140d52e21 update swift version 2020-06-10 12:51:59 +03:00
mrustaa 9c3ba97d6b update 1.0.3 2020-06-10 12:38:13 +03:00
mrustaa 892a66c9b0 release 1.0.3 update readme.md 2020-06-10 01:44:49 +03:00
mrustaa 01997fcddd [Update] ContainerControllerSwift (1.0.2) 2020-06-09 23:04:10 +03:00
mrustaa 49b0b16761 1.0.2 2020-06-09 23:02:29 +03:00
mrustaa 09c40f710e update 1.0.2 2020-06-09 23:01:58 +03:00
mrustaa f844311ff1 [Update] ContainerControllerSwift (1.0.0) 2020-06-09 22:17:02 +03:00
26 changed files with 675 additions and 218 deletions
+18 -15
View File
@@ -7,9 +7,9 @@
#
Pod::Spec.new do |s|
s.name = 'ContainerControllerSwift'
s.version = '1.0.0'
s.summary = 'This is a swipe-panel from application: https://www.apple.com/ios/maps/'
s.name = 'ContainerControllerSwift'
s.version = '1.0.6'
s.summary = 'This is a swipe-panel from application: https://www.apple.com/ios/maps/'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
@@ -17,24 +17,27 @@ Pod::Spec.new do |s|
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
s.description = <<-DESC
TODO: Add long description of the pod here.
'This is a swipe-panel from application: https://www.apple.com/ios/maps/'
DESC
s.homepage = 'https://github.com/mrustaa/ContainerController'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'rustamburger@gmail.com' => 'rustamburger@gmail.com' }
s.source = { :git => 'https://github.com/mrustaa/ContainerController.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.homepage = 'https://github.com/mrustaa/ContainerController'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'mrustaa' => 'rustamburger@gmail.com' }
s.source = { :git => 'https://github.com/mrustaa/ContainerController.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.swift-version = "5.0"
s.swift_version = '5.2.4'
s.ios.deployment_target = '13.0'
# s.ios.deployment_target = '13.0'
s.platform = :ios, "13.0"
s.source_files = 'ContainerControllerSwift/*.{swift}'
s.source_files = 'ContainerControllerSwift/**/*.{swift}'
s.source_files = 'ContainerControllerSwift/*.{swift}'
s.source_files = 'ContainerControllerSwift/ContainerTable/*.{swift}'
s.source_files = 'ContainerControllerSwift/ContainerCollection/*.{swift}'
s.framework = "UIKit"
# s.ios.framework = 'UIKit'
# s.resource_bundles = {
# 'ContainerControllerSwift' => ['ContainerControllerSwift/Assets/*.png']
# }
@@ -0,0 +1,45 @@
#
# Be sure to run `pod lib lint ContainerControllerSwift.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'ContainerControllerSwift'
s.version = '1.0.2'
s.summary = 'This is a swipe-panel from application: https://www.apple.com/ios/maps/'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
TODO: Add long description of the pod here.
'This is a swipe-panel from application: https://www.apple.com/ios/maps/'
DESC
s.homepage = 'https://github.com/mrustaa/ContainerController'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'rustamburger@gmail.com' => 'rustamburger@gmail.com' }
s.source = { :git => 'https://github.com/mrustaa/ContainerController.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.swift_version = '5.2.4'
s.ios.deployment_target = '13.0'
s.source_files = 'ContainerControllerSwift/*.{swift}'
s.source_files = 'ContainerControllerSwift/**/*.{swift}'
# s.resource_bundles = {
# 'ContainerControllerSwift' => ['ContainerControllerSwift/Assets/*.png']
# }
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
@@ -1,14 +0,0 @@
//
// CollectionAdapterTypes.swift
// PatternsSwift
//
// Created by Рустам Мотыгуллин on 01/05/2020.
// Copyright © 2020 mrusta. All rights reserved.
//
import UIKit
typealias CollectionAdapterCountCallback = () -> Int
typealias CollectionAdapterCellIndexCallback = (_ index: Int) -> UICollectionViewCell
typealias CollectionAdapterSizeIndexCallback = (_ index: Int) -> CGSize
typealias CollectionAdapterSelectIndexCallback = (_ index: Int) -> ()
@@ -1,16 +0,0 @@
//
// ContainerTypes.swift
// PatternsSwift
//
// Created by Рустам Мотыгуллин on 21/04/2020.
// Copyright © 2020 mrusta. All rights reserved.
//
import UIKit
typealias TableAdapterCountCallback = () -> Int
typealias TableAdapterCellIndexCallback = (_ index: Int) -> UITableViewCell
typealias TableAdapterHeightIndexCallback = (_ index: Int) -> CGFloat
typealias TableAdapterSelectIndexCallback = (_ index: Int) -> ()
typealias TableAdapterDidScrollCallback = () -> ()
typealias TableAdapterDeleteIndexCallback = (_ index: Int) -> ()
@@ -8,7 +8,7 @@
import UIKit
class CollectionAdapterCell: UICollectionViewCell {
open class CollectionAdapterCell: UICollectionViewCell {
@IBInspectable var hideAnimation: Bool = false
var selectedView: UIView?
@@ -24,7 +24,7 @@ class CollectionAdapterCell: UICollectionViewCell {
setupCommonProperties()
}
required init?(coder: NSCoder) {
required public init?(coder: NSCoder) {
super.init(coder: coder)
setupCommonProperties()
}
@@ -49,7 +49,7 @@ class CollectionAdapterCell: UICollectionViewCell {
let selAlpha: CGFloat = 0.2 // 0.15
override var isSelected: Bool {
open override var isSelected: Bool {
set {
super.isSelected = newValue
@@ -85,7 +85,7 @@ class CollectionAdapterCell: UICollectionViewCell {
}
}
override var isHighlighted: Bool {
open override var isHighlighted: Bool {
set {
super.isHighlighted = newValue
@@ -8,7 +8,7 @@
import UIKit
class CollectionAdapterCellData: NSObject {
open class CollectionAdapterCellData: NSObject {
public var selectCallback: (() -> Void)?
@@ -8,7 +8,7 @@
import UIKit
class CollectionAdapterItem: NSObject {
open class CollectionAdapterItem: NSObject {
public let cellClass: AnyClass
public let cellData: CollectionAdapterCellData?
@@ -0,0 +1,14 @@
//
// CollectionAdapterTypes.swift
// PatternsSwift
//
// Created by Рустам Мотыгуллин on 01/05/2020.
// Copyright © 2020 mrusta. All rights reserved.
//
import UIKit
public typealias CollectionAdapterCountCallback = () -> Int
public typealias CollectionAdapterCellIndexCallback = (_ index: Int) -> UICollectionViewCell
public typealias CollectionAdapterSizeIndexCallback = (_ index: Int) -> CGSize
public typealias CollectionAdapterSelectIndexCallback = (_ index: Int) -> ()
@@ -8,7 +8,7 @@
import UIKit
class CollectionAdapterView: UICollectionView {
open class CollectionAdapterView: UICollectionView {
var countCallback: CollectionAdapterCountCallback?
var cellIndexCallback: CollectionAdapterCellIndexCallback?
@@ -17,7 +17,7 @@ class CollectionAdapterView: UICollectionView {
var items: [CollectionAdapterItem] = []
required init?(coder: NSCoder) {
required public init?(coder: NSCoder) {
super.init(coder: coder)
update()
}
@@ -64,7 +64,7 @@ class CollectionAdapterView: UICollectionView {
extension CollectionAdapterView: UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
if !items.isEmpty {
let item = items[indexPath.row]
item.cellData?.selectCallback?()
@@ -78,7 +78,7 @@ extension CollectionAdapterView: UICollectionViewDelegate {
extension CollectionAdapterView: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
if !items.isEmpty {
return items.count
}
@@ -88,7 +88,7 @@ extension CollectionAdapterView: UICollectionViewDataSource {
return 0
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
if !items.isEmpty {
let item = items[indexPath.row]
let cell = cellAt(indexPath)
@@ -8,7 +8,7 @@
import UIKit
class ContainerController: NSObject {
open class ContainerController: NSObject {
// MARK: Views
@@ -1094,7 +1094,7 @@ class ContainerController: NSObject {
extension ContainerController: UIGestureRecognizerDelegate {
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return false
}
@@ -1104,14 +1104,14 @@ extension ContainerController: UIGestureRecognizerDelegate {
extension ContainerController: UITableViewDelegate {
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if let tableAdapterView = scrollView as? TableAdapterView {
return tableAdapterView.tableView(tableView, heightForRowAt: indexPath)
}
return 0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if let tableAdapterView = scrollView as? TableAdapterView {
return tableAdapterView.tableView(tableView, didSelectRowAt: indexPath)
}
@@ -1123,14 +1123,14 @@ extension ContainerController: UITableViewDelegate {
extension ContainerController: UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if let tableAdapterView = scrollView as? TableAdapterView {
return tableAdapterView.tableView(tableView, numberOfRowsInSection: section)
}
return 0
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if let tableAdapterView = scrollView as? TableAdapterView {
return tableAdapterView.tableView(tableView, cellForRowAt: indexPath)
}
@@ -1143,7 +1143,7 @@ extension ContainerController: UITableViewDataSource {
extension ContainerController: UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
if let collectionAdapterView = scrollView as? CollectionAdapterView {
collectionAdapterView.collectionView(collectionView, didSelectItemAt: indexPath)
}
@@ -1155,14 +1155,14 @@ extension ContainerController: UICollectionViewDelegate {
extension ContainerController: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
if let collectionAdapterView = scrollView as? CollectionAdapterView {
return collectionAdapterView.collectionView(collectionView, numberOfItemsInSection: section)
}
return 0
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
if let collectionAdapterView = scrollView as? CollectionAdapterView {
return collectionAdapterView.collectionView(collectionView, cellForItemAt: indexPath)
}
@@ -1186,7 +1186,7 @@ extension ContainerController: UICollectionViewDelegateFlowLayout {
extension ContainerController: UIScrollViewDelegate {
func scrollViewDidScroll(_ scrollView: UIScrollView) {
public func scrollViewDidScroll(_ scrollView: UIScrollView) {
if let tableAdapterView = scrollView as? TableAdapterView {
tableAdapterView.scrollViewDidScroll(tableAdapterView)
@@ -1296,7 +1296,7 @@ extension ContainerController: UIScrollViewDelegate {
// MARK: - Scroll Begin/End Dragging
func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
public func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
isScrolling = true
@@ -1309,11 +1309,11 @@ extension ContainerController: UIScrollViewDelegate {
}
}
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
public func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
isScrolling = false
}
func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
public func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
if !decelerate {
isScrolling = false
@@ -8,7 +8,7 @@
import UIKit
protocol ContainerControllerDelegate {
public protocol ContainerControllerDelegate {
/// Reports rotation and orientation changes
func containerControllerRotation(_ containerController: ContainerController)
@@ -21,7 +21,7 @@ protocol ContainerControllerDelegate {
}
extension ContainerControllerDelegate {
public extension ContainerControllerDelegate {
func containerControllerRotation(_ containerController: ContainerController) {
}
@@ -2,11 +2,9 @@
import UIKit
extension ContainerDevice {
public extension ContainerDevice {
public enum Orientation {
enum Orientation {
case portrait
case landscapeLeft
case landscapeRight
@@ -10,7 +10,7 @@ import UIKit
// MARK: - Position
class ContainerPosition {
open class ContainerPosition {
var top: CGFloat
@@ -30,7 +30,7 @@ class ContainerPosition {
// MARK: - Insets
struct ContainerInsets {
public struct ContainerInsets {
var right: CGFloat
@@ -46,7 +46,7 @@ struct ContainerInsets {
// MARK: - Layout
class ContainerLayout {
open class ContainerLayout {
/**
Initialization start position.
@@ -8,7 +8,7 @@
import UIKit
class TableAdapterCell: UITableViewCell {
open class TableAdapterCell: UITableViewCell {
@IBInspectable var hideAnimation: Bool = false
var selectedView: UIView?
@@ -35,7 +35,7 @@ class TableAdapterCell: UITableViewCell {
let selAlpha: CGFloat = 0.2 // 0.15
override func setSelected(_ selected: Bool, animated: Bool) {
open override func setSelected(_ selected: Bool, animated: Bool) {
if hideAnimation {
@@ -65,7 +65,7 @@ class TableAdapterCell: UITableViewCell {
}
override func setHighlighted(_ highlighted: Bool, animated: Bool) {
open override func setHighlighted(_ highlighted: Bool, animated: Bool) {
if hideAnimation {
if highlighted {
@@ -8,7 +8,7 @@
import UIKit
class TableAdapterCellData: NSObject {
open class TableAdapterCellData: NSObject {
// public let cellIdentifier: String
//
@@ -8,7 +8,7 @@
import UIKit
class TableAdapterItem: NSObject {
open class TableAdapterItem: NSObject {
public let cellClass: AnyClass
@@ -0,0 +1,16 @@
//
// ContainerTypes.swift
// PatternsSwift
//
// Created by Рустам Мотыгуллин on 21/04/2020.
// Copyright © 2020 mrusta. All rights reserved.
//
import UIKit
public typealias TableAdapterCountCallback = () -> Int
public typealias TableAdapterCellIndexCallback = (_ index: Int) -> UITableViewCell
public typealias TableAdapterHeightIndexCallback = (_ index: Int) -> CGFloat
public typealias TableAdapterSelectIndexCallback = (_ index: Int) -> ()
public typealias TableAdapterDidScrollCallback = () -> ()
public typealias TableAdapterDeleteIndexCallback = (_ index: Int) -> ()
@@ -8,7 +8,7 @@
import UIKit
class TableAdapterView: UITableView {
open class TableAdapterView: UITableView {
@IBInspectable var separatorClr: UIColor?
@@ -22,7 +22,7 @@ class TableAdapterView: UITableView {
var items: [TableAdapterItem] = []
required init?(coder: NSCoder) {
required public init?(coder: NSCoder) {
super.init(coder: coder)
update()
}
@@ -32,7 +32,7 @@ class TableAdapterView: UITableView {
update()
}
override func draw(_ rect: CGRect) {
open override func draw(_ rect: CGRect) {
if let color = separatorClr {
separatorColor = color
}
@@ -122,7 +122,7 @@ extension TableAdapterView: UITableViewDataSource {
}
func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
public func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
if !items.isEmpty {
let item = items[indexPath.row]
return item.canEditing()
@@ -130,7 +130,7 @@ extension TableAdapterView: UITableViewDataSource {
return false
}
func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
public func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
if editingStyle == .delete {
items.remove(at: indexPath.row)
@@ -16,7 +16,7 @@ public enum ContainerMoveType {
case custom
}
enum ContainerFromType {
public enum ContainerFromType {
case pan
case scroll
case scrollBorder
@@ -8,7 +8,7 @@
import UIKit
class ContainerView: UIView {
open class ContainerView: UIView {
var contentView: UIView?
@@ -44,7 +44,7 @@ class ContainerView: UIView {
self.contentView = contentView
}
required init?(coder: NSCoder) {
required public init?(coder: NSCoder) {
super.init(coder: coder)
}
@@ -207,7 +207,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0830;
LastUpgradeCheck = 0830;
LastUpgradeCheck = 1150;
ORGANIZATIONNAME = CocoaPods;
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
@@ -223,10 +223,9 @@
};
buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ContainerControllerSwift" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
@@ -378,6 +377,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@@ -386,12 +386,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -432,6 +434,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@@ -440,12 +443,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
LastUpgradeVersion = "1150"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -40,8 +40,16 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "ContainerControllerSwift_Example.app"
BlueprintName = "ContainerControllerSwift_Example"
ReferencedContainer = "container:ContainerControllerSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
@@ -54,23 +62,11 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "ContainerControllerSwift_Example.app"
BlueprintName = "ContainerControllerSwift_Example"
ReferencedContainer = "container:ContainerControllerSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
@@ -87,8 +83,6 @@
ReferencedContainer = "container:ContainerControllerSwift.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
+99 -98
View File
@@ -7,31 +7,31 @@
objects = {
/* Begin PBXBuildFile section */
0063CFA21EB39DD227F5A26CCBD776FE /* CollectionAdapterTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = B263243CD7B21C57F4CF756F67802A34 /* CollectionAdapterTypes.swift */; };
00890DAA8DA6F37A5A9A08D12C28DB0B /* ContainerControllerSwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = D9CBEFF11CE7640EEA244C26DEB209EE /* ContainerControllerSwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
05928A5C6094A1BE2CD7C1B2EAA6CE62 /* ContainerLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = B612830BBF07FBF71193F7AB14D4A55C /* ContainerLayout.swift */; };
1243F193971FB6A9D10E4A6DFFF1A81C /* Pods-ContainerControllerSwift_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 32E7EA3D3C16ECD90748D85102DE9F48 /* Pods-ContainerControllerSwift_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
22681BB596CE6DA17497B7901A54950B /* TableAdapterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F9707ABFCA268A0424CEA24E6B3BF07 /* TableAdapterView.swift */; };
305D041A2CE0D999FF5B9EBD9E955A69 /* TableAdapterTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42F30761BE5B39DEF63876179511062E /* TableAdapterTypes.swift */; };
4160A8EF2B3B4C6C9FD887C89887103F /* TableAdapterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61B7D1C8D4658090366030AD72A5319E /* TableAdapterCell.swift */; };
46ACEFC3249021CA00FAAD43 /* ContainerTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB1249021C900FAAD43 /* ContainerTypes.swift */; };
46ACEFC4249021CA00FAAD43 /* TableAdapterCellData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB3249021C900FAAD43 /* TableAdapterCellData.swift */; };
46ACEFC5249021CA00FAAD43 /* TableAdapterItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB4249021C900FAAD43 /* TableAdapterItem.swift */; };
46ACEFC6249021CA00FAAD43 /* TableAdapterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB5249021C900FAAD43 /* TableAdapterCell.swift */; };
46ACEFC7249021CA00FAAD43 /* TableAdapterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB6249021C900FAAD43 /* TableAdapterView.swift */; };
46ACEFC8249021CA00FAAD43 /* TableAdapterTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB7249021C900FAAD43 /* TableAdapterTypes.swift */; };
46ACEFC9249021CA00FAAD43 /* ContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB8249021CA00FAAD43 /* ContainerView.swift */; };
46ACEFCA249021CA00FAAD43 /* ContainerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFB9249021CA00FAAD43 /* ContainerController.swift */; };
46ACEFCB249021CA00FAAD43 /* ContainerLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFBA249021CA00FAAD43 /* ContainerLayout.swift */; };
46ACEFCC249021CA00FAAD43 /* CollectionAdapterItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFBC249021CA00FAAD43 /* CollectionAdapterItem.swift */; };
46ACEFCD249021CA00FAAD43 /* CollectionAdapterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFBD249021CA00FAAD43 /* CollectionAdapterCell.swift */; };
46ACEFCE249021CA00FAAD43 /* CollectionAdapterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFBE249021CA00FAAD43 /* CollectionAdapterView.swift */; };
46ACEFCF249021CA00FAAD43 /* CollectionAdapterCellData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFBF249021CA00FAAD43 /* CollectionAdapterCellData.swift */; };
46ACEFD0249021CA00FAAD43 /* CollectionAdapterTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFC0249021CA00FAAD43 /* CollectionAdapterTypes.swift */; };
46ACEFD1249021CA00FAAD43 /* ContainerControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFC1249021CA00FAAD43 /* ContainerControllerDelegate.swift */; };
46ACEFD2249021CA00FAAD43 /* ContainerDevice.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46ACEFC2249021CA00FAAD43 /* ContainerDevice.swift */; };
6832A37E4BE96FFAB256437366565B3A /* Pods-ContainerControllerSwift_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C492E15579178E6EFA4F7D5E4FD837E3 /* Pods-ContainerControllerSwift_Example-dummy.m */; };
6BA9901BD72359C688E66F3F7F4FCDD5 /* Pods-ContainerControllerSwift_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F6EBDD597E9CC4639BD0FBF04762179D /* Pods-ContainerControllerSwift_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
7439B816859CE33398D03BD6FDC101AB /* CollectionAdapterItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 470B55831EC533EC0F059EA19543FBFC /* CollectionAdapterItem.swift */; };
7F5E524F49DEE108566225BCB243740E /* CollectionAdapterCellData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68C0062FD3719891E8F330E9EFECF398 /* CollectionAdapterCellData.swift */; };
8952421B2B8F8F4DC58FF9BE8368D272 /* TableAdapterCellData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85EA26F55B7BF1D473B9913B148E7362 /* TableAdapterCellData.swift */; };
924134AF593E128FA35D2DB4F482484E /* ContainerControllerSwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EEA0EC0D79861379FB2B1874207A67A /* ContainerControllerSwift-dummy.m */; };
92EB6A1534372D92475E0C3060E06BD8 /* Pods-ContainerControllerSwift_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9CE04B24AA978789CDFAA23C3FF9D294 /* Pods-ContainerControllerSwift_Tests-dummy.m */; };
9950146E5D7DF0DBA7B02DA90742A38C /* TableAdapterItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F963263D0455468550A56681251AC75 /* TableAdapterItem.swift */; };
9E7E4C4EEA1E64DF5665603DF27EF4E1 /* ContainerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03BAF19FAFB51F067564E18831202AAA /* ContainerController.swift */; };
B8A18AFE081C241B1A3DB5F8C831F3F0 /* ContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58517EF6A3AF7C037CAFAEF893B5FD32 /* ContainerView.swift */; };
B9206B2E0133EE4CAEDE0F4D744714E5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; };
BAA094FD7E96EB9293C2DEB359CA812A /* ContainerControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93DC6A6D693893F6D92A457CB7077F20 /* ContainerControllerDelegate.swift */; };
CDB05F59A9B358A3E5C4C2DFE8325017 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; };
DFF5A216E0D725EF10644946001B1853 /* ContainerTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = D126003824F3EFD9D09B08BFB7DB775D /* ContainerTypes.swift */; };
F7BFB9949868F7D30C4613435EBC36A2 /* CollectionAdapterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 725D19ABCCD09ECC9497BC9861F78CEB /* CollectionAdapterView.swift */; };
F8CB001039DC6841667D034305F30BA3 /* ContainerDevice.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E3C09C351507E480F3E927FA88C5407 /* ContainerDevice.swift */; };
FF5ED999C368088A1250700BBBCF4C41 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; };
FFB6897259D1C8EE6D4081EC6A6F4FE0 /* CollectionAdapterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = C33ACC72B3C273EE1226274C2EC39CB2 /* CollectionAdapterCell.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -52,52 +52,52 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
03BAF19FAFB51F067564E18831202AAA /* ContainerController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContainerController.swift; path = ContainerControllerSwift/Classes/ContainerController.swift; sourceTree = "<group>"; };
06196A9E7A7180DCFA9E0A32364BF2EC /* Pods-ContainerControllerSwift_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ContainerControllerSwift_Example-acknowledgements.plist"; sourceTree = "<group>"; };
06B6F2A2E669185755A8E3A5F313DA00 /* Pods-ContainerControllerSwift_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ContainerControllerSwift_Example.modulemap"; sourceTree = "<group>"; };
122783B233FC53518106B017B9E57796 /* Pods-ContainerControllerSwift_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ContainerControllerSwift_Tests.modulemap"; sourceTree = "<group>"; };
13296F8F89440216D156B1EF58BBD3FA /* Pods-ContainerControllerSwift_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ContainerControllerSwift_Example-acknowledgements.markdown"; sourceTree = "<group>"; };
148A1CC4CCA9A45E6679C0483EC257F1 /* Pods_ContainerControllerSwift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_ContainerControllerSwift_Example.framework; path = "Pods-ContainerControllerSwift_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; };
148A1CC4CCA9A45E6679C0483EC257F1 /* Pods_ContainerControllerSwift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ContainerControllerSwift_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
17B800897A944FAFD0416DC3C8A2B9CD /* ContainerControllerSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ContainerControllerSwift.debug.xcconfig; sourceTree = "<group>"; };
23B6CA2F0075DF1F0D43741B3188D49C /* ContainerControllerSwift.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = ContainerControllerSwift.podspec; sourceTree = "<group>"; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
2E3C09C351507E480F3E927FA88C5407 /* ContainerDevice.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContainerDevice.swift; path = ContainerControllerSwift/Classes/ContainerDevice.swift; sourceTree = "<group>"; };
31C6D8CE52D9D44CFE3381837377CCE7 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = "<group>"; };
23B6CA2F0075DF1F0D43741B3188D49C /* ContainerControllerSwift.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = ContainerControllerSwift.podspec; sourceTree = "<group>"; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
31C6D8CE52D9D44CFE3381837377CCE7 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
32E7EA3D3C16ECD90748D85102DE9F48 /* Pods-ContainerControllerSwift_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ContainerControllerSwift_Tests-umbrella.h"; sourceTree = "<group>"; };
34B99A079CA33F3CFA10293C249BD2CE /* Pods-ContainerControllerSwift_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ContainerControllerSwift_Example-Info.plist"; sourceTree = "<group>"; };
3F0346DDED41D0AB543AE2537D7539D6 /* ContainerControllerSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ContainerControllerSwift-Info.plist"; sourceTree = "<group>"; };
42F30761BE5B39DEF63876179511062E /* TableAdapterTypes.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TableAdapterTypes.swift; sourceTree = "<group>"; };
470B55831EC533EC0F059EA19543FBFC /* CollectionAdapterItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CollectionAdapterItem.swift; sourceTree = "<group>"; };
46ACEFB1249021C900FAAD43 /* ContainerTypes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ContainerTypes.swift; path = ContainerControllerSwift/ContainerTypes.swift; sourceTree = "<group>"; };
46ACEFB3249021C900FAAD43 /* TableAdapterCellData.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableAdapterCellData.swift; sourceTree = "<group>"; };
46ACEFB4249021C900FAAD43 /* TableAdapterItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableAdapterItem.swift; sourceTree = "<group>"; };
46ACEFB5249021C900FAAD43 /* TableAdapterCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableAdapterCell.swift; sourceTree = "<group>"; };
46ACEFB6249021C900FAAD43 /* TableAdapterView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableAdapterView.swift; sourceTree = "<group>"; };
46ACEFB7249021C900FAAD43 /* TableAdapterTypes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableAdapterTypes.swift; sourceTree = "<group>"; };
46ACEFB8249021CA00FAAD43 /* ContainerView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ContainerView.swift; path = ContainerControllerSwift/ContainerView.swift; sourceTree = "<group>"; };
46ACEFB9249021CA00FAAD43 /* ContainerController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ContainerController.swift; path = ContainerControllerSwift/ContainerController.swift; sourceTree = "<group>"; };
46ACEFBA249021CA00FAAD43 /* ContainerLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ContainerLayout.swift; path = ContainerControllerSwift/ContainerLayout.swift; sourceTree = "<group>"; };
46ACEFBC249021CA00FAAD43 /* CollectionAdapterItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionAdapterItem.swift; sourceTree = "<group>"; };
46ACEFBD249021CA00FAAD43 /* CollectionAdapterCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionAdapterCell.swift; sourceTree = "<group>"; };
46ACEFBE249021CA00FAAD43 /* CollectionAdapterView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionAdapterView.swift; sourceTree = "<group>"; };
46ACEFBF249021CA00FAAD43 /* CollectionAdapterCellData.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionAdapterCellData.swift; sourceTree = "<group>"; };
46ACEFC0249021CA00FAAD43 /* CollectionAdapterTypes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionAdapterTypes.swift; sourceTree = "<group>"; };
46ACEFC1249021CA00FAAD43 /* ContainerControllerDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ContainerControllerDelegate.swift; path = ContainerControllerSwift/ContainerControllerDelegate.swift; sourceTree = "<group>"; };
46ACEFC2249021CA00FAAD43 /* ContainerDevice.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ContainerDevice.swift; path = ContainerControllerSwift/ContainerDevice.swift; sourceTree = "<group>"; };
4EEA0EC0D79861379FB2B1874207A67A /* ContainerControllerSwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ContainerControllerSwift-dummy.m"; sourceTree = "<group>"; };
4FAEEAC4BEF190DBB2A8F50DB74A5DC4 /* Pods-ContainerControllerSwift_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ContainerControllerSwift_Example-frameworks.sh"; sourceTree = "<group>"; };
58517EF6A3AF7C037CAFAEF893B5FD32 /* ContainerView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContainerView.swift; path = ContainerControllerSwift/Classes/ContainerView.swift; sourceTree = "<group>"; };
61B7D1C8D4658090366030AD72A5319E /* TableAdapterCell.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TableAdapterCell.swift; sourceTree = "<group>"; };
68C0062FD3719891E8F330E9EFECF398 /* CollectionAdapterCellData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CollectionAdapterCellData.swift; sourceTree = "<group>"; };
725D19ABCCD09ECC9497BC9861F78CEB /* CollectionAdapterView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CollectionAdapterView.swift; sourceTree = "<group>"; };
7F9707ABFCA268A0424CEA24E6B3BF07 /* TableAdapterView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TableAdapterView.swift; sourceTree = "<group>"; };
82F3FE4320C7E1306E9D6353343C0247 /* ContainerControllerSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ContainerControllerSwift.release.xcconfig; sourceTree = "<group>"; };
85EA26F55B7BF1D473B9913B148E7362 /* TableAdapterCellData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TableAdapterCellData.swift; sourceTree = "<group>"; };
88289C16D7EE3DABA481CCA2A23F6606 /* Pods_ContainerControllerSwift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_ContainerControllerSwift_Tests.framework; path = "Pods-ContainerControllerSwift_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; };
88289C16D7EE3DABA481CCA2A23F6606 /* Pods_ContainerControllerSwift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ContainerControllerSwift_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
89922BFA2A740F6B35D8B7F42EC3C4A6 /* Pods-ContainerControllerSwift_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ContainerControllerSwift_Example.release.xcconfig"; sourceTree = "<group>"; };
8F963263D0455468550A56681251AC75 /* TableAdapterItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TableAdapterItem.swift; sourceTree = "<group>"; };
93DC6A6D693893F6D92A457CB7077F20 /* ContainerControllerDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContainerControllerDelegate.swift; path = ContainerControllerSwift/Classes/ContainerControllerDelegate.swift; sourceTree = "<group>"; };
9539933A3B21B34CCDEC71F036AEAE32 /* Pods-ContainerControllerSwift_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ContainerControllerSwift_Tests-Info.plist"; sourceTree = "<group>"; };
9CE04B24AA978789CDFAA23C3FF9D294 /* Pods-ContainerControllerSwift_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ContainerControllerSwift_Tests-dummy.m"; sourceTree = "<group>"; };
9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
A44F5E78625C75314837F442526B9F1F /* Pods-ContainerControllerSwift_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ContainerControllerSwift_Tests.debug.xcconfig"; sourceTree = "<group>"; };
B263243CD7B21C57F4CF756F67802A34 /* CollectionAdapterTypes.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CollectionAdapterTypes.swift; sourceTree = "<group>"; };
B612830BBF07FBF71193F7AB14D4A55C /* ContainerLayout.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContainerLayout.swift; path = ContainerControllerSwift/Classes/ContainerLayout.swift; sourceTree = "<group>"; };
C0064E8B7E1FC56F5599EFD271C67594 /* ContainerControllerSwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = ContainerControllerSwift.modulemap; sourceTree = "<group>"; };
C33ACC72B3C273EE1226274C2EC39CB2 /* CollectionAdapterCell.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CollectionAdapterCell.swift; sourceTree = "<group>"; };
C492E15579178E6EFA4F7D5E4FD837E3 /* Pods-ContainerControllerSwift_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ContainerControllerSwift_Example-dummy.m"; sourceTree = "<group>"; };
CEB1B117C8448E026CC4FB019E982F9A /* Pods-ContainerControllerSwift_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ContainerControllerSwift_Example.debug.xcconfig"; sourceTree = "<group>"; };
D126003824F3EFD9D09B08BFB7DB775D /* ContainerTypes.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContainerTypes.swift; path = ContainerControllerSwift/Classes/ContainerTypes.swift; sourceTree = "<group>"; };
D9CBEFF11CE7640EEA244C26DEB209EE /* ContainerControllerSwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ContainerControllerSwift-umbrella.h"; sourceTree = "<group>"; };
DC2C12BA62CAA053F2D5EACE4EB16224 /* Pods-ContainerControllerSwift_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ContainerControllerSwift_Tests-acknowledgements.plist"; sourceTree = "<group>"; };
E98D59B1404C0A19A30E36781DD5D960 /* Pods-ContainerControllerSwift_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ContainerControllerSwift_Tests.release.xcconfig"; sourceTree = "<group>"; };
E9DE29BE179AF9355EBAE638EC1B822E /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = "<group>"; };
E9DE29BE179AF9355EBAE638EC1B822E /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
F6EBDD597E9CC4639BD0FBF04762179D /* Pods-ContainerControllerSwift_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ContainerControllerSwift_Example-umbrella.h"; sourceTree = "<group>"; };
F976F9D3CEF51D2530649D115424E24B /* ContainerControllerSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = ContainerControllerSwift.framework; path = ContainerControllerSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F976F9D3CEF51D2530649D115424E24B /* ContainerControllerSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ContainerControllerSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FBA1D95B18112DA3CB0425B90D7B3A8E /* ContainerControllerSwift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ContainerControllerSwift-prefix.pch"; sourceTree = "<group>"; };
FD473075F7D1A26E61EFA3687E271F72 /* Pods-ContainerControllerSwift_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ContainerControllerSwift_Tests-acknowledgements.markdown"; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -146,6 +146,32 @@
path = "Target Support Files/Pods-ContainerControllerSwift_Tests";
sourceTree = "<group>";
};
46ACEFB2249021C900FAAD43 /* ContainerTable */ = {
isa = PBXGroup;
children = (
46ACEFB3249021C900FAAD43 /* TableAdapterCellData.swift */,
46ACEFB4249021C900FAAD43 /* TableAdapterItem.swift */,
46ACEFB5249021C900FAAD43 /* TableAdapterCell.swift */,
46ACEFB6249021C900FAAD43 /* TableAdapterView.swift */,
46ACEFB7249021C900FAAD43 /* TableAdapterTypes.swift */,
);
name = ContainerTable;
path = ContainerControllerSwift/ContainerTable;
sourceTree = "<group>";
};
46ACEFBB249021CA00FAAD43 /* ContainerCollection */ = {
isa = PBXGroup;
children = (
46ACEFBC249021CA00FAAD43 /* CollectionAdapterItem.swift */,
46ACEFBD249021CA00FAAD43 /* CollectionAdapterCell.swift */,
46ACEFBE249021CA00FAAD43 /* CollectionAdapterView.swift */,
46ACEFBF249021CA00FAAD43 /* CollectionAdapterCellData.swift */,
46ACEFC0249021CA00FAAD43 /* CollectionAdapterTypes.swift */,
);
name = ContainerCollection;
path = ContainerControllerSwift/ContainerCollection;
sourceTree = "<group>";
};
60BF066757F56B86BB1CBE3EBB71A70A /* Support Files */ = {
isa = PBXGroup;
children = (
@@ -171,19 +197,6 @@
name = Pod;
sourceTree = "<group>";
};
75C3BC37F42922A0297EA13341FC14A5 /* ContainerTable */ = {
isa = PBXGroup;
children = (
61B7D1C8D4658090366030AD72A5319E /* TableAdapterCell.swift */,
85EA26F55B7BF1D473B9913B148E7362 /* TableAdapterCellData.swift */,
8F963263D0455468550A56681251AC75 /* TableAdapterItem.swift */,
42F30761BE5B39DEF63876179511062E /* TableAdapterTypes.swift */,
7F9707ABFCA268A0424CEA24E6B3BF07 /* TableAdapterView.swift */,
);
name = ContainerTable;
path = ContainerControllerSwift/Classes/ContainerTable;
sourceTree = "<group>";
};
8901295C7648943D36EAE366B7418094 /* Development Pods */ = {
isa = PBXGroup;
children = (
@@ -258,14 +271,14 @@
D256ACDF93D75076D78DD3E60EBAD22D /* ContainerControllerSwift */ = {
isa = PBXGroup;
children = (
03BAF19FAFB51F067564E18831202AAA /* ContainerController.swift */,
93DC6A6D693893F6D92A457CB7077F20 /* ContainerControllerDelegate.swift */,
2E3C09C351507E480F3E927FA88C5407 /* ContainerDevice.swift */,
B612830BBF07FBF71193F7AB14D4A55C /* ContainerLayout.swift */,
D126003824F3EFD9D09B08BFB7DB775D /* ContainerTypes.swift */,
58517EF6A3AF7C037CAFAEF893B5FD32 /* ContainerView.swift */,
D91D281040A32D005D832A3C24391E00 /* ContainerCollection */,
75C3BC37F42922A0297EA13341FC14A5 /* ContainerTable */,
46ACEFBB249021CA00FAAD43 /* ContainerCollection */,
46ACEFB2249021C900FAAD43 /* ContainerTable */,
46ACEFB9249021CA00FAAD43 /* ContainerController.swift */,
46ACEFC1249021CA00FAAD43 /* ContainerControllerDelegate.swift */,
46ACEFC2249021CA00FAAD43 /* ContainerDevice.swift */,
46ACEFBA249021CA00FAAD43 /* ContainerLayout.swift */,
46ACEFB1249021C900FAAD43 /* ContainerTypes.swift */,
46ACEFB8249021CA00FAAD43 /* ContainerView.swift */,
6B9DDE4E3E3580720626F12F6B2E2B70 /* Pod */,
60BF066757F56B86BB1CBE3EBB71A70A /* Support Files */,
);
@@ -273,19 +286,6 @@
path = ../..;
sourceTree = "<group>";
};
D91D281040A32D005D832A3C24391E00 /* ContainerCollection */ = {
isa = PBXGroup;
children = (
C33ACC72B3C273EE1226274C2EC39CB2 /* CollectionAdapterCell.swift */,
68C0062FD3719891E8F330E9EFECF398 /* CollectionAdapterCellData.swift */,
470B55831EC533EC0F059EA19543FBFC /* CollectionAdapterItem.swift */,
B263243CD7B21C57F4CF756F67802A34 /* CollectionAdapterTypes.swift */,
725D19ABCCD09ECC9497BC9861F78CEB /* CollectionAdapterView.swift */,
);
name = ContainerCollection;
path = ContainerControllerSwift/Classes/ContainerCollection;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
@@ -379,7 +379,12 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1100;
LastUpgradeCheck = 1100;
LastUpgradeCheck = 1150;
TargetAttributes = {
5DA187609B115AA5A2E3705A1CC63904 = {
LastSwiftMigration = 1150;
};
};
};
buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */;
compatibilityVersion = "Xcode 3.2";
@@ -446,23 +451,23 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
FFB6897259D1C8EE6D4081EC6A6F4FE0 /* CollectionAdapterCell.swift in Sources */,
7F5E524F49DEE108566225BCB243740E /* CollectionAdapterCellData.swift in Sources */,
7439B816859CE33398D03BD6FDC101AB /* CollectionAdapterItem.swift in Sources */,
0063CFA21EB39DD227F5A26CCBD776FE /* CollectionAdapterTypes.swift in Sources */,
F7BFB9949868F7D30C4613435EBC36A2 /* CollectionAdapterView.swift in Sources */,
9E7E4C4EEA1E64DF5665603DF27EF4E1 /* ContainerController.swift in Sources */,
BAA094FD7E96EB9293C2DEB359CA812A /* ContainerControllerDelegate.swift in Sources */,
46ACEFCE249021CA00FAAD43 /* CollectionAdapterView.swift in Sources */,
46ACEFC6249021CA00FAAD43 /* TableAdapterCell.swift in Sources */,
46ACEFD2249021CA00FAAD43 /* ContainerDevice.swift in Sources */,
924134AF593E128FA35D2DB4F482484E /* ContainerControllerSwift-dummy.m in Sources */,
F8CB001039DC6841667D034305F30BA3 /* ContainerDevice.swift in Sources */,
05928A5C6094A1BE2CD7C1B2EAA6CE62 /* ContainerLayout.swift in Sources */,
DFF5A216E0D725EF10644946001B1853 /* ContainerTypes.swift in Sources */,
B8A18AFE081C241B1A3DB5F8C831F3F0 /* ContainerView.swift in Sources */,
4160A8EF2B3B4C6C9FD887C89887103F /* TableAdapterCell.swift in Sources */,
8952421B2B8F8F4DC58FF9BE8368D272 /* TableAdapterCellData.swift in Sources */,
9950146E5D7DF0DBA7B02DA90742A38C /* TableAdapterItem.swift in Sources */,
305D041A2CE0D999FF5B9EBD9E955A69 /* TableAdapterTypes.swift in Sources */,
22681BB596CE6DA17497B7901A54950B /* TableAdapterView.swift in Sources */,
46ACEFCF249021CA00FAAD43 /* CollectionAdapterCellData.swift in Sources */,
46ACEFC5249021CA00FAAD43 /* TableAdapterItem.swift in Sources */,
46ACEFC7249021CA00FAAD43 /* TableAdapterView.swift in Sources */,
46ACEFC9249021CA00FAAD43 /* ContainerView.swift in Sources */,
46ACEFC8249021CA00FAAD43 /* TableAdapterTypes.swift in Sources */,
46ACEFC3249021CA00FAAD43 /* ContainerTypes.swift in Sources */,
46ACEFCD249021CA00FAAD43 /* CollectionAdapterCell.swift in Sources */,
46ACEFD1249021CA00FAAD43 /* ContainerControllerDelegate.swift in Sources */,
46ACEFCC249021CA00FAAD43 /* CollectionAdapterItem.swift in Sources */,
46ACEFC4249021CA00FAAD43 /* TableAdapterCellData.swift in Sources */,
46ACEFD0249021CA00FAAD43 /* CollectionAdapterTypes.swift in Sources */,
46ACEFCA249021CA00FAAD43 /* ContainerController.swift in Sources */,
46ACEFCB249021CA00FAAD43 /* ContainerLayout.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -537,8 +542,7 @@
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
STRIP_INSTALLED_PRODUCT = NO;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 5.0;
SYMROOT = "${SRCROOT}/../build";
};
@@ -549,7 +553,6 @@
baseConfigurationReference = E98D59B1404C0A19A30E36781DD5D960 /* Pods-ContainerControllerSwift_Tests.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
@@ -584,7 +587,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 17B800897A944FAFD0416DC3C8A2B9CD /* ContainerControllerSwift.debug.xcconfig */;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
@@ -606,6 +609,7 @@
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.2.4;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
@@ -618,7 +622,6 @@
baseConfigurationReference = A44F5E78625C75314837F442526B9F1F /* Pods-ContainerControllerSwift_Tests.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
@@ -652,7 +655,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 82F3FE4320C7E1306E9D6353343C0247 /* ContainerControllerSwift.release.xcconfig */;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
@@ -687,7 +690,6 @@
baseConfigurationReference = 89922BFA2A740F6B35D8B7F42EC3C4A6 /* Pods-ContainerControllerSwift_Example.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
@@ -787,7 +789,6 @@
baseConfigurationReference = CEB1B117C8448E026CC4FB019E982F9A /* Pods-ContainerControllerSwift_Example.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
+421 -10
View File
@@ -1,17 +1,43 @@
# ContainerControllerSwift
[![CI Status](https://img.shields.io/travis/rustamburger@gmail.com/ContainerControllerSwift.svg?style=flat)](https://travis-ci.org/rustamburger@gmail.com/ContainerControllerSwift)
[![CI Status](https://img.shields.io/travis/github/mrustaa/ContainerController.svg?style=flat)](https://travis-ci.org/github/mrustaa/ContainerController)
[![Version](https://img.shields.io/cocoapods/v/ContainerControllerSwift.svg?style=flat)](https://cocoapods.org/pods/ContainerControllerSwift)
[![License](https://img.shields.io/cocoapods/l/ContainerControllerSwift.svg?style=flat)](https://cocoapods.org/pods/ContainerControllerSwift)
[![Platform](https://img.shields.io/cocoapods/p/ContainerControllerSwift.svg?style=flat)](https://cocoapods.org/pods/ContainerControllerSwift)
[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat)](https://swift.org/)
[![Swift 5.1](https://img.shields.io/badge/Swift-5.1-orange.svg?style=flat)](https://swift.org/)
## Example
# ContainerController
To run the example project, clone the repo, and run `pod install` from the Example directory first.
This is a swipe-panel from application: https://www.apple.com/ios/maps/
## Requirements
<!-- TOC -->
## Installation
- [Getting Started](#getting-started)
- [Delegate ScrollView to self](#delegate-scrollview-to-self)
- [Action](#action)
- [Move position with an animation](#move-position-with-an-animation)
- [Adding custom views in ContainerController](#adding-custom-views-in-containercontroller)
- [Add `ScrollView`](#add-scrollview)
- [Add `HeaderView`](#add-headerview)
- [Add `FooterView`](#add-footerview)
- [Settings](#settings)
- [Layout](#layout)
- [Customize the layout with create subclass ContainerLayout on initialization](#customize-the-layout-with-create-subclass-containerlayout-on-initialization)
- [Or create object ContainerLayout](#or-create-object-containerlayout)
- [Change settings right away](#change-settings-right-away)
- [ContainerView](#containerview)
- [Use a ready-made solution](#use-a-ready-made-solution)
- [Add your changes](#add-your-changes)
- [More details](#more-details)
- [Change positions on screen Top Middle Bottom](#change-positions-on-screen-top-middle-bottom)
- [Customize indentations for View](#customize-indentations-for-view)
- [Customize for landscape orientation](#customize-for-landscape-orientation)
- [Parameters for control footerView](#parameters-for-control-footerview)
- [ContainerControllerDelegate](#containercontrollerdelegate)
- [License](#license)
<!-- /TOC -->
## Installation CocoaPods
ContainerControllerSwift is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
@@ -20,10 +46,395 @@ it, simply add the following line to your Podfile:
pod 'ContainerControllerSwift'
```
## Author
## Getting Started
rustamburger@gmail.com, rustamburger@gmail.com
```swift
import UIKit
class ViewController: UIViewController, ContainerControllerDelegate {
var container: ContainerController!
override func viewDidLoad() {
super.viewDidLoad()
// Create ContainerController Layout object
let layout = ContainerLayout()
layout.startPosition = .hide
layout.backgroundShadowShow = true
layout.positions = ContainerPosition(top: 70, middle: 250, bottom: 70)
// Create ContainerController object, along with the container.view
// Pass the current UIViewController
container = ContainerController(addTo: self, layout: layout)
container.view.cornerRadius = 15
container.view.addShadow()
// Create subclass scrollView
let tableView = UITableView()
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell")
tableView.delegate = self
tableView.dataSource = self
// Add scrollView to container
container.add(scrollView: tableView)
// Finishing settings ContainerController,
// Animated move position Top
container.move(type: .top)
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
// Remove the subviews ContainerController
container.remove()
container = nil
}
}
```
## Delegate ScrollView to self
#### ☝️ If you implement delegate ScrollView (TableView, CollectionView, TextView) to `self`, then you need to call 4 functions in ContainerController
```swift
extension ViewController: UIScrollViewDelegate {
func scrollViewDidScroll(_ scrollView: UIScrollView) {
container.scrollViewDidScroll(scrollView)
}
func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
container.scrollViewWillBeginDragging(scrollView)
}
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
container.scrollViewDidEndDecelerating(scrollView)
}
func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
container.scrollViewDidEndDragging(scrollView, willDecelerate: decelerate)
}
}
extension ViewController: UITableViewDelegate {
...
}
extension ViewController: UITableViewDataSource {
...
}
```
## Action
### Move position with an animation
```swift
container.move(type: .top)
container.move(type: .middle)
container.move(type: .bottom)
```
## Adding custom views in ContainerController
### Add `ScrollView`
```swift
let tableView = UITableView()
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell")
tableView.backgroundColor = .clear
tableView.tableFooterView = UIView()
tableView.delegate = self
tableView.dataSource = self
// Add scrollView to container
container.add(scrollView: tableView)
```
### Add `HeaderView`
```swift
let headerView = ExampleHeaderGripView()
headerView.height = 20
container.add(headerView: headerView)
```
### Add `FooterView`
```swift
let tabBarView = HeaderTabBarView()
tabBarView.height = 49.0
container.add(footerView: tabBarView)
```
## Settings
### Layout
#### Customize the layout with create subclass `ContainerLayout` on initialization
```swift
class NewContainerLayout: ContainerLayout {
override init() {
super.init()
// Initialization start position.
startPosition = .hide
// Disables any moving with gestures.
movingEnabled = true
// Sets the new value for positions of animated movement (top, middle, bottom).
positions = ContainerPosition(top: 70, middle: 250, bottom: 70)
// Sets insets container.view (left, right).
insets = ContainerInsets(right: 20, left: 20)
}
}
class ViewController: UIViewController {
var container: ContainerController!
override func viewDidLoad() {
super.viewDidLoad()
container = ContainerController(addTo: self, layout: NewContainerLayout())
container.move(type: .top)
}
}
```
#### Or create object `ContainerLayout`
```swift
override func viewDidLoad() {
super.viewDidLoad()
// Create ContainerController Layout object
let layout = ContainerLayout()
layout.startPosition = .hide
layout.backgroundShadowShow = true
layout.positions = ContainerPosition(top: 70, middle: 250, bottom: 70)
container = ContainerController(addTo: self, layout: layout)
}
```
### Change settings right away
```swift
// Properties
container.set(movingEnabled: true)
container.set(trackingPosition: false)
container.set(footerPadding: 100)
// Add ScrollInsets Top/Bottom
container.set(scrollIndicatorTop: 5) // ↓
container.set(scrollIndicatorBottom: 5) // ↑
// Positions
container.set(top: 70) // ↓
container.set(middle: 250) // ↑
container.set(bottom: 80) // ↑
// Middle Enable/Disable
container.set(middle: 250)
container.set(middle: nil)
// Background Shadow
container.set(backgroundShadowShow: true)
// Insets View
container.set(left: 5) // →
container.set(right: 5) // ←
// Landscape params
container.setLandscape(top: 30)
container.setLandscape(middle: 150)
container.setLandscape(bottom: 70)
container.setLandscape(middle: nil)
container.setLandscape(backgroundShadowShow: false)
container.setLandscape(left: 10)
container.setLandscape(right: 100)
```
## ContainerView
ContainerView is generated automatically when you create ContainerController
Use a ready-made solution to change the radius, add shadow, and blur.
### Use a ready-made solution
```swift
// Change cornerRadius global for all subviews
container.view.cornerRadius = 15
// Add layer shadow
container.view.addShadow(opacity: 0.1)
// Add background blur UIVisualEffectView
container.view.addBlur(style: .dark)
```
#### Add your changes
```swift
// Add custom shadow
let layer = container.view.layer
layer.shadowOpacity = 0.5
layer.shadowColor = UIColor.red.cgColor
layer.shadowOffset = CGSize(width: 1, height: 4)
layer.shadowRadius = 5
// Add view in container.view
let viewRed = UIView(frame: CGRect(x: 50, y: 50, width: 50, height: 50))
viewRed.backgroundColor = .systemRed
container.view.addSubview(viewRed)
// Add view under scrollView container.view
let viewGreen = UIView(frame: CGRect(x: 25, y: 25, width: 50, height: 50))
viewGreen.backgroundColor = .systemGreen
container.view.insertSubview(viewGreen, at: 0)
```
### More details
#### Change positions on screen Top Middle Bottom
```swift
// These parameters set the new position value.
container.layout.positions = ContainerPosition(top: 70, middle: 250, bottom: 70)
// Change settings right away
container.set(top: 70) // ↓
container.set(middle: 250) // ↑
container.set(bottom: 80) // ↑
```
#### Customize indentations for View
```swift
// Sets insets container.view (left, right).
container.layout.insets = ContainerInsets(right: 20, left: 20)
container.layout.landscapeInsets = ContainerInsets(right: 20, left: 100)
// Change settings right away
container.set(left: 5) // →
container.set(right: 5) // ←
container.setLandscape(left: 10)
container.setLandscape(right: 100)
```
#### Customize for landscape orientation
```swift
// Sets the background shadow under container. (Default: backgroundShadowShow).
container.layout.landscapeBackgroundShadowShow = false
// Sets the new value for positions of animated movement (top, middle, bottom). (Default: positions).
container.layout.landscapePositions = ContainerPosition(top: 20, middle: 150, bottom: 70)
// Sets insets container.view (left, right). (Default: insets).
container.layout.landscapeInsets = ContainerInsets(right: 20, left: 100)
// Change settings right away
container.setLandscape(top: 30)
container.setLandscape(middle: 150)
container.setLandscape(bottom: 70)
container.setLandscape(middle: nil)
container.setLandscape(backgroundShadowShow: false)
container.setLandscape(left: 10)
container.setLandscape(right: 100)
```
#### Parameters for control footerView
```swift
// Padding-top from container.view, if headerView is added, then its + height is summed.
container.layout.footerPadding = 100
// Tracking position container.view during animated movement.
container.layout.trackingPosition = false
// Change settings right away
container.set(footerPadding: 100)
container.set(trackingPosition: false)
```
## ContainerControllerDelegate
```swift
class ViewController: UIViewController, ContainerControllerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
let container = ContainerController(addTo: self, layout: layout)
container.delegate = self
}
}
/// Reports rotation and orientation changes
func containerControllerRotation(_ containerController: ContainerController) {
...
}
/// Reports a click on the background shadow
func containerControllerShadowClick(_ containerController: ContainerController) {
...
}
/// Reports the changes current position of the container, after its use
func containerControllerMove(_ containerController: ContainerController, position: CGFloat, type: ContainerMoveType, animation: Bool) {
...
}
```
## License
ContainerControllerSwift is available under the MIT license. See the LICENSE file for more info.
ContainerController is available under the MIT license. See the LICENSE file for more info.