├── .gitignore ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── DTOverlayController.podspec ├── DTOverlayController ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── DTOverlayController.swift │ ├── DTOverlayPresentationController.swift │ ├── DTScrollViewRepresentable.swift │ ├── InteractiveTransition.swift │ └── TransitioningAnimator.swift ├── Example ├── DTOverlayController.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── DTOverlayController-Example.xcscheme ├── DTOverlayController.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── DTOverlayController │ ├── AppDelegate.swift │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── City │ │ ├── Cells │ │ │ ├── AlternativeCityTableViewCell.swift │ │ │ ├── AlternativeCityTableViewCell.xib │ │ │ ├── CityTableViewCell.swift │ │ │ └── CityTableViewCell.xib │ │ ├── City.swift │ │ ├── CityDetailViewController.swift │ │ └── CityListViewController.swift │ ├── ExampleViewController.swift │ ├── Images.xcassets │ │ ├── Amsterdam.imageset │ │ │ ├── Amsterdam.jpg │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Bangkok.imageset │ │ │ ├── Bangkok.jpg │ │ │ └── Contents.json │ │ ├── Barcelona.imageset │ │ │ ├── Barcelona.jpg │ │ │ └── Contents.json │ │ ├── Berlin.imageset │ │ │ ├── Berlin.jpg │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── Lisbon.imageset │ │ │ ├── Contents.json │ │ │ └── Lisbon.jpg │ │ ├── London.imageset │ │ │ ├── Contents.json │ │ │ └── London.jpg │ │ ├── NewYork.imageset │ │ │ ├── Contents.json │ │ │ └── New York.jpg │ │ ├── SanFrancisco.imageset │ │ │ ├── Contents.json │ │ │ └── San Francisco.jpg │ │ ├── Stockholm.imageset │ │ │ ├── Contents.json │ │ │ └── Stockholm.jpg │ │ └── Tokyo.imageset │ │ │ ├── Contents.json │ │ │ └── Tokyo.jpg │ ├── Info.plist │ └── Main.storyboard ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── DTOverlayController.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── DTOverlayController │ │ ├── DTOverlayController-Info.plist │ │ ├── DTOverlayController-dummy.m │ │ ├── DTOverlayController-prefix.pch │ │ ├── DTOverlayController-umbrella.h │ │ ├── DTOverlayController.modulemap │ │ └── DTOverlayController.xcconfig │ │ ├── Pods-DTOverlayController_Example │ │ ├── Pods-DTOverlayController_Example-Info.plist │ │ ├── Pods-DTOverlayController_Example-acknowledgements.markdown │ │ ├── Pods-DTOverlayController_Example-acknowledgements.plist │ │ ├── Pods-DTOverlayController_Example-dummy.m │ │ ├── Pods-DTOverlayController_Example-frameworks.sh │ │ ├── Pods-DTOverlayController_Example-umbrella.h │ │ ├── Pods-DTOverlayController_Example.debug.xcconfig │ │ ├── Pods-DTOverlayController_Example.modulemap │ │ └── Pods-DTOverlayController_Example.release.xcconfig │ │ └── Pods-DTOverlayController_Tests │ │ ├── Pods-DTOverlayController_Tests-Info.plist │ │ ├── Pods-DTOverlayController_Tests-acknowledgements.markdown │ │ ├── Pods-DTOverlayController_Tests-acknowledgements.plist │ │ ├── Pods-DTOverlayController_Tests-dummy.m │ │ ├── Pods-DTOverlayController_Tests-umbrella.h │ │ ├── Pods-DTOverlayController_Tests.debug.xcconfig │ │ ├── Pods-DTOverlayController_Tests.modulemap │ │ └── Pods-DTOverlayController_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── Package.swift ├── README.md ├── Screenshots ├── screenshot.gif └── screenshot.png ├── _Pods.xcodeproj ├── setup ├── ConfigureiOS.rb ├── MessageBank.rb └── test_examples │ ├── quick.swift │ └── xctest.m └── templates ├── ios └── Example │ ├── PROJECT │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── CPDAppDelegate.h │ ├── CPDAppDelegate.m │ ├── CPDViewController.m │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── PROJECT-Info.plist │ ├── PROJECT-Prefix.pch │ └── main.m │ ├── Podfile │ └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings └── macos-swift └── Example ├── PROJECT ├── Info.plist ├── PROJECT.entitlements └── ViewController.swift └── Tests ├── Info.plist └── Tests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/DTOverlayController.xcworkspace -scheme DTOverlayController-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # CocoaPods Code of Conduct 2 | 3 | CocoaPods strongly values contributors from anywhere, regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. As a result, the CocoaPods team has agreed to and enforces this code of conduct in order to provide a harassment-free experience for everyone who participates in the development of CocoaPods. 4 | 5 | ### Summary 6 | 7 | Harassment in code and discussion or violation of physical boundaries is completely unacceptable anywhere in CocoaPods’ codebases, issue trackers, Slack, Campfire, mailing lists, meetups, and other events. Violators will be warned and then blocked or banned by the core team at or before the 3rd violation. 8 | 9 | ### In detail 10 | 11 | Harassment includes offensive verbal comments related to gender, sexual orientation, disability, physical appearance, body size, race, ethnicity, religion, sexual images, deliberate intimidation, stalking, sustained disruption, and unwelcome sexual attention. 12 | 13 | Individuals asked to stop any harassing behavior are expected to comply immediately. 14 | 15 | Maintainers, including the core team, are also subject to the anti-harassment policy. 16 | 17 | If anyone engages in harassing behavior, including maintainers, we may take appropriate action, up to and including warning the offender, deletion of comments, removal from the project’s codebase and communication systems, and escalation to Github support. 18 | 19 | If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a member of [the core team](https://cocoapods.org/about) or [email the core team](mailto:info@cocoapods.org) immediately. 20 | 21 | We expect everyone to follow these rules anywhere in the CocoaPods project’s codebases, issue trackers, IRC channel, group chat, and mailing lists. 22 | 23 | This code of conduct applies both within project spaces and in public spaces when an individual is actively representing the project or its community. Due to their strong association with the project, core contributors are always seen as actively representing it. 24 | 25 | Finally, don't forget that it is human to make mistakes! We all do. Let’s work together to help each other, resolve issues, and learn from the mistakes that we will all inevitably make from time to time. 26 | 27 | ### Thanks 28 | 29 | Thanks to the [Bundler Code of Conduct](https://github.com/bundler/bundler/blob/e3ce14f5ecd9b729338435c8689553ef209d83aa/CODE_OF_CONDUCT.md), [JSConf Code of Conduct](https://jsconf.com/codeofconduct.html), [Fedora Code of Conduct](https://fedoraproject.org/code-of-conduct), and [Contributor Covenant](https://www.contributor-covenant.org), version 1.2.0 for inspiration and ideas. 30 | 31 | ### License 32 | 33 |

34 | To the extent possible under law, The CocoaPods Team has waived all copyright and related or neighboring rights to the CocoaPods Code of Conduct. This work is published from the United States. 35 |
36 |
37 | 38 | CC0 39 | 40 |

41 | -------------------------------------------------------------------------------- /DTOverlayController.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint DTOverlayController.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'DTOverlayController' 11 | s.version = '1.0.2' 12 | s.summary = 'A fully customizable lay over view controller container, inspired by Facebook lay over controller.' 13 | s.swift_version = '5.0' 14 | 15 | # This description is used to generate tags and improve search results. 16 | # * Think: What does it do? Why did you write it? What is the focus? 17 | # * Try to keep it short, snappy and to the point. 18 | # * Write the description between the DESC delimiters below. 19 | # * Finally, don't worry about the indent, CocoaPods strips it! 20 | 21 | s.description = <<-DESC 22 | A fully customizable lay over view controller container, inspired by Facebook lay over controller. DTOverlayController is extremely easy to use and customize. 23 | DESC 24 | 25 | s.homepage = 'https://github.com/tungvoduc/DTOverlayController' 26 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 27 | s.license = { :type => 'MIT', :file => 'LICENSE' } 28 | s.author = { 'tungvoduc' => 'tung98.dn@gmail.com' } 29 | s.source = { :git => 'https://github.com/tungvoduc/DTOverlayController.git', :tag => s.version.to_s } 30 | s.ios.deployment_target = '9.0' 31 | s.source_files = 'DTOverlayController/Classes/**/*' 32 | end 33 | -------------------------------------------------------------------------------- /DTOverlayController/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/DTOverlayController/Assets/.gitkeep -------------------------------------------------------------------------------- /DTOverlayController/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/DTOverlayController/Classes/.gitkeep -------------------------------------------------------------------------------- /DTOverlayController/Classes/DTOverlayController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DTOverlayController.swift 3 | // DTOverlayController 4 | // 5 | // Created by Tung Vo on 9.6.2019. 6 | // 7 | 8 | import UIKit 9 | 10 | open class DTOverlayController: UIViewController, UIViewControllerTransitioningDelegate { 11 | 12 | /// Child view controller to be laid over 13 | open var viewController: UIViewController 14 | 15 | /// Top left and top right corner radius of `viewController`'s view. 16 | /// Default value is 10. 17 | public var overlayViewCornerRadius: CGFloat = 10 { 18 | didSet { 19 | if viewIfLoaded != nil { 20 | updateCornerRadius() 21 | } 22 | } 23 | } 24 | 25 | /// Indicates if pan gesture is enabled on view controller's view 26 | /// With pan gesture disabled, view controller cannot be dismissed by dragging down view controller. 27 | /// Default value is `true`. 28 | public var isPanGestureEnabled: Bool = true { 29 | didSet { 30 | if viewIfLoaded != nil { 31 | if isPanGestureEnabled { 32 | interactiveTransition.enablePanGesureOnViewController() 33 | } else { 34 | interactiveTransition.disablePanGesureOnViewController() 35 | } 36 | } 37 | } 38 | } 39 | 40 | /// Height of `viewController`'s view inside DTOverlayController. 41 | public var overlayHeight: DTLayOverHeight 42 | 43 | /// Threshold progress for lay over view controller to be totally dismissed. 44 | public var dismissableProgress: CGFloat { 45 | didSet { 46 | interactiveTransition.dismissableProgress = dismissableProgress 47 | } 48 | } 49 | 50 | /// Indicates if the top handle should be hidden or not. 51 | /// Default value is `false`. 52 | public var isHandleHidden: Bool = false { 53 | didSet { 54 | handle.isHidden = isHandleHidden 55 | } 56 | } 57 | 58 | /// Space on top of `viewController` 59 | /// Default value is 30. 60 | public var handleVerticalSpace: CGFloat = 30 { 61 | didSet { 62 | viewIfLoaded?.setNeedsLayout() 63 | } 64 | } 65 | 66 | /// Handle's size 67 | public var handleSize: CGSize = CGSize(width: 60, height: 6) { 68 | didSet { 69 | viewIfLoaded?.setNeedsLayout() 70 | handle.layer.cornerRadius = handleSize.height / 2 71 | } 72 | } 73 | 74 | private lazy var handle: UIView = { 75 | let view = UIView() 76 | view.backgroundColor = UIColor(white: 0.8, alpha: 1.0) 77 | view.layer.masksToBounds = true 78 | return view 79 | }() 80 | 81 | private lazy var interactiveTransition: InteractiveTransition = InteractiveTransition(viewController: self, dismissableProgress: dismissableProgress) 82 | 83 | public init(viewController: UIViewController, overlayHeight: DTLayOverHeight = .static(700), dismissableProgress: CGFloat = 0.4) { 84 | self.viewController = viewController 85 | self.overlayHeight = overlayHeight 86 | self.dismissableProgress = dismissableProgress 87 | 88 | super.init(nibName: nil, bundle: nil) 89 | modalPresentationStyle = .custom 90 | transitioningDelegate = self 91 | 92 | addChild(viewController) 93 | viewController.didMove(toParent: self) 94 | } 95 | 96 | required public init?(coder aDecoder: NSCoder) { 97 | fatalError("init(coder:) has not been implemented") 98 | } 99 | 100 | override open func viewDidLoad() { 101 | super.viewDidLoad() 102 | 103 | view.addSubview(handle) 104 | updateCornerRadius() 105 | viewController.view.layer.masksToBounds = true 106 | handle.layer.cornerRadius = handleSize.height / 2 107 | 108 | if isPanGestureEnabled { 109 | interactiveTransition.enablePanGesureOnViewController() 110 | } 111 | 112 | interactiveTransition.scrollViewRepresentable = viewController as? DTScrollViewRepresentable 113 | view.addSubview(viewController.view) 114 | 115 | observeScrollViewUpdate(with: viewController) 116 | } 117 | 118 | open override func viewWillLayoutSubviews() { 119 | super.viewWillLayoutSubviews() 120 | 121 | let size = view.bounds.size 122 | handle.frame = CGRect(origin: CGPoint(x: (size.width - handleSize.width) / 2, y: (handleVerticalSpace - handleSize.height) / 2), size: handleSize) 123 | viewController.view.frame = CGRect(origin: CGPoint(x: 0, y: handleVerticalSpace), size: CGSize(width: size.width, height: size.height - handleVerticalSpace)) 124 | } 125 | 126 | private func updateCornerRadius() { 127 | if #available(iOS 11.0, *) { 128 | viewController.view.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner] 129 | viewController.view.layer.cornerRadius = overlayViewCornerRadius 130 | } else { 131 | // Fallback on earlier versions 132 | addCornerRadiusMask() 133 | } 134 | } 135 | 136 | private func addCornerRadiusMask() { 137 | let path = UIBezierPath(roundedRect: viewController.view.bounds, byRoundingCorners: [.topLeft, .topRight], cornerRadii: CGSize(width: overlayViewCornerRadius, height: overlayViewCornerRadius)) 138 | let mask = CAShapeLayer() 139 | mask.path = path.cgPath 140 | viewController.view.layer.mask = mask 141 | } 142 | 143 | /// This method will recursively check rootViewController and its chilren 144 | /// whether or not they are `UITabbarController` or `UINavigationController` 145 | /// and then set `delegate`. 146 | /// Its purpose is to notify when container view controller updates it visible child 147 | /// view controller, and thus reacts to `rootScrollView` changes. 148 | /// - SeeAlso: `notifyRootScrollViewDidChange` 149 | open func observeScrollViewUpdate(with rootViewController: UIViewController) { 150 | if let navigationController = rootViewController as? UINavigationController { 151 | if navigationController.delegate != nil { 152 | 153 | } else { 154 | navigationController.delegate = self 155 | } 156 | } else if let tabbarController = rootViewController as? UITabBarController { 157 | if tabbarController.delegate != nil { 158 | 159 | } else { 160 | tabbarController.delegate = self 161 | } 162 | } 163 | 164 | for child in rootViewController.children { 165 | observeScrollViewUpdate(with: child) 166 | } 167 | } 168 | 169 | // MARK: - UIViewControllerTransitioningDelegate 170 | open func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? { 171 | return transitioningAnimator() 172 | } 173 | 174 | open func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? { 175 | return transitioningAnimator() 176 | } 177 | 178 | private func transitioningAnimator() -> TransitioningAnimator { 179 | if interactiveTransition.interactionInProgress { 180 | return TransitioningAnimator(duration: 1.0) 181 | } 182 | return TransitioningAnimator() 183 | } 184 | 185 | open func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? { 186 | return DTOverlayPresentationController(presentedViewController: presented, presenting: presenting, overlayHeight: overlayHeight) 187 | } 188 | 189 | open func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? { 190 | guard interactiveTransition.interactionInProgress else { 191 | return nil 192 | } 193 | 194 | return interactiveTransition 195 | } 196 | 197 | /// Notify interactiveTransition update of the intefering scrollView 198 | /// You might need to call this method if `viewController` is a container controller and it updates its visible child view controller. 199 | public func notifyRootScrollViewDidChange() { 200 | interactiveTransition.updateActiveScrollView() 201 | } 202 | } 203 | 204 | // MARK: - UINavigationControllerDelegate 205 | extension DTOverlayController: UINavigationControllerDelegate { 206 | open func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) { 207 | notifyRootScrollViewDidChange() 208 | } 209 | } 210 | 211 | // MARK: - UITabBarControllerDelegate 212 | extension DTOverlayController: UITabBarControllerDelegate { 213 | open func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) { 214 | notifyRootScrollViewDidChange() 215 | } 216 | } 217 | 218 | // MARK: - UIViewController 219 | extension UIViewController { 220 | public var overlayController: DTOverlayController? { 221 | var parentViewController = parent 222 | while parentViewController != nil { 223 | if let overlayController = parentViewController as? DTOverlayController { 224 | return overlayController 225 | } else { 226 | parentViewController = parentViewController?.parent 227 | } 228 | } 229 | 230 | return nil 231 | } 232 | } 233 | -------------------------------------------------------------------------------- /DTOverlayController/Classes/DTOverlayPresentationController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DTLayOverPresentationController.swift 3 | // DTOverlayController 4 | // 5 | // Created by Tung Vo on 9.6.2019. 6 | // 7 | 8 | import UIKit 9 | 10 | /// Represent height inside DTOverlayController 11 | /// 12 | /// - `static`: fixed height in point 13 | /// - dynamic: height ratio to parent controller. Must be between 0 and 1. 14 | /// - inset: fixed top inset from parent controller. 15 | public enum DTLayOverHeight { 16 | case `static`(CGFloat) 17 | case dynamic(CGFloat) 18 | case inset(CGFloat) 19 | } 20 | 21 | /// 22 | open class DTOverlayPresentationController: UIPresentationController { 23 | 24 | var overlayHeight: DTLayOverHeight 25 | 26 | public lazy var dimminView: UIView = { 27 | let view = UIView(frame: .zero) 28 | view.backgroundColor = UIColor.black 29 | return view 30 | }() 31 | 32 | public var bar: UIView = { 33 | let view = UIView(frame: .zero) 34 | view.backgroundColor = UIColor(white: 0.8, alpha: 1.0) 35 | return view 36 | }() 37 | 38 | init(presentedViewController: UIViewController, presenting: UIViewController?, overlayHeight: DTLayOverHeight) { 39 | self.overlayHeight = overlayHeight 40 | 41 | super.init(presentedViewController: presentedViewController, presenting: presenting) 42 | addTapGestureToDimmingView() 43 | } 44 | 45 | override open func presentationTransitionWillBegin() { 46 | containerView?.addSubview(dimminView) 47 | containerView?.addSubview(presentedViewController.view) 48 | 49 | let transitionCoordinator = presentingViewController.transitionCoordinator 50 | 51 | dimminView.alpha = 0 52 | transitionCoordinator?.animate(alongsideTransition: { _ in 53 | self.dimminView.alpha = 0.85 54 | }, completion: nil) 55 | } 56 | 57 | override open func dismissalTransitionWillBegin() { 58 | let transitionCoordinator = presentingViewController.transitionCoordinator 59 | transitionCoordinator?.animate(alongsideTransition: { _ in 60 | self.dimminView.alpha = 0.0 61 | }, completion: nil) 62 | } 63 | 64 | override open func dismissalTransitionDidEnd(_ completed: Bool) { 65 | if completed { 66 | dimminView.removeFromSuperview() 67 | } 68 | } 69 | 70 | override open func size(forChildContentContainer container: UIContentContainer, withParentContainerSize parentSize: CGSize) -> CGSize { 71 | return presentedViewSize(withContainerSize: parentSize) 72 | } 73 | 74 | override open func containerViewWillLayoutSubviews() { 75 | super.containerViewWillLayoutSubviews() 76 | 77 | let bounds = containerView!.bounds 78 | dimminView.frame = bounds 79 | 80 | let presentedSize = presentedViewSize(withContainerSize: containerView!.bounds.size) 81 | presentedViewController.view.frame = CGRect(origin: CGPoint(x: 0, y: bounds.height - presentedSize.height), size: presentedSize) 82 | } 83 | 84 | private func presentedViewSize(withContainerSize parentSize: CGSize) -> CGSize { 85 | let height: CGFloat 86 | 87 | switch overlayHeight { 88 | case let .dynamic(ratio): 89 | height = ratio * parentSize.height 90 | case let .static(fixedHeight): 91 | height = fixedHeight 92 | case let .inset(topInset): 93 | height = parentSize.height - topInset 94 | } 95 | 96 | return CGSize(width: parentSize.width, height: height) 97 | } 98 | 99 | private func addTapGestureToDimmingView() { 100 | let tapGesture = UITapGestureRecognizer(target: self, action: #selector(didTap(_:))) 101 | dimminView.addGestureRecognizer(tapGesture) 102 | dimminView.isUserInteractionEnabled = true 103 | } 104 | 105 | @objc private func didTap(_ gestureRecognizer: UITapGestureRecognizer) { 106 | presentedViewController.dismiss(animated: true, completion: nil) 107 | } 108 | 109 | } 110 | -------------------------------------------------------------------------------- /DTOverlayController/Classes/DTScrollViewRepresentable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DTScrollViewRepresentable.swift 3 | // DTOverlayController 4 | // 5 | // Created by Tung Vo on 16.6.2019. 6 | // 7 | 8 | import Foundation 9 | 10 | /** 11 | Define the root scroll view that can intefere with DTOverlayController's pan gesture. 12 | This protocol is usually conformed by child view controller of DTOverlayController. 13 | In case the child view controller is a container controller (but neither UITabbarController nor UINavigationController), you might need to call `notifyRootScrollViewDidChange` when updating its childcontrollers' appearance. 14 | 15 | - SeeAlso: `notifyRootScrollViewDidChange` 16 | */ 17 | @objc public protocol DTScrollViewRepresentable: NSObjectProtocol { 18 | var rootScrollView: UIScrollView? { get } 19 | } 20 | 21 | // MARK: - UINavigationController 22 | extension UINavigationController: DTScrollViewRepresentable { 23 | @objc open var rootScrollView: UIScrollView? { 24 | guard let scrollViewRepresentable = topViewController as? DTScrollViewRepresentable else { 25 | return nil 26 | } 27 | 28 | return scrollViewRepresentable.rootScrollView 29 | } 30 | } 31 | 32 | // MARK: - UITabBarController 33 | extension UITabBarController: DTScrollViewRepresentable { 34 | @objc open var rootScrollView: UIScrollView? { 35 | guard let scrollViewRepresentable = viewControllers?[selectedIndex] as? DTScrollViewRepresentable else { 36 | return nil 37 | } 38 | 39 | return scrollViewRepresentable.rootScrollView 40 | } 41 | } 42 | 43 | // MARK: - UITableViewController 44 | extension UITableViewController: DTScrollViewRepresentable { 45 | @objc open var rootScrollView: UIScrollView? { 46 | return tableView 47 | } 48 | } 49 | 50 | // MARK: - UICollectionViewController 51 | extension UICollectionViewController: DTScrollViewRepresentable { 52 | @objc open var rootScrollView: UIScrollView? { 53 | return collectionView 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /DTOverlayController/Classes/InteractiveTransition.swift: -------------------------------------------------------------------------------- 1 | // 2 | // InteractiveTransition.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 9.6.2019. 6 | // 7 | 8 | import UIKit 9 | 10 | class InteractiveTransition: UIPercentDrivenInteractiveTransition { 11 | 12 | var dismissableProgress: CGFloat 13 | 14 | weak var scrollViewRepresentable: DTScrollViewRepresentable? { 15 | didSet { 16 | updateActiveScrollView() 17 | } 18 | } 19 | 20 | var interactionInProgress = false 21 | 22 | private var shouldCompleteTransition = false 23 | 24 | private weak var viewController: UIViewController! 25 | 26 | lazy var panGestureRecognizer: UIPanGestureRecognizer = { 27 | let gesture = UIPanGestureRecognizer(target: self, action: #selector(handleGesture(_:))) 28 | gesture.delegate = self 29 | return gesture 30 | }() 31 | 32 | init(viewController: UIViewController, dismissableProgress: CGFloat) { 33 | self.dismissableProgress = dismissableProgress 34 | 35 | super.init() 36 | self.viewController = viewController 37 | } 38 | 39 | func enablePanGesureOnViewController() { 40 | viewController.view.addGestureRecognizer(panGestureRecognizer) 41 | } 42 | 43 | func disablePanGesureOnViewController() { 44 | viewController.view.removeGestureRecognizer(panGestureRecognizer) 45 | } 46 | 47 | func updateActiveScrollView() { 48 | scrollViewRepresentable?.rootScrollView?.panGestureRecognizer.require(toFail: panGestureRecognizer) 49 | } 50 | 51 | @objc func handleGesture(_ gestureRecognizer: UIPanGestureRecognizer) { 52 | let translation = gestureRecognizer.translation(in: gestureRecognizer.view!.superview!) 53 | var progress = translation.y / gestureRecognizer.view!.frame.height 54 | progress = CGFloat(min(max(progress, 0.0), 1.0)) 55 | 56 | switch gestureRecognizer.state { 57 | case .began: 58 | interactionInProgress = true 59 | viewController.dismiss(animated: true, completion: nil) 60 | case .changed: 61 | shouldCompleteTransition = progress > (1 - dismissableProgress) 62 | print(progress) 63 | update(progress) 64 | case .cancelled: 65 | interactionInProgress = false 66 | cancel() 67 | case .ended: 68 | interactionInProgress = false 69 | if shouldCompleteTransition { 70 | finish() 71 | } else { 72 | cancel() 73 | } 74 | default: 75 | break 76 | } 77 | } 78 | 79 | } 80 | 81 | // MARK: - UIGestureRecognizerDelegate 82 | extension InteractiveTransition: UIGestureRecognizerDelegate { 83 | 84 | func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { 85 | return true 86 | } 87 | 88 | func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { 89 | guard let scrollView = scrollViewRepresentable?.rootScrollView, let gestureRecognizer = gestureRecognizer as? UIPanGestureRecognizer else { 90 | return true 91 | } 92 | 93 | let topContentOffset: CGFloat 94 | 95 | if #available(iOS 11.0, *) { 96 | topContentOffset = -scrollView.adjustedContentInset.top 97 | } else { 98 | topContentOffset = 0 99 | } 100 | 101 | if scrollView.contentOffset.y == topContentOffset { 102 | return gestureRecognizer.velocity(in: gestureRecognizer.view!).y > 0 103 | } 104 | 105 | return scrollView.contentOffset.y < topContentOffset 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /DTOverlayController/Classes/TransitioningAnimator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TransitioningAnimator.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 9.6.2019. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class TransitioningAnimator: NSObject, UIViewControllerAnimatedTransitioning { 12 | 13 | var duration: TimeInterval 14 | 15 | init(duration: TimeInterval = 0.3) { 16 | self.duration = duration 17 | super.init() 18 | } 19 | 20 | func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval { 21 | return duration 22 | } 23 | 24 | func animateTransition(using transitionContext: UIViewControllerContextTransitioning) { 25 | let containerView = transitionContext.containerView 26 | let duration = transitionDuration(using: transitionContext) 27 | let view: UIView 28 | 29 | let isPresenting = transitionContext.isPresenting 30 | var finalFrame: CGRect = transitionContext.finalFrame(for: transitionContext.viewController(forKey: .from)!) 31 | 32 | if isPresenting { 33 | view = transitionContext.view(forKey: .to)! 34 | view.frame = finalFrame 35 | view.frame.origin.y = containerView.frame.height 36 | 37 | containerView.addSubview(view) 38 | } else { 39 | view = transitionContext.view(forKey: .from)! 40 | finalFrame.origin.y = containerView.frame.height 41 | } 42 | 43 | UIView.animate(withDuration: duration, delay: 0, options: UIView.AnimationOptions.curveEaseInOut, animations: { 44 | view.frame = finalFrame 45 | }) { _ in 46 | transitionContext.completeTransition(!transitionContext.transitionWasCancelled) 47 | } 48 | } 49 | 50 | } 51 | 52 | extension UIViewControllerContextTransitioning { 53 | var isPresenting: Bool { 54 | let toViewController = viewController(forKey: .to) 55 | let fromViewController = viewController(forKey: .from) 56 | return toViewController?.presentingViewController === fromViewController 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Example/DTOverlayController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 12 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 13 | B857C96647622BAEC68FA937 /* Pods_DTOverlayController_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 193B1B1D2D5FCEF1275128C2 /* Pods_DTOverlayController_Tests.framework */; }; 14 | EBDE209222B8247000555B61 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EBDE208F22B8247000555B61 /* Main.storyboard */; }; 15 | EBDE209322B8247000555B61 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EBDE209022B8247000555B61 /* Images.xcassets */; }; 16 | EBDE209422B8247000555B61 /* ExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE209122B8247000555B61 /* ExampleViewController.swift */; }; 17 | EBDE209C22B8249200555B61 /* AlternativeCityTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = EBDE209822B8249200555B61 /* AlternativeCityTableViewCell.xib */; }; 18 | EBDE209D22B8249200555B61 /* AlternativeCityTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE209922B8249200555B61 /* AlternativeCityTableViewCell.swift */; }; 19 | EBDE209E22B8249200555B61 /* CityTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = EBDE209A22B8249200555B61 /* CityTableViewCell.xib */; }; 20 | EBDE209F22B8249200555B61 /* CityTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE209B22B8249200555B61 /* CityTableViewCell.swift */; }; 21 | EBDE20A322B824A100555B61 /* CityDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20A022B824A100555B61 /* CityDetailViewController.swift */; }; 22 | EBDE20A422B824A100555B61 /* CityListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20A122B824A100555B61 /* CityListViewController.swift */; }; 23 | EBDE20A522B824A100555B61 /* City.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20A222B824A100555B61 /* City.swift */; }; 24 | FC0C729405FD1726069209F4 /* Pods_DTOverlayController_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2265EDE533B64E117D516040 /* Pods_DTOverlayController_Example.framework */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 33 | remoteInfo = DTOverlayController; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 193B1B1D2D5FCEF1275128C2 /* Pods_DTOverlayController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DTOverlayController_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 2265EDE533B64E117D516040 /* Pods_DTOverlayController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DTOverlayController_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 35BEE5EF5DEEC3755CBC6209 /* Pods-DTOverlayController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DTOverlayController_Tests.debug.xcconfig"; path = "Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests.debug.xcconfig"; sourceTree = ""; }; 41 | 3A295FE6908F7827706D29EE /* Pods-DTOverlayController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DTOverlayController_Example.debug.xcconfig"; path = "Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example.debug.xcconfig"; sourceTree = ""; }; 42 | 5093F38A17142EA9DAB627A9 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 43 | 607FACD01AFB9204008FA782 /* DTOverlayController_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DTOverlayController_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 46 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 47 | 607FACE51AFB9204008FA782 /* DTOverlayController_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DTOverlayController_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 50 | 7C26CE831637E3AB1503750B /* DTOverlayController.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = DTOverlayController.podspec; path = ../DTOverlayController.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 51 | AC1745E94B4EE962650265AE /* Pods-DTOverlayController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DTOverlayController_Tests.release.xcconfig"; path = "Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests.release.xcconfig"; sourceTree = ""; }; 52 | B7B3711DE62EAAB0C92DDEB3 /* Pods-DTOverlayController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DTOverlayController_Example.release.xcconfig"; path = "Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example.release.xcconfig"; sourceTree = ""; }; 53 | E952C7FCF6A0DDE46B3E9A44 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 54 | EBDE208F22B8247000555B61 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 55 | EBDE209022B8247000555B61 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 56 | EBDE209122B8247000555B61 /* ExampleViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExampleViewController.swift; sourceTree = ""; }; 57 | EBDE209822B8249200555B61 /* AlternativeCityTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AlternativeCityTableViewCell.xib; sourceTree = ""; }; 58 | EBDE209922B8249200555B61 /* AlternativeCityTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AlternativeCityTableViewCell.swift; sourceTree = ""; }; 59 | EBDE209A22B8249200555B61 /* CityTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CityTableViewCell.xib; sourceTree = ""; }; 60 | EBDE209B22B8249200555B61 /* CityTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CityTableViewCell.swift; sourceTree = ""; }; 61 | EBDE20A022B824A100555B61 /* CityDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CityDetailViewController.swift; sourceTree = ""; }; 62 | EBDE20A122B824A100555B61 /* CityListViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CityListViewController.swift; sourceTree = ""; }; 63 | EBDE20A222B824A100555B61 /* City.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = City.swift; sourceTree = ""; }; 64 | /* End PBXFileReference section */ 65 | 66 | /* Begin PBXFrameworksBuildPhase section */ 67 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | FC0C729405FD1726069209F4 /* Pods_DTOverlayController_Example.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | B857C96647622BAEC68FA937 /* Pods_DTOverlayController_Tests.framework in Frameworks */, 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | /* End PBXFrameworksBuildPhase section */ 84 | 85 | /* Begin PBXGroup section */ 86 | 38543AC26B6FE174002D75AD /* Pods */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 3A295FE6908F7827706D29EE /* Pods-DTOverlayController_Example.debug.xcconfig */, 90 | B7B3711DE62EAAB0C92DDEB3 /* Pods-DTOverlayController_Example.release.xcconfig */, 91 | 35BEE5EF5DEEC3755CBC6209 /* Pods-DTOverlayController_Tests.debug.xcconfig */, 92 | AC1745E94B4EE962650265AE /* Pods-DTOverlayController_Tests.release.xcconfig */, 93 | ); 94 | path = Pods; 95 | sourceTree = ""; 96 | }; 97 | 607FACC71AFB9204008FA782 = { 98 | isa = PBXGroup; 99 | children = ( 100 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 101 | 607FACD21AFB9204008FA782 /* Example for DTOverlayController */, 102 | 607FACE81AFB9204008FA782 /* Tests */, 103 | 607FACD11AFB9204008FA782 /* Products */, 104 | 38543AC26B6FE174002D75AD /* Pods */, 105 | E53B046BF06E317B2E9BB631 /* Frameworks */, 106 | ); 107 | sourceTree = ""; 108 | }; 109 | 607FACD11AFB9204008FA782 /* Products */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 607FACD01AFB9204008FA782 /* DTOverlayController_Example.app */, 113 | 607FACE51AFB9204008FA782 /* DTOverlayController_Tests.xctest */, 114 | ); 115 | name = Products; 116 | sourceTree = ""; 117 | }; 118 | 607FACD21AFB9204008FA782 /* Example for DTOverlayController */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | EBDE209622B8248100555B61 /* City */, 122 | EBDE209122B8247000555B61 /* ExampleViewController.swift */, 123 | EBDE209022B8247000555B61 /* Images.xcassets */, 124 | EBDE208F22B8247000555B61 /* Main.storyboard */, 125 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 126 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 127 | 607FACD31AFB9204008FA782 /* Supporting Files */, 128 | ); 129 | name = "Example for DTOverlayController"; 130 | path = DTOverlayController; 131 | sourceTree = ""; 132 | }; 133 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACD41AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACE81AFB9204008FA782 /* Tests */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 145 | 607FACE91AFB9204008FA782 /* Supporting Files */, 146 | ); 147 | path = Tests; 148 | sourceTree = ""; 149 | }; 150 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 607FACEA1AFB9204008FA782 /* Info.plist */, 154 | ); 155 | name = "Supporting Files"; 156 | sourceTree = ""; 157 | }; 158 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 7C26CE831637E3AB1503750B /* DTOverlayController.podspec */, 162 | 5093F38A17142EA9DAB627A9 /* README.md */, 163 | E952C7FCF6A0DDE46B3E9A44 /* LICENSE */, 164 | ); 165 | name = "Podspec Metadata"; 166 | sourceTree = ""; 167 | }; 168 | E53B046BF06E317B2E9BB631 /* Frameworks */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 2265EDE533B64E117D516040 /* Pods_DTOverlayController_Example.framework */, 172 | 193B1B1D2D5FCEF1275128C2 /* Pods_DTOverlayController_Tests.framework */, 173 | ); 174 | name = Frameworks; 175 | sourceTree = ""; 176 | }; 177 | EBDE209622B8248100555B61 /* City */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | EBDE20A022B824A100555B61 /* CityDetailViewController.swift */, 181 | EBDE20A122B824A100555B61 /* CityListViewController.swift */, 182 | EBDE20A222B824A100555B61 /* City.swift */, 183 | EBDE209722B8248700555B61 /* Cells */, 184 | ); 185 | path = City; 186 | sourceTree = ""; 187 | }; 188 | EBDE209722B8248700555B61 /* Cells */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | EBDE209922B8249200555B61 /* AlternativeCityTableViewCell.swift */, 192 | EBDE209822B8249200555B61 /* AlternativeCityTableViewCell.xib */, 193 | EBDE209B22B8249200555B61 /* CityTableViewCell.swift */, 194 | EBDE209A22B8249200555B61 /* CityTableViewCell.xib */, 195 | ); 196 | path = Cells; 197 | sourceTree = ""; 198 | }; 199 | /* End PBXGroup section */ 200 | 201 | /* Begin PBXNativeTarget section */ 202 | 607FACCF1AFB9204008FA782 /* DTOverlayController_Example */ = { 203 | isa = PBXNativeTarget; 204 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DTOverlayController_Example" */; 205 | buildPhases = ( 206 | 1A6400EF77A058953D27B7EF /* [CP] Check Pods Manifest.lock */, 207 | 607FACCC1AFB9204008FA782 /* Sources */, 208 | 607FACCD1AFB9204008FA782 /* Frameworks */, 209 | 607FACCE1AFB9204008FA782 /* Resources */, 210 | 2B4262882C4147BEEF5141DB /* [CP] Embed Pods Frameworks */, 211 | ); 212 | buildRules = ( 213 | ); 214 | dependencies = ( 215 | ); 216 | name = DTOverlayController_Example; 217 | productName = DTOverlayController; 218 | productReference = 607FACD01AFB9204008FA782 /* DTOverlayController_Example.app */; 219 | productType = "com.apple.product-type.application"; 220 | }; 221 | 607FACE41AFB9204008FA782 /* DTOverlayController_Tests */ = { 222 | isa = PBXNativeTarget; 223 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DTOverlayController_Tests" */; 224 | buildPhases = ( 225 | B86170B66A2D4FAF4C1D337F /* [CP] Check Pods Manifest.lock */, 226 | 607FACE11AFB9204008FA782 /* Sources */, 227 | 607FACE21AFB9204008FA782 /* Frameworks */, 228 | 607FACE31AFB9204008FA782 /* Resources */, 229 | ); 230 | buildRules = ( 231 | ); 232 | dependencies = ( 233 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 234 | ); 235 | name = DTOverlayController_Tests; 236 | productName = Tests; 237 | productReference = 607FACE51AFB9204008FA782 /* DTOverlayController_Tests.xctest */; 238 | productType = "com.apple.product-type.bundle.unit-test"; 239 | }; 240 | /* End PBXNativeTarget section */ 241 | 242 | /* Begin PBXProject section */ 243 | 607FACC81AFB9204008FA782 /* Project object */ = { 244 | isa = PBXProject; 245 | attributes = { 246 | LastSwiftUpdateCheck = 0830; 247 | LastUpgradeCheck = 1020; 248 | ORGANIZATIONNAME = CocoaPods; 249 | TargetAttributes = { 250 | 607FACCF1AFB9204008FA782 = { 251 | CreatedOnToolsVersion = 6.3.1; 252 | DevelopmentTeam = PT2FT394AN; 253 | LastSwiftMigration = 0900; 254 | }; 255 | 607FACE41AFB9204008FA782 = { 256 | CreatedOnToolsVersion = 6.3.1; 257 | DevelopmentTeam = PT2FT394AN; 258 | LastSwiftMigration = 0900; 259 | TestTargetID = 607FACCF1AFB9204008FA782; 260 | }; 261 | }; 262 | }; 263 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "DTOverlayController" */; 264 | compatibilityVersion = "Xcode 3.2"; 265 | developmentRegion = en; 266 | hasScannedForEncodings = 0; 267 | knownRegions = ( 268 | en, 269 | Base, 270 | ); 271 | mainGroup = 607FACC71AFB9204008FA782; 272 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 273 | projectDirPath = ""; 274 | projectRoot = ""; 275 | targets = ( 276 | 607FACCF1AFB9204008FA782 /* DTOverlayController_Example */, 277 | 607FACE41AFB9204008FA782 /* DTOverlayController_Tests */, 278 | ); 279 | }; 280 | /* End PBXProject section */ 281 | 282 | /* Begin PBXResourcesBuildPhase section */ 283 | 607FACCE1AFB9204008FA782 /* Resources */ = { 284 | isa = PBXResourcesBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | EBDE209E22B8249200555B61 /* CityTableViewCell.xib in Resources */, 288 | EBDE209C22B8249200555B61 /* AlternativeCityTableViewCell.xib in Resources */, 289 | EBDE209322B8247000555B61 /* Images.xcassets in Resources */, 290 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 291 | EBDE209222B8247000555B61 /* Main.storyboard in Resources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | 607FACE31AFB9204008FA782 /* Resources */ = { 296 | isa = PBXResourcesBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | /* End PBXResourcesBuildPhase section */ 303 | 304 | /* Begin PBXShellScriptBuildPhase section */ 305 | 1A6400EF77A058953D27B7EF /* [CP] Check Pods Manifest.lock */ = { 306 | isa = PBXShellScriptBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | inputFileListPaths = ( 311 | ); 312 | inputPaths = ( 313 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 314 | "${PODS_ROOT}/Manifest.lock", 315 | ); 316 | name = "[CP] Check Pods Manifest.lock"; 317 | outputFileListPaths = ( 318 | ); 319 | outputPaths = ( 320 | "$(DERIVED_FILE_DIR)/Pods-DTOverlayController_Example-checkManifestLockResult.txt", 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | 2B4262882C4147BEEF5141DB /* [CP] Embed Pods Frameworks */ = { 328 | isa = PBXShellScriptBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | inputPaths = ( 333 | "${PODS_ROOT}/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-frameworks.sh", 334 | "${BUILT_PRODUCTS_DIR}/DTOverlayController/DTOverlayController.framework", 335 | ); 336 | name = "[CP] Embed Pods Frameworks"; 337 | outputPaths = ( 338 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DTOverlayController.framework", 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | shellPath = /bin/sh; 342 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-frameworks.sh\"\n"; 343 | showEnvVarsInLog = 0; 344 | }; 345 | B86170B66A2D4FAF4C1D337F /* [CP] Check Pods Manifest.lock */ = { 346 | isa = PBXShellScriptBuildPhase; 347 | buildActionMask = 2147483647; 348 | files = ( 349 | ); 350 | inputFileListPaths = ( 351 | ); 352 | inputPaths = ( 353 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 354 | "${PODS_ROOT}/Manifest.lock", 355 | ); 356 | name = "[CP] Check Pods Manifest.lock"; 357 | outputFileListPaths = ( 358 | ); 359 | outputPaths = ( 360 | "$(DERIVED_FILE_DIR)/Pods-DTOverlayController_Tests-checkManifestLockResult.txt", 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | shellPath = /bin/sh; 364 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 365 | showEnvVarsInLog = 0; 366 | }; 367 | /* End PBXShellScriptBuildPhase section */ 368 | 369 | /* Begin PBXSourcesBuildPhase section */ 370 | 607FACCC1AFB9204008FA782 /* Sources */ = { 371 | isa = PBXSourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | EBDE209D22B8249200555B61 /* AlternativeCityTableViewCell.swift in Sources */, 375 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 376 | EBDE209F22B8249200555B61 /* CityTableViewCell.swift in Sources */, 377 | EBDE209422B8247000555B61 /* ExampleViewController.swift in Sources */, 378 | EBDE20A322B824A100555B61 /* CityDetailViewController.swift in Sources */, 379 | EBDE20A422B824A100555B61 /* CityListViewController.swift in Sources */, 380 | EBDE20A522B824A100555B61 /* City.swift in Sources */, 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | 607FACE11AFB9204008FA782 /* Sources */ = { 385 | isa = PBXSourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | /* End PBXSourcesBuildPhase section */ 393 | 394 | /* Begin PBXTargetDependency section */ 395 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 396 | isa = PBXTargetDependency; 397 | target = 607FACCF1AFB9204008FA782 /* DTOverlayController_Example */; 398 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 399 | }; 400 | /* End PBXTargetDependency section */ 401 | 402 | /* Begin PBXVariantGroup section */ 403 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 404 | isa = PBXVariantGroup; 405 | children = ( 406 | 607FACDF1AFB9204008FA782 /* Base */, 407 | ); 408 | name = LaunchScreen.xib; 409 | sourceTree = ""; 410 | }; 411 | /* End PBXVariantGroup section */ 412 | 413 | /* Begin XCBuildConfiguration section */ 414 | 607FACED1AFB9204008FA782 /* Debug */ = { 415 | isa = XCBuildConfiguration; 416 | buildSettings = { 417 | ALWAYS_SEARCH_USER_PATHS = NO; 418 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 419 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 420 | CLANG_CXX_LIBRARY = "libc++"; 421 | CLANG_ENABLE_MODULES = YES; 422 | CLANG_ENABLE_OBJC_ARC = YES; 423 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 424 | CLANG_WARN_BOOL_CONVERSION = YES; 425 | CLANG_WARN_COMMA = YES; 426 | CLANG_WARN_CONSTANT_CONVERSION = YES; 427 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 428 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 429 | CLANG_WARN_EMPTY_BODY = YES; 430 | CLANG_WARN_ENUM_CONVERSION = YES; 431 | CLANG_WARN_INFINITE_RECURSION = YES; 432 | CLANG_WARN_INT_CONVERSION = YES; 433 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 434 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 435 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 437 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 438 | CLANG_WARN_STRICT_PROTOTYPES = YES; 439 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 440 | CLANG_WARN_UNREACHABLE_CODE = YES; 441 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 443 | COPY_PHASE_STRIP = NO; 444 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 445 | ENABLE_STRICT_OBJC_MSGSEND = YES; 446 | ENABLE_TESTABILITY = YES; 447 | GCC_C_LANGUAGE_STANDARD = gnu99; 448 | GCC_DYNAMIC_NO_PIC = NO; 449 | GCC_NO_COMMON_BLOCKS = YES; 450 | GCC_OPTIMIZATION_LEVEL = 0; 451 | GCC_PREPROCESSOR_DEFINITIONS = ( 452 | "DEBUG=1", 453 | "$(inherited)", 454 | ); 455 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 456 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 457 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 458 | GCC_WARN_UNDECLARED_SELECTOR = YES; 459 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 460 | GCC_WARN_UNUSED_FUNCTION = YES; 461 | GCC_WARN_UNUSED_VARIABLE = YES; 462 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 463 | MTL_ENABLE_DEBUG_INFO = YES; 464 | ONLY_ACTIVE_ARCH = YES; 465 | SDKROOT = iphoneos; 466 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 467 | }; 468 | name = Debug; 469 | }; 470 | 607FACEE1AFB9204008FA782 /* Release */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | ALWAYS_SEARCH_USER_PATHS = NO; 474 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 475 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 476 | CLANG_CXX_LIBRARY = "libc++"; 477 | CLANG_ENABLE_MODULES = YES; 478 | CLANG_ENABLE_OBJC_ARC = YES; 479 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 480 | CLANG_WARN_BOOL_CONVERSION = YES; 481 | CLANG_WARN_COMMA = YES; 482 | CLANG_WARN_CONSTANT_CONVERSION = YES; 483 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 484 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 485 | CLANG_WARN_EMPTY_BODY = YES; 486 | CLANG_WARN_ENUM_CONVERSION = YES; 487 | CLANG_WARN_INFINITE_RECURSION = YES; 488 | CLANG_WARN_INT_CONVERSION = YES; 489 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 490 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 491 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 492 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 493 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 494 | CLANG_WARN_STRICT_PROTOTYPES = YES; 495 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 496 | CLANG_WARN_UNREACHABLE_CODE = YES; 497 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 498 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 499 | COPY_PHASE_STRIP = NO; 500 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 501 | ENABLE_NS_ASSERTIONS = NO; 502 | ENABLE_STRICT_OBJC_MSGSEND = YES; 503 | GCC_C_LANGUAGE_STANDARD = gnu99; 504 | GCC_NO_COMMON_BLOCKS = YES; 505 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 506 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 507 | GCC_WARN_UNDECLARED_SELECTOR = YES; 508 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 509 | GCC_WARN_UNUSED_FUNCTION = YES; 510 | GCC_WARN_UNUSED_VARIABLE = YES; 511 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 512 | MTL_ENABLE_DEBUG_INFO = NO; 513 | SDKROOT = iphoneos; 514 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 515 | VALIDATE_PRODUCT = YES; 516 | }; 517 | name = Release; 518 | }; 519 | 607FACF01AFB9204008FA782 /* Debug */ = { 520 | isa = XCBuildConfiguration; 521 | baseConfigurationReference = 3A295FE6908F7827706D29EE /* Pods-DTOverlayController_Example.debug.xcconfig */; 522 | buildSettings = { 523 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 524 | DEVELOPMENT_TEAM = PT2FT394AN; 525 | INFOPLIST_FILE = DTOverlayController/Info.plist; 526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 527 | MODULE_NAME = ExampleApp; 528 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 529 | PRODUCT_NAME = "$(TARGET_NAME)"; 530 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 531 | SWIFT_VERSION = 5.0; 532 | }; 533 | name = Debug; 534 | }; 535 | 607FACF11AFB9204008FA782 /* Release */ = { 536 | isa = XCBuildConfiguration; 537 | baseConfigurationReference = B7B3711DE62EAAB0C92DDEB3 /* Pods-DTOverlayController_Example.release.xcconfig */; 538 | buildSettings = { 539 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 540 | DEVELOPMENT_TEAM = PT2FT394AN; 541 | INFOPLIST_FILE = DTOverlayController/Info.plist; 542 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 543 | MODULE_NAME = ExampleApp; 544 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 545 | PRODUCT_NAME = "$(TARGET_NAME)"; 546 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 547 | SWIFT_VERSION = 5.0; 548 | }; 549 | name = Release; 550 | }; 551 | 607FACF31AFB9204008FA782 /* Debug */ = { 552 | isa = XCBuildConfiguration; 553 | baseConfigurationReference = 35BEE5EF5DEEC3755CBC6209 /* Pods-DTOverlayController_Tests.debug.xcconfig */; 554 | buildSettings = { 555 | DEVELOPMENT_TEAM = PT2FT394AN; 556 | FRAMEWORK_SEARCH_PATHS = ( 557 | "$(SDKROOT)/Developer/Library/Frameworks", 558 | "$(inherited)", 559 | ); 560 | GCC_PREPROCESSOR_DEFINITIONS = ( 561 | "DEBUG=1", 562 | "$(inherited)", 563 | ); 564 | INFOPLIST_FILE = Tests/Info.plist; 565 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 566 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 567 | PRODUCT_NAME = "$(TARGET_NAME)"; 568 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 569 | SWIFT_VERSION = 5.0; 570 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DTOverlayController_Example.app/DTOverlayController_Example"; 571 | }; 572 | name = Debug; 573 | }; 574 | 607FACF41AFB9204008FA782 /* Release */ = { 575 | isa = XCBuildConfiguration; 576 | baseConfigurationReference = AC1745E94B4EE962650265AE /* Pods-DTOverlayController_Tests.release.xcconfig */; 577 | buildSettings = { 578 | DEVELOPMENT_TEAM = PT2FT394AN; 579 | FRAMEWORK_SEARCH_PATHS = ( 580 | "$(SDKROOT)/Developer/Library/Frameworks", 581 | "$(inherited)", 582 | ); 583 | INFOPLIST_FILE = Tests/Info.plist; 584 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 585 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 586 | PRODUCT_NAME = "$(TARGET_NAME)"; 587 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 588 | SWIFT_VERSION = 5.0; 589 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DTOverlayController_Example.app/DTOverlayController_Example"; 590 | }; 591 | name = Release; 592 | }; 593 | /* End XCBuildConfiguration section */ 594 | 595 | /* Begin XCConfigurationList section */ 596 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "DTOverlayController" */ = { 597 | isa = XCConfigurationList; 598 | buildConfigurations = ( 599 | 607FACED1AFB9204008FA782 /* Debug */, 600 | 607FACEE1AFB9204008FA782 /* Release */, 601 | ); 602 | defaultConfigurationIsVisible = 0; 603 | defaultConfigurationName = Release; 604 | }; 605 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DTOverlayController_Example" */ = { 606 | isa = XCConfigurationList; 607 | buildConfigurations = ( 608 | 607FACF01AFB9204008FA782 /* Debug */, 609 | 607FACF11AFB9204008FA782 /* Release */, 610 | ); 611 | defaultConfigurationIsVisible = 0; 612 | defaultConfigurationName = Release; 613 | }; 614 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DTOverlayController_Tests" */ = { 615 | isa = XCConfigurationList; 616 | buildConfigurations = ( 617 | 607FACF31AFB9204008FA782 /* Debug */, 618 | 607FACF41AFB9204008FA782 /* Release */, 619 | ); 620 | defaultConfigurationIsVisible = 0; 621 | defaultConfigurationName = Release; 622 | }; 623 | /* End XCConfigurationList section */ 624 | }; 625 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 626 | } 627 | -------------------------------------------------------------------------------- /Example/DTOverlayController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/DTOverlayController.xcodeproj/xcshareddata/xcschemes/DTOverlayController-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/DTOverlayController.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/DTOverlayController.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/DTOverlayController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // DTOverlayController 4 | // 5 | // Created by tungvoduc on 06/17/2019. 6 | // Copyright (c) 2019 tungvoduc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/DTOverlayController/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/DTOverlayController/City/Cells/AlternativeCityTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AlternativeCityTableViewCell.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 17.6.2019. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class AlternativeCityTableViewCell: UITableViewCell { 12 | @IBOutlet var cityImageView: UIImageView! 13 | @IBOutlet var cityNameLabel: UILabel! 14 | @IBOutlet var cityDescriptionLabel: UILabel! 15 | 16 | override func awakeFromNib() { 17 | super.awakeFromNib() 18 | // Initialization code 19 | cityImageView.contentMode = .scaleAspectFill 20 | cityImageView.clipsToBounds = true 21 | } 22 | 23 | func populate(from city: City) { 24 | cityImageView.image = UIImage(named: city.imageName) 25 | cityNameLabel.text = city.name 26 | cityDescriptionLabel.text = city.description 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Example/DTOverlayController/City/Cells/AlternativeCityTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 35 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /Example/DTOverlayController/City/Cells/CityTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CityTableViewCell.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 15.6.2019. 6 | // 7 | 8 | import UIKit 9 | 10 | class CityTableViewCell: UITableViewCell { 11 | 12 | @IBOutlet weak var cityImageView: UIImageView! 13 | @IBOutlet weak var cityNameLabel: UILabel! 14 | 15 | override func awakeFromNib() { 16 | super.awakeFromNib() 17 | // Initialization code 18 | cityImageView.contentMode = .scaleAspectFill 19 | cityImageView.clipsToBounds = true 20 | } 21 | 22 | func populate(from city: City) { 23 | cityImageView.image = UIImage(named: city.imageName) 24 | cityNameLabel.text = city.name 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Example/DTOverlayController/City/Cells/CityTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /Example/DTOverlayController/City/City.swift: -------------------------------------------------------------------------------- 1 | // 2 | // City.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 15.6.2019. 6 | // 7 | 8 | import Foundation 9 | 10 | struct City { 11 | var name: String 12 | var imageName: String 13 | var description: String 14 | } 15 | 16 | extension City { 17 | 18 | static var NewYork: City { 19 | return City(name: "New York", 20 | imageName: "NewYork", 21 | description: "New York, the largest city in the U.S., is an architectural marvel with plenty of historic monuments, magnificent buildings and countless dazzling skyscrapers.\nBesides the architectural delights, New York is an urban jungle that has everything to offer to visitors. The city is home to numerous museums, parks, trendy neighborhoods and shopping streets." 22 | ) 23 | } 24 | 25 | static var SanFrancisco: City { 26 | return City(name: "SanFrancisco", 27 | imageName: "SanFrancisco", 28 | description: "San Francisco, officially the City and County of San Francisco, is a city in, and the cultural, commercial, and financial center of, Northern California. San Francisco is the 13th-most populous city in the United States, and the fourth-most populous in California, with 883,305 residents as of 2018." 29 | ) 30 | } 31 | 32 | static var London: City { 33 | return City(name: "London", 34 | imageName: "London", 35 | description: "London, the capital of England and the United Kingdom, is a 21st-century city with history stretching back to Roman times. At its centre stand the imposing Houses of Parliament, the iconic ‘Big Ben’ clock tower and Westminster Abbey, site of British monarch coronations. Across the Thames River, the London Eye observation wheel provides panoramic views of the South Bank cultural complex, and the entire city." 36 | ) 37 | } 38 | 39 | static var Amsterdam: City { 40 | return City(name: "Amsterdam", 41 | imageName: "Amsterdam", 42 | description: "Amsterdam is the Netherlands’ capital, known for its artistic heritage, elaborate canal system and narrow houses with gabled facades, legacies of the city’s 17th-century Golden Age. Its Museum District houses the Van Gogh Museum, works by Rembrandt and Vermeer at the Rijksmuseum, and modern art at the Stedelijk. Cycling is key to the city’s character, and there are numerous bike paths." 43 | ) 44 | } 45 | 46 | static var Tokyo: City { 47 | return City(name: "Tokyo", 48 | imageName: "Tokyo", 49 | description: "Tokyo is the capital of Japan. At over 13 million people in the official metropolitan area alone, Tokyo is the core of the most populated urban area in the world, Tokyo Metropolis (which has a population of over 37 million people). This huge, wealthy and fascinating metropolis brings high-tech visions of the future side by side with glimpses of old Japan, and has something for everyone." 50 | ) 51 | } 52 | 53 | static var Lisbon: City { 54 | return City(name: "Lisbon" 55 | , imageName: "Lisbon", 56 | description: "Lisbon is Portugal’s hilly, coastal capital city. From imposing São Jorge Castle, the view encompasses the old city’s pastel-colored buildings, Tagus Estuary and Ponte 25 de Abril suspension bridge. Nearby, the National Azulejo Museum displays 5 centuries of decorative ceramic tiles. Just outside Lisbon is a string of Atlantic beaches, from Cascais to Estoril." 57 | ) 58 | } 59 | 60 | static var Barcelona: City { 61 | return City(name: "Barcelona", 62 | imageName: "Barcelona", 63 | description: "Barcelona, the cosmopolitan capital of Spain’s Catalonia region, is known for its art and architecture. The fantastical Sagrada Família church and other modernist landmarks designed by Antoni Gaudí dot the city. Museu Picasso and Fundació Joan Miró feature modern art by their namesakes. City history museum MUHBA, includes several Roman archaeological sites." 64 | ) 65 | } 66 | 67 | static var Stockholm: City { 68 | return City(name: "Stockholm", 69 | imageName: "Stockholm", 70 | description: "Stockholm, the capital of Sweden, encompasses 14 islands and more than 50 bridges on an extensive Baltic Sea archipelago. The cobblestone streets and ochre-colored buildings of Gamla Stan (the old town) are home to the 13th-century Storkyrkan Cathedral, the Kungliga Slottet Royal Palace and the Nobel Museum, which focuses on the Nobel Prize. Ferries and sightseeing boats shuttle passengers between the islands." 71 | ) 72 | } 73 | 74 | static var Berlin: City { 75 | return City(name: "Berlin", 76 | imageName: "Berlin", 77 | description: "Berlin, Germany’s capital, dates to the 13th century. Reminders of the city's turbulent 20th-century history include its Holocaust memorial and the Berlin Wall's graffitied remains. Divided during the Cold War, its 18th-century Brandenburg Gate has become a symbol of reunification. The city's also known for its art scene and modern landmarks like the gold-colored, swoop-roofed Berliner Philharmonie, built in 1963." 78 | ) 79 | } 80 | 81 | static var Bangkok: City { 82 | return City(name: "Bangkok", 83 | imageName: "Bangkok", 84 | description: "Bangkok, Thailand’s capital, is a large city known for ornate shrines and vibrant street life. The boat-filled Chao Phraya River feeds its network of canals, flowing past the Rattanakosin royal district, home to opulent Grand Palace and its sacred Wat Phra Kaew Temple. Nearby is Wat Pho Temple with an enormous reclining Buddha and, on the opposite shore, Wat Arun Temple with its steep steps and Khmer-style spire." 85 | ) 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /Example/DTOverlayController/City/CityDetailViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CityDetailViewController.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 15.6.2019. 6 | // 7 | 8 | import UIKit 9 | import DTOverlayController 10 | 11 | class CityDetailViewController: UIViewController { 12 | 13 | let scrollView: UIScrollView = { 14 | let scrollView = UIScrollView() 15 | return scrollView 16 | }() 17 | 18 | lazy var stackView: UIStackView = { 19 | let stackView = UIStackView(arrangedSubviews: [imageView, nameLabel, descriptionLabel]) 20 | stackView.axis = .vertical 21 | stackView.spacing = 20 22 | stackView.layoutMargins = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20) 23 | stackView.isLayoutMarginsRelativeArrangement = true 24 | return stackView 25 | }() 26 | 27 | let imageView: UIImageView = { 28 | let imageView = UIImageView() 29 | imageView.contentMode = .scaleAspectFill 30 | imageView.clipsToBounds = true 31 | return imageView 32 | }() 33 | 34 | let nameLabel: UILabel = { 35 | let label = UILabel() 36 | label.font = UIFont.preferredFont(forTextStyle: .title1) 37 | label.numberOfLines = 0 38 | return label 39 | }() 40 | 41 | let descriptionLabel: UILabel = { 42 | let label = UILabel() 43 | label.font = UIFont.preferredFont(forTextStyle: .body) 44 | label.numberOfLines = 0 45 | return label 46 | }() 47 | 48 | var city: City 49 | 50 | init(city: City) { 51 | self.city = city 52 | super.init(nibName: nil, bundle: nil) 53 | } 54 | 55 | required init?(coder aDecoder: NSCoder) { 56 | fatalError("init(coder:) has not been implemented") 57 | } 58 | 59 | override func viewDidLoad() { 60 | super.viewDidLoad() 61 | 62 | // Do any additional setup after loading the view. 63 | title = city.name 64 | scrollView.backgroundColor = UIColor.white 65 | scrollView.translatesAutoresizingMaskIntoConstraints = false 66 | stackView.translatesAutoresizingMaskIntoConstraints = false 67 | 68 | view.addSubview(scrollView) 69 | 70 | scrollView.addSubview(stackView) 71 | 72 | stackView.addSubview(imageView) 73 | stackView.addSubview(nameLabel) 74 | stackView.addSubview(descriptionLabel) 75 | 76 | updateViewConstraints() 77 | 78 | populate(from: city) 79 | } 80 | 81 | private func populate(from city: City) { 82 | imageView.image = UIImage(named: city.imageName) 83 | nameLabel.text = city.name 84 | descriptionLabel.text = city.description 85 | } 86 | 87 | override func updateViewConstraints() { 88 | super.updateViewConstraints() 89 | 90 | // Scroll view 91 | NSLayoutConstraint(item: scrollView, attribute: .leading, relatedBy: .equal, toItem: view, attribute: .leading, multiplier: 1, constant: 0).isActive = true 92 | NSLayoutConstraint(item: scrollView, attribute: .trailing, relatedBy: .equal, toItem: view, attribute: .trailing, multiplier: 1, constant: 0).isActive = true 93 | NSLayoutConstraint(item: scrollView, attribute: .top, relatedBy: .equal, toItem: view, attribute: .top, multiplier: 1, constant: 0).isActive = true 94 | NSLayoutConstraint(item: scrollView, attribute: .bottom, relatedBy: .equal, toItem: view, attribute: .bottom, multiplier: 1, constant: 0).isActive = true 95 | 96 | // Stack view 97 | NSLayoutConstraint(item: stackView, attribute: .leading, relatedBy: .equal, toItem: scrollView, attribute: .leading, multiplier: 1, constant: 0).isActive = true 98 | NSLayoutConstraint(item: stackView, attribute: .trailing, relatedBy: .equal, toItem: scrollView, attribute: .trailing, multiplier: 1, constant: 0).isActive = true 99 | NSLayoutConstraint(item: stackView, attribute: .top, relatedBy: .equal, toItem: scrollView, attribute: .top, multiplier: 1, constant: 0).isActive = true 100 | NSLayoutConstraint(item: stackView, attribute: .bottom, relatedBy: .equal, toItem: scrollView, attribute: .bottom, multiplier: 1, constant: 0).isActive = true 101 | NSLayoutConstraint(item: stackView, attribute: .width, relatedBy: .equal, toItem: scrollView, attribute: .width, multiplier: 1, constant: 0).isActive = true 102 | 103 | // Image view 104 | NSLayoutConstraint(item: imageView, attribute: .width, relatedBy: .lessThanOrEqual, toItem: stackView, attribute: .width, multiplier: 1, constant: 0).isActive = true 105 | NSLayoutConstraint(item: imageView, attribute: .height, relatedBy: .equal, toItem: imageView, attribute: .width, multiplier: 0.75, constant: 0).isActive = true 106 | } 107 | 108 | } 109 | 110 | extension CityDetailViewController: DTScrollViewRepresentable { 111 | var rootScrollView: UIScrollView? { 112 | return scrollView 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /Example/DTOverlayController/City/CityListViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TableViewController.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 9.6.2019. 6 | // 7 | 8 | import UIKit 9 | import DTOverlayController 10 | 11 | class CityListViewController: UITableViewController { 12 | 13 | enum CellType { 14 | case light 15 | case dark 16 | } 17 | 18 | var type: CellType 19 | 20 | var cities: [City] = [City.Amsterdam, 21 | City.Bangkok, 22 | City.Barcelona, 23 | City.Berlin, 24 | City.Lisbon, 25 | City.London, 26 | City.NewYork, 27 | City.SanFrancisco, 28 | City.Stockholm, 29 | City.Tokyo 30 | ] 31 | 32 | init(cellType: CellType) { 33 | type = cellType 34 | super.init(nibName: nil, bundle: nil) 35 | title = "Cities" 36 | } 37 | 38 | required init?(coder aDecoder: NSCoder) { 39 | fatalError("init(coder:) has not been implemented") 40 | } 41 | 42 | private let cellIdentifier = "Cell" 43 | 44 | override func viewDidLoad() { 45 | super.viewDidLoad() 46 | tableView.rowHeight = UITableView.automaticDimension 47 | 48 | if case .light = type { 49 | tableView.register(UINib(nibName: "CityTableViewCell", bundle: nil), forCellReuseIdentifier: cellIdentifier) 50 | } else { 51 | tableView.register(UINib(nibName: "AlternativeCityTableViewCell", bundle: nil), forCellReuseIdentifier: cellIdentifier) 52 | } 53 | } 54 | 55 | // MARK: - Table view data source 56 | 57 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 58 | return cities.count 59 | } 60 | 61 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 62 | let city = cities[indexPath.row] 63 | 64 | if case .light = type { 65 | let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) as! CityTableViewCell 66 | cell.populate(from: city) 67 | return cell 68 | } 69 | 70 | let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) as! AlternativeCityTableViewCell 71 | cell.populate(from: city) 72 | 73 | return cell 74 | } 75 | 76 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 77 | tableView.deselectRow(at: indexPath, animated: true) 78 | let city = cities[indexPath.row] 79 | let viewController = CityDetailViewController(city: city) 80 | navigationController?.pushViewController(viewController, animated: true) 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /Example/DTOverlayController/ExampleViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ExampleViewController.swift 3 | // DTOverlayController_Example 4 | // 5 | // Created by Tung Vo on 17.6.2019. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import DTOverlayController 11 | 12 | class ExampleViewController: UITableViewController { 13 | 14 | private let cellIdentifier = "Cell" 15 | 16 | enum Selection: CaseIterable { 17 | case navigation 18 | case tabbar 19 | case disabledPanGesture 20 | 21 | var title: String { 22 | switch self { 23 | case .navigation: 24 | return "NavigationController" 25 | case .disabledPanGesture: 26 | return "Pan Gesture disabled" 27 | default: 28 | return "TabbarController" 29 | } 30 | } 31 | 32 | var viewController: UIViewController { 33 | switch self { 34 | case .navigation: 35 | return UINavigationController(rootViewController: CityListViewController(cellType: .light)) 36 | case .disabledPanGesture: 37 | return UINavigationController(rootViewController: CityListViewController(cellType: .light)) 38 | case .tabbar: 39 | let tabbarController = UITabBarController() 40 | let navigationController1 = UINavigationController(rootViewController: CityListViewController(cellType: .light)) 41 | let navigationController2 = UINavigationController(rootViewController: CityListViewController(cellType: .dark)) 42 | tabbarController.viewControllers = [navigationController1, navigationController2] 43 | return tabbarController 44 | } 45 | } 46 | } 47 | 48 | private var selections = Selection.allCases 49 | 50 | override func viewDidLoad() { 51 | super.viewDidLoad() 52 | title = "Examples" 53 | tableView.register(UITableViewCell.self, forCellReuseIdentifier: cellIdentifier) 54 | } 55 | 56 | // MARK: - Table view data source 57 | 58 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 59 | return selections.count 60 | } 61 | 62 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 63 | let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) 64 | let selection = selections[indexPath.row] 65 | cell.textLabel?.text = selection.title 66 | return cell 67 | } 68 | 69 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 70 | tableView.deselectRow(at: indexPath, animated: true) 71 | let selection = selections[indexPath.row] 72 | let viewController = DTOverlayController(viewController: selection.viewController) 73 | viewController.dismissableProgress = 0.4 74 | 75 | switch selection { 76 | case .disabledPanGesture: 77 | if #available(iOS 11.0, *) { 78 | viewController.overlayHeight = .inset(50 + view.safeAreaInsets.top) 79 | } else { 80 | viewController.overlayHeight = .inset(50) 81 | } 82 | viewController.isPanGestureEnabled = false 83 | default: 84 | break 85 | } 86 | 87 | present(viewController, animated: true, completion: nil) 88 | } 89 | 90 | } 91 | -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Amsterdam.imageset/Amsterdam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/Amsterdam.imageset/Amsterdam.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Amsterdam.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Amsterdam.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Bangkok.imageset/Bangkok.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/Bangkok.imageset/Bangkok.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Bangkok.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Bangkok.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Barcelona.imageset/Barcelona.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/Barcelona.imageset/Barcelona.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Barcelona.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Barcelona.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Berlin.imageset/Berlin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/Berlin.imageset/Berlin.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Berlin.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Berlin.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Lisbon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Lisbon.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Lisbon.imageset/Lisbon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/Lisbon.imageset/Lisbon.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/London.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "London.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/London.imageset/London.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/London.imageset/London.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/NewYork.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "New York.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/NewYork.imageset/New York.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/NewYork.imageset/New York.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/SanFrancisco.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "San Francisco.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/SanFrancisco.imageset/San Francisco.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/SanFrancisco.imageset/San Francisco.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Stockholm.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Stockholm.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Stockholm.imageset/Stockholm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/Stockholm.imageset/Stockholm.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Tokyo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Tokyo.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DTOverlayController/Images.xcassets/Tokyo.imageset/Tokyo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Example/DTOverlayController/Images.xcassets/Tokyo.imageset/Tokyo.jpg -------------------------------------------------------------------------------- /Example/DTOverlayController/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/DTOverlayController/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'DTOverlayController_Example' do 4 | pod 'DTOverlayController', :path => '../' 5 | 6 | target 'DTOverlayController_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - DTOverlayController (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - DTOverlayController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | DTOverlayController: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | DTOverlayController: 333f4822bc50370a9086684523622b1e5b728471 13 | 14 | PODFILE CHECKSUM: 87cf7d4df420ebcb297bc2c275f6ffb127088dfb 15 | 16 | COCOAPODS: 1.7.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/DTOverlayController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DTOverlayController", 3 | "version": "0.1.0", 4 | "summary": "A short description of DTOverlayController.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/tungvoduc/DTOverlayController", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "tungvoduc": "tung98.dn@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/tungvoduc/DTOverlayController.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "DTOverlayController/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - DTOverlayController (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - DTOverlayController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | DTOverlayController: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | DTOverlayController: 333f4822bc50370a9086684523622b1e5b728471 13 | 14 | PODFILE CHECKSUM: 87cf7d4df420ebcb297bc2c275f6ffb127088dfb 15 | 16 | COCOAPODS: 1.7.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0AFAAF8D3378DCE43F09128D6EE31D35 /* DTOverlayController-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 28443DEA69126EF14C4004E2FD82C00F /* DTOverlayController-dummy.m */; }; 11 | 3560F41A4AE48E75E8B1DAF1907FA90F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 12 | 4470E9EA89430000307A477136940C60 /* DTOverlayController-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 93F56C2262DAF66A301A0CFDD0D032EF /* DTOverlayController-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 82C6DD8A9A3B4E19F97700B0DC79D987 /* Pods-DTOverlayController_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 00A08357F6A14BB859F26F9C52B73216 /* Pods-DTOverlayController_Tests-dummy.m */; }; 14 | A4E34F128DA1C1BCBC7B6138D893D46C /* Pods-DTOverlayController_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E9B5F91F5D47427CBE857C518FA3211B /* Pods-DTOverlayController_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | A5985EB11410ABA4F9164C3F4A372785 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 16 | B33D128A61803498953F8AA42F2A214E /* Pods-DTOverlayController_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 44781D38FE8CBB505648229EE6334116 /* Pods-DTOverlayController_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | EAA984F804C9A3BBA6725004E76DFE9E /* Pods-DTOverlayController_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C907B8F81903379193CF1C906F8D6FC3 /* Pods-DTOverlayController_Example-dummy.m */; }; 18 | EBDE20AB22B8275700555B61 /* InteractiveTransition.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20A622B8275700555B61 /* InteractiveTransition.swift */; }; 19 | EBDE20AC22B8275700555B61 /* DTOverlayController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20A722B8275700555B61 /* DTOverlayController.swift */; }; 20 | EBDE20AD22B8275700555B61 /* DTScrollViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20A822B8275700555B61 /* DTScrollViewRepresentable.swift */; }; 21 | EBDE20AE22B8275700555B61 /* TransitioningAnimator.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20A922B8275700555B61 /* TransitioningAnimator.swift */; }; 22 | EBDE20AF22B8275700555B61 /* DTOverlayPresentationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBDE20AA22B8275700555B61 /* DTOverlayPresentationController.swift */; }; 23 | F960BAB551F24C6E40F6F30AF363F25E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 502128C9F084B88C1B46AE1595AD8485 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 0A54C567BAF7759AC205CB50EDD7DA1E; 32 | remoteInfo = DTOverlayController; 33 | }; 34 | 514CA677636A91A3B99617C3D27DCE50 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = CC3C8977ABEE50F835E7A92171DA2E36; 39 | remoteInfo = "Pods-DTOverlayController_Example"; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 00A08357F6A14BB859F26F9C52B73216 /* Pods-DTOverlayController_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-DTOverlayController_Tests-dummy.m"; sourceTree = ""; }; 45 | 13C795AABC94FF366663E0BA459439B7 /* Pods-DTOverlayController_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-DTOverlayController_Tests-acknowledgements.plist"; sourceTree = ""; }; 46 | 1F929000DBE6015029656B265D9712F9 /* Pods-DTOverlayController_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-DTOverlayController_Example-frameworks.sh"; sourceTree = ""; }; 47 | 28443DEA69126EF14C4004E2FD82C00F /* DTOverlayController-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "DTOverlayController-dummy.m"; sourceTree = ""; }; 48 | 286982B1517E28B286290965A625DCF5 /* Pods-DTOverlayController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DTOverlayController_Tests.debug.xcconfig"; sourceTree = ""; }; 49 | 2BC8C863FF4C5D4FDF5DCDAE8655C1CF /* Pods-DTOverlayController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DTOverlayController_Example.release.xcconfig"; sourceTree = ""; }; 50 | 312D1D6BAD6262B9AE4085658E1F57FD /* Pods-DTOverlayController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DTOverlayController_Tests.release.xcconfig"; sourceTree = ""; }; 51 | 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; }; 52 | 3F076AFF1B1ABA89F576D3715E3327C7 /* Pods_DTOverlayController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DTOverlayController_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 44781D38FE8CBB505648229EE6334116 /* Pods-DTOverlayController_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-DTOverlayController_Tests-umbrella.h"; sourceTree = ""; }; 54 | 6C3BE66831259C9D089284B1F265CA1B /* Pods-DTOverlayController_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-DTOverlayController_Tests.modulemap"; sourceTree = ""; }; 55 | 7985C7593E4BEAF3DA858AA1EC639BF8 /* DTOverlayController.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = DTOverlayController.modulemap; sourceTree = ""; }; 56 | 8E77D11CBFC7E8DE2FAF4A88A5331FBA /* Pods-DTOverlayController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DTOverlayController_Example.debug.xcconfig"; sourceTree = ""; }; 57 | 91580F9449B0DF2CDF49DDCA262F483C /* DTOverlayController.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = DTOverlayController.xcconfig; sourceTree = ""; }; 58 | 91E40DC32AA596D3F1E3B451CEAEC0E3 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 59 | 93F56C2262DAF66A301A0CFDD0D032EF /* DTOverlayController-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "DTOverlayController-umbrella.h"; sourceTree = ""; }; 60 | 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; }; 61 | A3146C04457935A5409470D18F16B394 /* Pods-DTOverlayController_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-DTOverlayController_Example-acknowledgements.plist"; sourceTree = ""; }; 62 | A8A28E175885DE853740A7E5636F509D /* Pods-DTOverlayController_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-DTOverlayController_Tests-acknowledgements.markdown"; sourceTree = ""; }; 63 | AB170C1D6DA7DD0BC436DA3879E9ADC4 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 64 | B0395C04D48086B663620C7760FE8B42 /* Pods_DTOverlayController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DTOverlayController_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | BEADC7C146431444690CF2FCD831871E /* Pods-DTOverlayController_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-DTOverlayController_Example.modulemap"; sourceTree = ""; }; 66 | C52552D8CDB8A842F3AFA05E9CA0820F /* DTOverlayController.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = DTOverlayController.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 67 | C907B8F81903379193CF1C906F8D6FC3 /* Pods-DTOverlayController_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-DTOverlayController_Example-dummy.m"; sourceTree = ""; }; 68 | D41FBA5D6E5374FDD3F25FA09CA4330A /* DTOverlayController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = DTOverlayController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | DB65D8870D2C66D30D52A66AE6A1AF96 /* Pods-DTOverlayController_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-DTOverlayController_Example-acknowledgements.markdown"; sourceTree = ""; }; 70 | E4BB541F59A80C17F6CE0CB94DD0FE77 /* DTOverlayController-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "DTOverlayController-Info.plist"; sourceTree = ""; }; 71 | E9B5F91F5D47427CBE857C518FA3211B /* Pods-DTOverlayController_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-DTOverlayController_Example-umbrella.h"; sourceTree = ""; }; 72 | EBDE20A622B8275700555B61 /* InteractiveTransition.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = InteractiveTransition.swift; path = DTOverlayController/Classes/InteractiveTransition.swift; sourceTree = ""; }; 73 | EBDE20A722B8275700555B61 /* DTOverlayController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DTOverlayController.swift; path = DTOverlayController/Classes/DTOverlayController.swift; sourceTree = ""; }; 74 | EBDE20A822B8275700555B61 /* DTScrollViewRepresentable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DTScrollViewRepresentable.swift; path = DTOverlayController/Classes/DTScrollViewRepresentable.swift; sourceTree = ""; }; 75 | EBDE20A922B8275700555B61 /* TransitioningAnimator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TransitioningAnimator.swift; path = DTOverlayController/Classes/TransitioningAnimator.swift; sourceTree = ""; }; 76 | EBDE20AA22B8275700555B61 /* DTOverlayPresentationController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DTOverlayPresentationController.swift; path = DTOverlayController/Classes/DTOverlayPresentationController.swift; sourceTree = ""; }; 77 | F3DC3E951BDCE030636E4C297F8C6B48 /* Pods-DTOverlayController_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-DTOverlayController_Tests-Info.plist"; sourceTree = ""; }; 78 | F5B99D171302F6322B761658BBE63F4D /* DTOverlayController-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "DTOverlayController-prefix.pch"; sourceTree = ""; }; 79 | FC65284332A765D6F7394487A7771173 /* Pods-DTOverlayController_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-DTOverlayController_Example-Info.plist"; sourceTree = ""; }; 80 | /* End PBXFileReference section */ 81 | 82 | /* Begin PBXFrameworksBuildPhase section */ 83 | B2F8350775A6302170E7A1064813CCF3 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | F960BAB551F24C6E40F6F30AF363F25E /* Foundation.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | D98CDED9A5804A648F30DA9F3D3ABEC7 /* Frameworks */ = { 92 | isa = PBXFrameworksBuildPhase; 93 | buildActionMask = 2147483647; 94 | files = ( 95 | 3560F41A4AE48E75E8B1DAF1907FA90F /* Foundation.framework in Frameworks */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | FC012E78F0723B912F77ADD31137D28C /* Frameworks */ = { 100 | isa = PBXFrameworksBuildPhase; 101 | buildActionMask = 2147483647; 102 | files = ( 103 | A5985EB11410ABA4F9164C3F4A372785 /* Foundation.framework in Frameworks */, 104 | ); 105 | runOnlyForDeploymentPostprocessing = 0; 106 | }; 107 | /* End PBXFrameworksBuildPhase section */ 108 | 109 | /* Begin PBXGroup section */ 110 | 0C7D6D6B0A7D30D29710776BA03DE543 /* Products */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | D41FBA5D6E5374FDD3F25FA09CA4330A /* DTOverlayController.framework */, 114 | B0395C04D48086B663620C7760FE8B42 /* Pods_DTOverlayController_Example.framework */, 115 | 3F076AFF1B1ABA89F576D3715E3327C7 /* Pods_DTOverlayController_Tests.framework */, 116 | ); 117 | name = Products; 118 | sourceTree = ""; 119 | }; 120 | 2B29D7041914CCF27FBD25977862637F /* Pod */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | C52552D8CDB8A842F3AFA05E9CA0820F /* DTOverlayController.podspec */, 124 | 91E40DC32AA596D3F1E3B451CEAEC0E3 /* LICENSE */, 125 | AB170C1D6DA7DD0BC436DA3879E9ADC4 /* README.md */, 126 | ); 127 | name = Pod; 128 | sourceTree = ""; 129 | }; 130 | 38E1A38C52BD6675DEF67BC78DE00E8E /* Development Pods */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | BB1A5EEFE64274B14DD36E565732C343 /* DTOverlayController */, 134 | ); 135 | name = "Development Pods"; 136 | sourceTree = ""; 137 | }; 138 | 427C46B801B5BCE317C923EC1E23ECFE /* Support Files */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 7985C7593E4BEAF3DA858AA1EC639BF8 /* DTOverlayController.modulemap */, 142 | 91580F9449B0DF2CDF49DDCA262F483C /* DTOverlayController.xcconfig */, 143 | 28443DEA69126EF14C4004E2FD82C00F /* DTOverlayController-dummy.m */, 144 | E4BB541F59A80C17F6CE0CB94DD0FE77 /* DTOverlayController-Info.plist */, 145 | F5B99D171302F6322B761658BBE63F4D /* DTOverlayController-prefix.pch */, 146 | 93F56C2262DAF66A301A0CFDD0D032EF /* DTOverlayController-umbrella.h */, 147 | ); 148 | name = "Support Files"; 149 | path = "Example/Pods/Target Support Files/DTOverlayController"; 150 | sourceTree = ""; 151 | }; 152 | 9BEAE30052C32382784D2FB488D9F761 /* Pods-DTOverlayController_Example */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | BEADC7C146431444690CF2FCD831871E /* Pods-DTOverlayController_Example.modulemap */, 156 | DB65D8870D2C66D30D52A66AE6A1AF96 /* Pods-DTOverlayController_Example-acknowledgements.markdown */, 157 | A3146C04457935A5409470D18F16B394 /* Pods-DTOverlayController_Example-acknowledgements.plist */, 158 | C907B8F81903379193CF1C906F8D6FC3 /* Pods-DTOverlayController_Example-dummy.m */, 159 | 1F929000DBE6015029656B265D9712F9 /* Pods-DTOverlayController_Example-frameworks.sh */, 160 | FC65284332A765D6F7394487A7771173 /* Pods-DTOverlayController_Example-Info.plist */, 161 | E9B5F91F5D47427CBE857C518FA3211B /* Pods-DTOverlayController_Example-umbrella.h */, 162 | 8E77D11CBFC7E8DE2FAF4A88A5331FBA /* Pods-DTOverlayController_Example.debug.xcconfig */, 163 | 2BC8C863FF4C5D4FDF5DCDAE8655C1CF /* Pods-DTOverlayController_Example.release.xcconfig */, 164 | ); 165 | name = "Pods-DTOverlayController_Example"; 166 | path = "Target Support Files/Pods-DTOverlayController_Example"; 167 | sourceTree = ""; 168 | }; 169 | A1C6C92F1119B5DB4811FA6EE32A6721 /* Targets Support Files */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 9BEAE30052C32382784D2FB488D9F761 /* Pods-DTOverlayController_Example */, 173 | F70502A49E231B4914DB2A7673496C1B /* Pods-DTOverlayController_Tests */, 174 | ); 175 | name = "Targets Support Files"; 176 | sourceTree = ""; 177 | }; 178 | BB1A5EEFE64274B14DD36E565732C343 /* DTOverlayController */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | EBDE20A722B8275700555B61 /* DTOverlayController.swift */, 182 | EBDE20AA22B8275700555B61 /* DTOverlayPresentationController.swift */, 183 | EBDE20A822B8275700555B61 /* DTScrollViewRepresentable.swift */, 184 | EBDE20A622B8275700555B61 /* InteractiveTransition.swift */, 185 | EBDE20A922B8275700555B61 /* TransitioningAnimator.swift */, 186 | 2B29D7041914CCF27FBD25977862637F /* Pod */, 187 | 427C46B801B5BCE317C923EC1E23ECFE /* Support Files */, 188 | ); 189 | name = DTOverlayController; 190 | path = ../..; 191 | sourceTree = ""; 192 | }; 193 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 197 | ); 198 | name = iOS; 199 | sourceTree = ""; 200 | }; 201 | CF1408CF629C7361332E53B88F7BD30C = { 202 | isa = PBXGroup; 203 | children = ( 204 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 205 | 38E1A38C52BD6675DEF67BC78DE00E8E /* Development Pods */, 206 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 207 | 0C7D6D6B0A7D30D29710776BA03DE543 /* Products */, 208 | A1C6C92F1119B5DB4811FA6EE32A6721 /* Targets Support Files */, 209 | ); 210 | sourceTree = ""; 211 | }; 212 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 213 | isa = PBXGroup; 214 | children = ( 215 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 216 | ); 217 | name = Frameworks; 218 | sourceTree = ""; 219 | }; 220 | F70502A49E231B4914DB2A7673496C1B /* Pods-DTOverlayController_Tests */ = { 221 | isa = PBXGroup; 222 | children = ( 223 | 6C3BE66831259C9D089284B1F265CA1B /* Pods-DTOverlayController_Tests.modulemap */, 224 | A8A28E175885DE853740A7E5636F509D /* Pods-DTOverlayController_Tests-acknowledgements.markdown */, 225 | 13C795AABC94FF366663E0BA459439B7 /* Pods-DTOverlayController_Tests-acknowledgements.plist */, 226 | 00A08357F6A14BB859F26F9C52B73216 /* Pods-DTOverlayController_Tests-dummy.m */, 227 | F3DC3E951BDCE030636E4C297F8C6B48 /* Pods-DTOverlayController_Tests-Info.plist */, 228 | 44781D38FE8CBB505648229EE6334116 /* Pods-DTOverlayController_Tests-umbrella.h */, 229 | 286982B1517E28B286290965A625DCF5 /* Pods-DTOverlayController_Tests.debug.xcconfig */, 230 | 312D1D6BAD6262B9AE4085658E1F57FD /* Pods-DTOverlayController_Tests.release.xcconfig */, 231 | ); 232 | name = "Pods-DTOverlayController_Tests"; 233 | path = "Target Support Files/Pods-DTOverlayController_Tests"; 234 | sourceTree = ""; 235 | }; 236 | /* End PBXGroup section */ 237 | 238 | /* Begin PBXHeadersBuildPhase section */ 239 | 0764E5FBE5886653F432C388EE3CD4C3 /* Headers */ = { 240 | isa = PBXHeadersBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | B33D128A61803498953F8AA42F2A214E /* Pods-DTOverlayController_Tests-umbrella.h in Headers */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 2F49F871D645C472C05EA5C9532A46BB /* Headers */ = { 248 | isa = PBXHeadersBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | A4E34F128DA1C1BCBC7B6138D893D46C /* Pods-DTOverlayController_Example-umbrella.h in Headers */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | CC1AD1D780810A4B9EC9167CCF59ED10 /* Headers */ = { 256 | isa = PBXHeadersBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | 4470E9EA89430000307A477136940C60 /* DTOverlayController-umbrella.h in Headers */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | /* End PBXHeadersBuildPhase section */ 264 | 265 | /* Begin PBXNativeTarget section */ 266 | 0A54C567BAF7759AC205CB50EDD7DA1E /* DTOverlayController */ = { 267 | isa = PBXNativeTarget; 268 | buildConfigurationList = 03E8491303BA5EFF716576FCFC17C93D /* Build configuration list for PBXNativeTarget "DTOverlayController" */; 269 | buildPhases = ( 270 | CC1AD1D780810A4B9EC9167CCF59ED10 /* Headers */, 271 | F33A99F4AF2B633B1B486E2862AAB99B /* Sources */, 272 | FC012E78F0723B912F77ADD31137D28C /* Frameworks */, 273 | 6B1FF7DF51417944BA23BA03F7047155 /* Resources */, 274 | ); 275 | buildRules = ( 276 | ); 277 | dependencies = ( 278 | ); 279 | name = DTOverlayController; 280 | productName = DTOverlayController; 281 | productReference = D41FBA5D6E5374FDD3F25FA09CA4330A /* DTOverlayController.framework */; 282 | productType = "com.apple.product-type.framework"; 283 | }; 284 | 6E54A8BD508424A8B81CD4EF726D94BE /* Pods-DTOverlayController_Tests */ = { 285 | isa = PBXNativeTarget; 286 | buildConfigurationList = 60DC8442EE061B3D8349B2D76368CB37 /* Build configuration list for PBXNativeTarget "Pods-DTOverlayController_Tests" */; 287 | buildPhases = ( 288 | 0764E5FBE5886653F432C388EE3CD4C3 /* Headers */, 289 | DD762CBFB3D2E380ECDFF497FA250D5F /* Sources */, 290 | D98CDED9A5804A648F30DA9F3D3ABEC7 /* Frameworks */, 291 | 750B9ECF5E82E8AF5575259F8F888C52 /* Resources */, 292 | ); 293 | buildRules = ( 294 | ); 295 | dependencies = ( 296 | DDC5773BCFC14E45FEE3E381A8AB1608 /* PBXTargetDependency */, 297 | ); 298 | name = "Pods-DTOverlayController_Tests"; 299 | productName = "Pods-DTOverlayController_Tests"; 300 | productReference = 3F076AFF1B1ABA89F576D3715E3327C7 /* Pods_DTOverlayController_Tests.framework */; 301 | productType = "com.apple.product-type.framework"; 302 | }; 303 | CC3C8977ABEE50F835E7A92171DA2E36 /* Pods-DTOverlayController_Example */ = { 304 | isa = PBXNativeTarget; 305 | buildConfigurationList = EA7BA354B30D51A619B9F7528AABA0B0 /* Build configuration list for PBXNativeTarget "Pods-DTOverlayController_Example" */; 306 | buildPhases = ( 307 | 2F49F871D645C472C05EA5C9532A46BB /* Headers */, 308 | D499387E3AB6A6D6F38FCC772F649E50 /* Sources */, 309 | B2F8350775A6302170E7A1064813CCF3 /* Frameworks */, 310 | 66E8C1A7B1BC9E3AE885ADD8407952D9 /* Resources */, 311 | ); 312 | buildRules = ( 313 | ); 314 | dependencies = ( 315 | 35A3A13C7C0AED4367FD7EB95477E83B /* PBXTargetDependency */, 316 | ); 317 | name = "Pods-DTOverlayController_Example"; 318 | productName = "Pods-DTOverlayController_Example"; 319 | productReference = B0395C04D48086B663620C7760FE8B42 /* Pods_DTOverlayController_Example.framework */; 320 | productType = "com.apple.product-type.framework"; 321 | }; 322 | /* End PBXNativeTarget section */ 323 | 324 | /* Begin PBXProject section */ 325 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 326 | isa = PBXProject; 327 | attributes = { 328 | LastSwiftUpdateCheck = 1020; 329 | LastUpgradeCheck = 1020; 330 | TargetAttributes = { 331 | 0A54C567BAF7759AC205CB50EDD7DA1E = { 332 | LastSwiftMigration = 1020; 333 | }; 334 | }; 335 | }; 336 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 337 | compatibilityVersion = "Xcode 3.2"; 338 | developmentRegion = en; 339 | hasScannedForEncodings = 0; 340 | knownRegions = ( 341 | en, 342 | ); 343 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 344 | productRefGroup = 0C7D6D6B0A7D30D29710776BA03DE543 /* Products */; 345 | projectDirPath = ""; 346 | projectRoot = ""; 347 | targets = ( 348 | 0A54C567BAF7759AC205CB50EDD7DA1E /* DTOverlayController */, 349 | CC3C8977ABEE50F835E7A92171DA2E36 /* Pods-DTOverlayController_Example */, 350 | 6E54A8BD508424A8B81CD4EF726D94BE /* Pods-DTOverlayController_Tests */, 351 | ); 352 | }; 353 | /* End PBXProject section */ 354 | 355 | /* Begin PBXResourcesBuildPhase section */ 356 | 66E8C1A7B1BC9E3AE885ADD8407952D9 /* Resources */ = { 357 | isa = PBXResourcesBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | 6B1FF7DF51417944BA23BA03F7047155 /* Resources */ = { 364 | isa = PBXResourcesBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | 750B9ECF5E82E8AF5575259F8F888C52 /* Resources */ = { 371 | isa = PBXResourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | /* End PBXResourcesBuildPhase section */ 378 | 379 | /* Begin PBXSourcesBuildPhase section */ 380 | D499387E3AB6A6D6F38FCC772F649E50 /* Sources */ = { 381 | isa = PBXSourcesBuildPhase; 382 | buildActionMask = 2147483647; 383 | files = ( 384 | EAA984F804C9A3BBA6725004E76DFE9E /* Pods-DTOverlayController_Example-dummy.m in Sources */, 385 | ); 386 | runOnlyForDeploymentPostprocessing = 0; 387 | }; 388 | DD762CBFB3D2E380ECDFF497FA250D5F /* Sources */ = { 389 | isa = PBXSourcesBuildPhase; 390 | buildActionMask = 2147483647; 391 | files = ( 392 | 82C6DD8A9A3B4E19F97700B0DC79D987 /* Pods-DTOverlayController_Tests-dummy.m in Sources */, 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | }; 396 | F33A99F4AF2B633B1B486E2862AAB99B /* Sources */ = { 397 | isa = PBXSourcesBuildPhase; 398 | buildActionMask = 2147483647; 399 | files = ( 400 | EBDE20AD22B8275700555B61 /* DTScrollViewRepresentable.swift in Sources */, 401 | 0AFAAF8D3378DCE43F09128D6EE31D35 /* DTOverlayController-dummy.m in Sources */, 402 | EBDE20AC22B8275700555B61 /* DTOverlayController.swift in Sources */, 403 | EBDE20AE22B8275700555B61 /* TransitioningAnimator.swift in Sources */, 404 | EBDE20AF22B8275700555B61 /* DTOverlayPresentationController.swift in Sources */, 405 | EBDE20AB22B8275700555B61 /* InteractiveTransition.swift in Sources */, 406 | ); 407 | runOnlyForDeploymentPostprocessing = 0; 408 | }; 409 | /* End PBXSourcesBuildPhase section */ 410 | 411 | /* Begin PBXTargetDependency section */ 412 | 35A3A13C7C0AED4367FD7EB95477E83B /* PBXTargetDependency */ = { 413 | isa = PBXTargetDependency; 414 | name = DTOverlayController; 415 | target = 0A54C567BAF7759AC205CB50EDD7DA1E /* DTOverlayController */; 416 | targetProxy = 502128C9F084B88C1B46AE1595AD8485 /* PBXContainerItemProxy */; 417 | }; 418 | DDC5773BCFC14E45FEE3E381A8AB1608 /* PBXTargetDependency */ = { 419 | isa = PBXTargetDependency; 420 | name = "Pods-DTOverlayController_Example"; 421 | target = CC3C8977ABEE50F835E7A92171DA2E36 /* Pods-DTOverlayController_Example */; 422 | targetProxy = 514CA677636A91A3B99617C3D27DCE50 /* PBXContainerItemProxy */; 423 | }; 424 | /* End PBXTargetDependency section */ 425 | 426 | /* Begin XCBuildConfiguration section */ 427 | 0A62E6BCB97E2CC4394FA4EED9AA5E82 /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 2BC8C863FF4C5D4FDF5DCDAE8655C1CF /* Pods-DTOverlayController_Example.release.xcconfig */; 430 | buildSettings = { 431 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 432 | CODE_SIGN_IDENTITY = ""; 433 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 435 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 436 | CURRENT_PROJECT_VERSION = 1; 437 | DEFINES_MODULE = YES; 438 | DYLIB_COMPATIBILITY_VERSION = 1; 439 | DYLIB_CURRENT_VERSION = 1; 440 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 441 | INFOPLIST_FILE = "Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-Info.plist"; 442 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 443 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 444 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 445 | MACH_O_TYPE = staticlib; 446 | MODULEMAP_FILE = "Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example.modulemap"; 447 | OTHER_LDFLAGS = ""; 448 | OTHER_LIBTOOLFLAGS = ""; 449 | PODS_ROOT = "$(SRCROOT)"; 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 451 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 452 | SDKROOT = iphoneos; 453 | SKIP_INSTALL = YES; 454 | TARGETED_DEVICE_FAMILY = "1,2"; 455 | VALIDATE_PRODUCT = YES; 456 | VERSIONING_SYSTEM = "apple-generic"; 457 | VERSION_INFO_PREFIX = ""; 458 | }; 459 | name = Release; 460 | }; 461 | 5F87D8B73425A4C4F81C5E5FDA931208 /* Release */ = { 462 | isa = XCBuildConfiguration; 463 | baseConfigurationReference = 91580F9449B0DF2CDF49DDCA262F483C /* DTOverlayController.xcconfig */; 464 | buildSettings = { 465 | CLANG_ENABLE_MODULES = YES; 466 | CODE_SIGN_IDENTITY = ""; 467 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 468 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 469 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 470 | CURRENT_PROJECT_VERSION = 1; 471 | DEFINES_MODULE = YES; 472 | DYLIB_COMPATIBILITY_VERSION = 1; 473 | DYLIB_CURRENT_VERSION = 1; 474 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 475 | GCC_PREFIX_HEADER = "Target Support Files/DTOverlayController/DTOverlayController-prefix.pch"; 476 | INFOPLIST_FILE = "Target Support Files/DTOverlayController/DTOverlayController-Info.plist"; 477 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 478 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 480 | MODULEMAP_FILE = "Target Support Files/DTOverlayController/DTOverlayController.modulemap"; 481 | PRODUCT_MODULE_NAME = DTOverlayController; 482 | PRODUCT_NAME = DTOverlayController; 483 | SDKROOT = iphoneos; 484 | SKIP_INSTALL = YES; 485 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 486 | SWIFT_VERSION = 5.0; 487 | TARGETED_DEVICE_FAMILY = "1,2"; 488 | VALIDATE_PRODUCT = YES; 489 | VERSIONING_SYSTEM = "apple-generic"; 490 | VERSION_INFO_PREFIX = ""; 491 | }; 492 | name = Release; 493 | }; 494 | 616FA48F611B983F5ECFFAE22F0BDC36 /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = 312D1D6BAD6262B9AE4085658E1F57FD /* Pods-DTOverlayController_Tests.release.xcconfig */; 497 | buildSettings = { 498 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 499 | CODE_SIGN_IDENTITY = ""; 500 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 501 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 502 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 503 | CURRENT_PROJECT_VERSION = 1; 504 | DEFINES_MODULE = YES; 505 | DYLIB_COMPATIBILITY_VERSION = 1; 506 | DYLIB_CURRENT_VERSION = 1; 507 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 508 | INFOPLIST_FILE = "Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests-Info.plist"; 509 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 510 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 511 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 512 | MACH_O_TYPE = staticlib; 513 | MODULEMAP_FILE = "Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests.modulemap"; 514 | OTHER_LDFLAGS = ""; 515 | OTHER_LIBTOOLFLAGS = ""; 516 | PODS_ROOT = "$(SRCROOT)"; 517 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 518 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 519 | SDKROOT = iphoneos; 520 | SKIP_INSTALL = YES; 521 | TARGETED_DEVICE_FAMILY = "1,2"; 522 | VALIDATE_PRODUCT = YES; 523 | VERSIONING_SYSTEM = "apple-generic"; 524 | VERSION_INFO_PREFIX = ""; 525 | }; 526 | name = Release; 527 | }; 528 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 529 | isa = XCBuildConfiguration; 530 | buildSettings = { 531 | ALWAYS_SEARCH_USER_PATHS = NO; 532 | CLANG_ANALYZER_NONNULL = YES; 533 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 534 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 535 | CLANG_CXX_LIBRARY = "libc++"; 536 | CLANG_ENABLE_MODULES = YES; 537 | CLANG_ENABLE_OBJC_ARC = YES; 538 | CLANG_ENABLE_OBJC_WEAK = YES; 539 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 540 | CLANG_WARN_BOOL_CONVERSION = YES; 541 | CLANG_WARN_COMMA = YES; 542 | CLANG_WARN_CONSTANT_CONVERSION = YES; 543 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 544 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 545 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 546 | CLANG_WARN_EMPTY_BODY = YES; 547 | CLANG_WARN_ENUM_CONVERSION = YES; 548 | CLANG_WARN_INFINITE_RECURSION = YES; 549 | CLANG_WARN_INT_CONVERSION = YES; 550 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 551 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 552 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 553 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 554 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 555 | CLANG_WARN_STRICT_PROTOTYPES = YES; 556 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 557 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 558 | CLANG_WARN_UNREACHABLE_CODE = YES; 559 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 560 | COPY_PHASE_STRIP = NO; 561 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 562 | ENABLE_NS_ASSERTIONS = NO; 563 | ENABLE_STRICT_OBJC_MSGSEND = YES; 564 | GCC_C_LANGUAGE_STANDARD = gnu11; 565 | GCC_NO_COMMON_BLOCKS = YES; 566 | GCC_PREPROCESSOR_DEFINITIONS = ( 567 | "POD_CONFIGURATION_RELEASE=1", 568 | "$(inherited)", 569 | ); 570 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 571 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 572 | GCC_WARN_UNDECLARED_SELECTOR = YES; 573 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 574 | GCC_WARN_UNUSED_FUNCTION = YES; 575 | GCC_WARN_UNUSED_VARIABLE = YES; 576 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 577 | MTL_ENABLE_DEBUG_INFO = NO; 578 | MTL_FAST_MATH = YES; 579 | PRODUCT_NAME = "$(TARGET_NAME)"; 580 | STRIP_INSTALLED_PRODUCT = NO; 581 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 582 | SWIFT_VERSION = 5.0; 583 | SYMROOT = "${SRCROOT}/../build"; 584 | }; 585 | name = Release; 586 | }; 587 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 588 | isa = XCBuildConfiguration; 589 | buildSettings = { 590 | ALWAYS_SEARCH_USER_PATHS = NO; 591 | CLANG_ANALYZER_NONNULL = YES; 592 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 593 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 594 | CLANG_CXX_LIBRARY = "libc++"; 595 | CLANG_ENABLE_MODULES = YES; 596 | CLANG_ENABLE_OBJC_ARC = YES; 597 | CLANG_ENABLE_OBJC_WEAK = YES; 598 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 599 | CLANG_WARN_BOOL_CONVERSION = YES; 600 | CLANG_WARN_COMMA = YES; 601 | CLANG_WARN_CONSTANT_CONVERSION = YES; 602 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 603 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 604 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 605 | CLANG_WARN_EMPTY_BODY = YES; 606 | CLANG_WARN_ENUM_CONVERSION = YES; 607 | CLANG_WARN_INFINITE_RECURSION = YES; 608 | CLANG_WARN_INT_CONVERSION = YES; 609 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 610 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 611 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 612 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 613 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 614 | CLANG_WARN_STRICT_PROTOTYPES = YES; 615 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 616 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 617 | CLANG_WARN_UNREACHABLE_CODE = YES; 618 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 619 | COPY_PHASE_STRIP = NO; 620 | DEBUG_INFORMATION_FORMAT = dwarf; 621 | ENABLE_STRICT_OBJC_MSGSEND = YES; 622 | ENABLE_TESTABILITY = YES; 623 | GCC_C_LANGUAGE_STANDARD = gnu11; 624 | GCC_DYNAMIC_NO_PIC = NO; 625 | GCC_NO_COMMON_BLOCKS = YES; 626 | GCC_OPTIMIZATION_LEVEL = 0; 627 | GCC_PREPROCESSOR_DEFINITIONS = ( 628 | "POD_CONFIGURATION_DEBUG=1", 629 | "DEBUG=1", 630 | "$(inherited)", 631 | ); 632 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 633 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 634 | GCC_WARN_UNDECLARED_SELECTOR = YES; 635 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 636 | GCC_WARN_UNUSED_FUNCTION = YES; 637 | GCC_WARN_UNUSED_VARIABLE = YES; 638 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 639 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 640 | MTL_FAST_MATH = YES; 641 | ONLY_ACTIVE_ARCH = YES; 642 | PRODUCT_NAME = "$(TARGET_NAME)"; 643 | STRIP_INSTALLED_PRODUCT = NO; 644 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 645 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 646 | SWIFT_VERSION = 5.0; 647 | SYMROOT = "${SRCROOT}/../build"; 648 | }; 649 | name = Debug; 650 | }; 651 | D49F31553CD9BCF972A6F2BC543E1C44 /* Debug */ = { 652 | isa = XCBuildConfiguration; 653 | baseConfigurationReference = 286982B1517E28B286290965A625DCF5 /* Pods-DTOverlayController_Tests.debug.xcconfig */; 654 | buildSettings = { 655 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 656 | CODE_SIGN_IDENTITY = ""; 657 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 658 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 659 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 660 | CURRENT_PROJECT_VERSION = 1; 661 | DEFINES_MODULE = YES; 662 | DYLIB_COMPATIBILITY_VERSION = 1; 663 | DYLIB_CURRENT_VERSION = 1; 664 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 665 | INFOPLIST_FILE = "Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests-Info.plist"; 666 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 667 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 668 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 669 | MACH_O_TYPE = staticlib; 670 | MODULEMAP_FILE = "Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests.modulemap"; 671 | OTHER_LDFLAGS = ""; 672 | OTHER_LIBTOOLFLAGS = ""; 673 | PODS_ROOT = "$(SRCROOT)"; 674 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 675 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 676 | SDKROOT = iphoneos; 677 | SKIP_INSTALL = YES; 678 | TARGETED_DEVICE_FAMILY = "1,2"; 679 | VERSIONING_SYSTEM = "apple-generic"; 680 | VERSION_INFO_PREFIX = ""; 681 | }; 682 | name = Debug; 683 | }; 684 | E6D77C9AFA252C861E3C47FA7AA50CFC /* Debug */ = { 685 | isa = XCBuildConfiguration; 686 | baseConfigurationReference = 8E77D11CBFC7E8DE2FAF4A88A5331FBA /* Pods-DTOverlayController_Example.debug.xcconfig */; 687 | buildSettings = { 688 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 689 | CODE_SIGN_IDENTITY = ""; 690 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 691 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 692 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 693 | CURRENT_PROJECT_VERSION = 1; 694 | DEFINES_MODULE = YES; 695 | DYLIB_COMPATIBILITY_VERSION = 1; 696 | DYLIB_CURRENT_VERSION = 1; 697 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 698 | INFOPLIST_FILE = "Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-Info.plist"; 699 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 700 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 701 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 702 | MACH_O_TYPE = staticlib; 703 | MODULEMAP_FILE = "Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example.modulemap"; 704 | OTHER_LDFLAGS = ""; 705 | OTHER_LIBTOOLFLAGS = ""; 706 | PODS_ROOT = "$(SRCROOT)"; 707 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 708 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 709 | SDKROOT = iphoneos; 710 | SKIP_INSTALL = YES; 711 | TARGETED_DEVICE_FAMILY = "1,2"; 712 | VERSIONING_SYSTEM = "apple-generic"; 713 | VERSION_INFO_PREFIX = ""; 714 | }; 715 | name = Debug; 716 | }; 717 | ECAB40052383ABA4623BE5DA01A829C2 /* Debug */ = { 718 | isa = XCBuildConfiguration; 719 | baseConfigurationReference = 91580F9449B0DF2CDF49DDCA262F483C /* DTOverlayController.xcconfig */; 720 | buildSettings = { 721 | CLANG_ENABLE_MODULES = YES; 722 | CODE_SIGN_IDENTITY = ""; 723 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 724 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 725 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 726 | CURRENT_PROJECT_VERSION = 1; 727 | DEFINES_MODULE = YES; 728 | DYLIB_COMPATIBILITY_VERSION = 1; 729 | DYLIB_CURRENT_VERSION = 1; 730 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 731 | GCC_PREFIX_HEADER = "Target Support Files/DTOverlayController/DTOverlayController-prefix.pch"; 732 | INFOPLIST_FILE = "Target Support Files/DTOverlayController/DTOverlayController-Info.plist"; 733 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 734 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 735 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 736 | MODULEMAP_FILE = "Target Support Files/DTOverlayController/DTOverlayController.modulemap"; 737 | PRODUCT_MODULE_NAME = DTOverlayController; 738 | PRODUCT_NAME = DTOverlayController; 739 | SDKROOT = iphoneos; 740 | SKIP_INSTALL = YES; 741 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 742 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 743 | SWIFT_VERSION = 5.0; 744 | TARGETED_DEVICE_FAMILY = "1,2"; 745 | VERSIONING_SYSTEM = "apple-generic"; 746 | VERSION_INFO_PREFIX = ""; 747 | }; 748 | name = Debug; 749 | }; 750 | /* End XCBuildConfiguration section */ 751 | 752 | /* Begin XCConfigurationList section */ 753 | 03E8491303BA5EFF716576FCFC17C93D /* Build configuration list for PBXNativeTarget "DTOverlayController" */ = { 754 | isa = XCConfigurationList; 755 | buildConfigurations = ( 756 | ECAB40052383ABA4623BE5DA01A829C2 /* Debug */, 757 | 5F87D8B73425A4C4F81C5E5FDA931208 /* Release */, 758 | ); 759 | defaultConfigurationIsVisible = 0; 760 | defaultConfigurationName = Release; 761 | }; 762 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 763 | isa = XCConfigurationList; 764 | buildConfigurations = ( 765 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 766 | B0087CB4594321EF41619F3181FE120E /* Release */, 767 | ); 768 | defaultConfigurationIsVisible = 0; 769 | defaultConfigurationName = Release; 770 | }; 771 | 60DC8442EE061B3D8349B2D76368CB37 /* Build configuration list for PBXNativeTarget "Pods-DTOverlayController_Tests" */ = { 772 | isa = XCConfigurationList; 773 | buildConfigurations = ( 774 | D49F31553CD9BCF972A6F2BC543E1C44 /* Debug */, 775 | 616FA48F611B983F5ECFFAE22F0BDC36 /* Release */, 776 | ); 777 | defaultConfigurationIsVisible = 0; 778 | defaultConfigurationName = Release; 779 | }; 780 | EA7BA354B30D51A619B9F7528AABA0B0 /* Build configuration list for PBXNativeTarget "Pods-DTOverlayController_Example" */ = { 781 | isa = XCConfigurationList; 782 | buildConfigurations = ( 783 | E6D77C9AFA252C861E3C47FA7AA50CFC /* Debug */, 784 | 0A62E6BCB97E2CC4394FA4EED9AA5E82 /* Release */, 785 | ); 786 | defaultConfigurationIsVisible = 0; 787 | defaultConfigurationName = Release; 788 | }; 789 | /* End XCConfigurationList section */ 790 | }; 791 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 792 | } 793 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DTOverlayController/DTOverlayController-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DTOverlayController/DTOverlayController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_DTOverlayController : NSObject 3 | @end 4 | @implementation PodsDummy_DTOverlayController 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DTOverlayController/DTOverlayController-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DTOverlayController/DTOverlayController-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double DTOverlayControllerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char DTOverlayControllerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DTOverlayController/DTOverlayController.modulemap: -------------------------------------------------------------------------------- 1 | framework module DTOverlayController { 2 | umbrella header "DTOverlayController-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DTOverlayController/DTOverlayController.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## DTOverlayController 5 | 6 | Copyright (c) 2019 tungvoduc 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 tungvoduc <tung98.dn@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | DTOverlayController 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_DTOverlayController_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_DTOverlayController_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/DTOverlayController/DTOverlayController.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/DTOverlayController/DTOverlayController.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_DTOverlayController_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_DTOverlayController_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController/DTOverlayController.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "DTOverlayController" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_DTOverlayController_Example { 2 | umbrella header "Pods-DTOverlayController_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Example/Pods-DTOverlayController_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController/DTOverlayController.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "DTOverlayController" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_DTOverlayController_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_DTOverlayController_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_DTOverlayController_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_DTOverlayController_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController/DTOverlayController.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "DTOverlayController" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_DTOverlayController_Tests { 2 | umbrella header "Pods-DTOverlayController_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DTOverlayController_Tests/Pods-DTOverlayController_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DTOverlayController/DTOverlayController.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "DTOverlayController" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import DTOverlayController 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 tungvoduc 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.0 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "DTOverlayController", 7 | products: [ 8 | .library(name: "DTOverlayController", targets: ["DTOverlayController"]), 9 | ], 10 | targets: [ 11 | .target( 12 | name: "DTOverlayController", 13 | path: "DTOverlayController/Classes"), 14 | ] 15 | ) 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DTOverlayController 2 | 3 | [![CI Status](https://img.shields.io/travis/tungvoduc/DTOverlayController.svg?style=flat)](https://travis-ci.org/tungvoduc/DTOverlayController) 4 | [![Version](https://img.shields.io/cocoapods/v/DTOverlayController.svg?style=flat)](https://cocoapods.org/pods/DTOverlayController) 5 | [![License](https://img.shields.io/cocoapods/l/DTOverlayController.svg?style=flat)](https://cocoapods.org/pods/DTOverlayController) 6 | [![Platform](https://img.shields.io/cocoapods/p/DTOverlayController.svg?style=flat)](https://cocoapods.org/pods/DTOverlayController) 7 | 8 | ## Screenshots 9 | ||| 10 | 11 | ## Example 12 | 13 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 14 | 15 | ## Usage 16 | To present a view controller inside an over lay controller, simply do in your view controller: 17 | 18 | ```swift 19 | let overlayController = DTOverlayController(viewController: viewController) 20 | present(overlayController, animated: true, completion: nil) 21 | 22 | ``` 23 | 24 | There are other properties that you can use to customize your over lay controller. These are some of them: 25 | 26 | ```swift 27 | let overlayController = DTOverlayController(viewController: viewController) 28 | 29 | // View controller is automatically dismissed when you release your finger 30 | overlayController.dismissableProgress = 0.4 31 | 32 | // Enable/disable pan gesture 33 | overlayController.isPanGestureEnabled = false 34 | 35 | // Update top-left and top-right corner radius 36 | overlayController.overlayViewCornerRadius = 10 37 | 38 | // Control the height of the view controller 39 | overlayController.overlayHeight = .dynamic(0.8) // 80% height of parent controller 40 | overlayController.overlayHeight = .static(300) // fixed 300-point height 41 | overlayController.overlayHeight = .inset(50) // fixed 50-point inset from top 42 | 43 | ``` 44 | 45 | You can check more of these configurations in the library. `DTOverlayController` 46 | will be further developed and new features will be coming in next releases. Feel free to contribute or suggest improvements by creating issues. 47 | 48 | ## Requirements 49 | - iOS 9.0+ 50 | 51 | ## Installation 52 | 53 | ### CocoaPods 54 | Add the following line to your Podfile: 55 | 56 | ```ruby 57 | pod 'DTOverlayController' 58 | ``` 59 | 60 | ### Swift package manager 61 | `DTOverlayController` is available for SPM from version `1.0.2`. 62 | Add the following to the dependencies of your `Package.swift`: 63 | 64 | ```swift 65 | .package(url: "https://github.com/tungvoduc/DTOverlayController", from: "1.0.x") 66 | ``` 67 | 68 | ## Author 69 | 70 | Tung Vo, tung98.dn@gmail.com 71 | 72 | ## License 73 | 74 | DTOverlayController is available under the MIT license. See the LICENSE file for more info. 75 | 76 | ## Feedbacks & requests 77 | - Open an issue if you find a bug, make a proposal or simply need some help. 78 | - You can also contact me via [email](mailto:tung98.dn@gmail.com). 79 | -------------------------------------------------------------------------------- /Screenshots/screenshot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Screenshots/screenshot.gif -------------------------------------------------------------------------------- /Screenshots/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungvoduc/DTOverlayController/bd000eb6552c28e8749af3102fef03f8ebe029a7/Screenshots/screenshot.png -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /setup/ConfigureiOS.rb: -------------------------------------------------------------------------------- 1 | module Pod 2 | 3 | class ConfigureIOS 4 | attr_reader :configurator 5 | 6 | def self.perform(options) 7 | new(options).perform 8 | end 9 | 10 | def initialize(options) 11 | @configurator = options.fetch(:configurator) 12 | end 13 | 14 | def perform 15 | 16 | keep_demo = configurator.ask_with_answers("Would you like to include a demo application with your library", ["Yes", "No"]).to_sym 17 | 18 | framework = configurator.ask_with_answers("Which testing frameworks will you use", ["Specta", "Kiwi", "None"]).to_sym 19 | case framework 20 | when :specta 21 | configurator.add_pod_to_podfile "Specta" 22 | configurator.add_pod_to_podfile "Expecta" 23 | 24 | configurator.add_line_to_pch "@import Specta;" 25 | configurator.add_line_to_pch "@import Expecta;" 26 | 27 | configurator.set_test_framework("specta", "m", "ios") 28 | 29 | when :kiwi 30 | configurator.add_pod_to_podfile "Kiwi" 31 | configurator.add_line_to_pch "@import Kiwi;" 32 | configurator.set_test_framework("kiwi", "m", "ios") 33 | 34 | when :none 35 | configurator.set_test_framework("xctest", "m", "ios") 36 | end 37 | 38 | snapshots = configurator.ask_with_answers("Would you like to do view based testing", ["Yes", "No"]).to_sym 39 | case snapshots 40 | when :yes 41 | configurator.add_pod_to_podfile "FBSnapshotTestCase" 42 | configurator.add_line_to_pch "@import FBSnapshotTestCase;" 43 | 44 | if keep_demo == :no 45 | puts " Putting demo application back in, you cannot do view tests without a host application." 46 | keep_demo = :yes 47 | end 48 | 49 | if framework == :specta 50 | configurator.add_pod_to_podfile "Expecta+Snapshots" 51 | configurator.add_line_to_pch "@import Expecta_Snapshots;" 52 | end 53 | end 54 | 55 | prefix = nil 56 | 57 | loop do 58 | prefix = configurator.ask("What is your class prefix") 59 | 60 | if prefix.include?(' ') 61 | puts 'Your class prefix cannot contain spaces.'.red 62 | else 63 | break 64 | end 65 | end 66 | 67 | Pod::ProjectManipulator.new({ 68 | :configurator => @configurator, 69 | :xcodeproj_path => "templates/ios/Example/PROJECT.xcodeproj", 70 | :platform => :ios, 71 | :remove_demo_project => (keep_demo == :no), 72 | :prefix => prefix 73 | }).run 74 | 75 | # There has to be a single file in the Classes dir 76 | # or a framework won't be created, which is now default 77 | `touch Pod/Classes/ReplaceMe.m` 78 | 79 | `mv ./templates/ios/* ./` 80 | 81 | # remove podspec for osx 82 | `rm ./NAME-osx.podspec` 83 | end 84 | end 85 | 86 | end 87 | -------------------------------------------------------------------------------- /setup/MessageBank.rb: -------------------------------------------------------------------------------- 1 | module Pod 2 | class MessageBank 3 | attr_reader :configurator 4 | 5 | def initialize(config) 6 | @configurator = config 7 | end 8 | 9 | def show_prompt 10 | print " > ".green 11 | end 12 | 13 | def yellow_bang 14 | "! ".yellow 15 | end 16 | 17 | def green_bang 18 | "! ".green 19 | end 20 | 21 | def red_bang 22 | "! ".red 23 | end 24 | 25 | def run_command command, output_command=nil 26 | output_command ||= command 27 | 28 | puts " " + output_command.magenta 29 | system command 30 | end 31 | 32 | def welcome_message 33 | unless @configurator.validate_user_details 34 | run_setup_questions 35 | end 36 | 37 | puts "\n------------------------------" 38 | puts "" 39 | puts "To get you started we need to ask a few questions, this should only take a minute." 40 | puts "" 41 | 42 | has_run_before = `defaults read org.cocoapods.pod-template HasRunbefore`.chomp == "1" 43 | 44 | puts "If this is your first time we recommend running through with the guide: " 45 | puts " - " + "https://guides.cocoapods.org/making/using-pod-lib-create.html".blue.underlined 46 | 47 | if ENV["TERM_PROGRAM"] == "iTerm.app" 48 | puts " ( hold cmd and click links to open in a browser. )".magenta 49 | else 50 | puts " ( hold cmd and double click links to open in a browser. )".magenta 51 | end 52 | 53 | unless has_run_before 54 | puts "\n Press return to continue." 55 | `defaults write org.cocoapods.pod-template HasRunbefore -bool true` 56 | end 57 | 58 | puts "" 59 | end 60 | 61 | def farewell_message 62 | puts "" 63 | 64 | puts " Ace! you're ready to go!" 65 | puts " We will start you off by opening your project in Xcode" 66 | pod_name = @configurator.pod_name 67 | run_command "open 'Example/#{pod_name}.xcworkspace'", "open '#{pod_name}/Example/#{pod_name}.xcworkspace'" 68 | end 69 | 70 | 71 | def run_setup_questions 72 | 73 | puts yellow_bang + "Before you can create a new library we need to setup your git credentials." 74 | 75 | unless @configurator.user_name.length > 0 76 | puts "\n What is your name? " 77 | answer = "" 78 | 79 | loop do 80 | show_prompt 81 | 82 | answer = gets.chomp 83 | break if answer.length > 0 84 | 85 | puts red_bang + "Please enter a name." 86 | end 87 | 88 | puts "" 89 | puts green_bang + "Setting your name in git to " + answer 90 | run_command('git config user.name "' + answer + '"') 91 | end 92 | 93 | unless @configurator.user_email.length > 0 94 | puts "\n What is your email?" 95 | answer = "" 96 | 97 | loop do 98 | show_prompt 99 | answer = gets.downcase.chomp 100 | break if answer.length > 0 101 | 102 | puts red_bang + "Please enter a email." 103 | end 104 | 105 | puts "" 106 | puts green_bang + "Setting your email in git to " + answer 107 | run_command('git config user.email "' + answer + '"') 108 | end 109 | 110 | end 111 | 112 | end 113 | end 114 | -------------------------------------------------------------------------------- /setup/test_examples/quick.swift: -------------------------------------------------------------------------------- 1 | // https://github.com/Quick/Quick 2 | 3 | import Quick 4 | import Nimble 5 | import PROJECT 6 | 7 | class TableOfContentsSpec: QuickSpec { 8 | override func spec() { 9 | describe("these will fail") { 10 | 11 | it("can do maths") { 12 | expect(1) == 2 13 | } 14 | 15 | it("can read") { 16 | expect("number") == "string" 17 | } 18 | 19 | it("will eventually fail") { 20 | expect("time").toEventually( equal("done") ) 21 | } 22 | 23 | context("these will pass") { 24 | 25 | it("can do maths") { 26 | expect(23) == 23 27 | } 28 | 29 | it("can read") { 30 | expect("🐮") == "🐮" 31 | } 32 | 33 | it("will eventually pass") { 34 | var time = "passing" 35 | 36 | DispatchQueue.main.async { 37 | time = "done" 38 | } 39 | 40 | waitUntil { done in 41 | Thread.sleep(forTimeInterval: 0.5) 42 | expect(time) == "done" 43 | 44 | done() 45 | } 46 | } 47 | } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /setup/test_examples/xctest.m: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | 3 | @interface Tests : XCTestCase 4 | 5 | @end 6 | 7 | @implementation Tests 8 | 9 | - (void)setUp 10 | { 11 | [super setUp]; 12 | // Put setup code here. This method is called before the invocation of each test method in the class. 13 | } 14 | 15 | - (void)tearDown 16 | { 17 | // Put teardown code here. This method is called after the invocation of each test method in the class. 18 | [super tearDown]; 19 | } 20 | 21 | - (void)testExample 22 | { 23 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/CPDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // CPDAppDelegate.h 3 | // PROJECT 4 | // 5 | // Created by PROJECT_OWNER on TODAYS_DATE. 6 | // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface CPDAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/CPDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // CPDAppDelegate.m 3 | // PROJECT 4 | // 5 | // Created by PROJECT_OWNER on TODAYS_DATE. 6 | // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved. 7 | // 8 | 9 | #import "CPDAppDelegate.h" 10 | 11 | @implementation CPDAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/CPDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CPDViewController.m 3 | // PROJECT 4 | // 5 | // Created by PROJECT_OWNER on TODAYS_DATE. 6 | // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved. 7 | // 8 | 9 | #import "CPDViewController.h" 10 | 11 | @interface CPDViewController () 12 | 13 | @end 14 | 15 | @implementation CPDViewController 16 | 17 | - (void)viewDidLoad 18 | { 19 | [super viewDidLoad]; 20 | // Do any additional setup after loading the view, typically from a nib. 21 | } 22 | 23 | - (void)didReceiveMemoryWarning 24 | { 25 | [super didReceiveMemoryWarning]; 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/PROJECT-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/PROJECT-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /templates/ios/Example/PROJECT/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // PROJECT 4 | // 5 | // Created by PROJECT_OWNER on TODAYS_DATE. 6 | // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "CPDAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([CPDAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /templates/ios/Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '8.0' 4 | 5 | target '${POD_NAME}_Example' do 6 | pod '${POD_NAME}', :path => '../' 7 | 8 | target '${POD_NAME}_Tests' do 9 | inherit! :search_paths 10 | 11 | ${INCLUDED_PODS} 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /templates/ios/Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /templates/ios/Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | ${INCLUDED_PREFIXES} 6 | 7 | #endif -------------------------------------------------------------------------------- /templates/ios/Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // PROJECTTests.m 3 | // PROJECTTests 4 | // 5 | // Created by PROJECT_OWNER on TODAYS_DATE. 6 | // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved. 7 | // 8 | 9 | ${TEST_EXAMPLE} 10 | -------------------------------------------------------------------------------- /templates/ios/Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /templates/macos-swift/Example/PROJECT/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSMainStoryboardFile 26 | Main 27 | NSPrincipalClass 28 | NSApplication 29 | 30 | 31 | -------------------------------------------------------------------------------- /templates/macos-swift/Example/PROJECT/PROJECT.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /templates/macos-swift/Example/PROJECT/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PROJECT 4 | // 5 | // Created by PROJECT_OWNER on TODAYS_DATE. 6 | // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class ViewController: NSViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | // Do any additional setup after loading the view. 17 | } 18 | 19 | override var representedObject: Any? { 20 | didSet { 21 | // Update the view, if already loaded. 22 | } 23 | } 24 | 25 | 26 | } 27 | 28 | -------------------------------------------------------------------------------- /templates/macos-swift/Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /templates/macos-swift/Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | ${TEST_EXAMPLE} 2 | --------------------------------------------------------------------------------