├── .gitignore ├── DJSemiModalViewController.podspec ├── DJSemiModalViewController ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── DJSemiModalViewController.swift ├── Example ├── DJSemiModalViewController.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── DJSemiModalViewController-Example.xcscheme ├── DJSemiModalViewController.xcworkspace │ └── contents.xcworkspacedata ├── DJSemiModalViewController │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── Image.imageset │ │ │ ├── Contents.json │ │ │ └── rawpixel-com-585640-unsplash.jpg │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── DJSemiModalViewController.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ └── Target Support Files │ │ ├── DJSemiModalViewController │ │ ├── DJSemiModalViewController-dummy.m │ │ ├── DJSemiModalViewController-prefix.pch │ │ ├── DJSemiModalViewController-umbrella.h │ │ ├── DJSemiModalViewController.modulemap │ │ ├── DJSemiModalViewController.xcconfig │ │ └── Info.plist │ │ ├── Pods-DJSemiModalViewController_Example │ │ ├── Info.plist │ │ ├── Pods-DJSemiModalViewController_Example-acknowledgements.markdown │ │ ├── Pods-DJSemiModalViewController_Example-acknowledgements.plist │ │ ├── Pods-DJSemiModalViewController_Example-dummy.m │ │ ├── Pods-DJSemiModalViewController_Example-frameworks.sh │ │ ├── Pods-DJSemiModalViewController_Example-resources.sh │ │ ├── Pods-DJSemiModalViewController_Example-umbrella.h │ │ ├── Pods-DJSemiModalViewController_Example.debug.xcconfig │ │ ├── Pods-DJSemiModalViewController_Example.modulemap │ │ └── Pods-DJSemiModalViewController_Example.release.xcconfig │ │ └── Pods-DJSemiModalViewController_Tests │ │ ├── Info.plist │ │ ├── Pods-DJSemiModalViewController_Tests-acknowledgements.markdown │ │ ├── Pods-DJSemiModalViewController_Tests-acknowledgements.plist │ │ ├── Pods-DJSemiModalViewController_Tests-dummy.m │ │ ├── Pods-DJSemiModalViewController_Tests-frameworks.sh │ │ ├── Pods-DJSemiModalViewController_Tests-resources.sh │ │ ├── Pods-DJSemiModalViewController_Tests-umbrella.h │ │ ├── Pods-DJSemiModalViewController_Tests.debug.xcconfig │ │ ├── Pods-DJSemiModalViewController_Tests.modulemap │ │ └── Pods-DJSemiModalViewController_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── Screencast_1.gif ├── _Pods.xcodeproj └── screenshots_1.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | .build/ 41 | 42 | # CocoaPods 43 | # 44 | # We recommend against adding the Pods directory to your .gitignore. However 45 | # you should judge for yourself, the pros and cons are mentioned at: 46 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 47 | # 48 | # Pods/ 49 | 50 | # Carthage 51 | # 52 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 53 | # Carthage/Checkouts 54 | 55 | Carthage/Build 56 | 57 | # fastlane 58 | # 59 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 60 | # screenshots whenever they are needed. 61 | # For more information about the recommended setup visit: 62 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 63 | 64 | fastlane/report.xml 65 | fastlane/Preview.html 66 | fastlane/screenshots 67 | fastlane/test_output 68 | -------------------------------------------------------------------------------- /DJSemiModalViewController.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint DJSemiModalViewController.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 http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'DJSemiModalViewController' 11 | s.version = '0.1.4' 12 | s.summary = 'Simple semi modal presentation dialog with stacked content.' 13 | 14 | s.description = 'DJSemiModalViewController is a semi modal presentation dialog that grows with it´s added content. DJSemiModalViewController works for iPhone and iPad. The content is added to a UIStackView that is inside of an UIScrollView that adds scroll if needed. DJSemiModalViewController mimic the design of the standard NFC dialog on iPhone.' 15 | 16 | s.homepage = 'https://github.com/davnag/DJSemiModalViewController' 17 | s.screenshots = 'https://raw.githubusercontent.com/davnag/DJSemiModalViewController/master/screenshots_1.png' 18 | s.license = { :type => 'MIT', :file => 'LICENSE' } 19 | s.author = { 'David Jonsén' => 'jonsen.dev@outlook.com' } 20 | s.source = { :git => 'https://github.com/davnag/DJSemiModalViewController.git', :tag => s.version.to_s } 21 | 22 | s.ios.deployment_target = '9.0' 23 | s.swift_version = '4.0' 24 | 25 | s.source_files = 'DJSemiModalViewController/Classes/**/*' 26 | 27 | end 28 | -------------------------------------------------------------------------------- /DJSemiModalViewController/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davnag/DJSemiModalViewController/075eb33fc77e7b21c6cc11ca78f089a4b4b24e62/DJSemiModalViewController/Assets/.gitkeep -------------------------------------------------------------------------------- /DJSemiModalViewController/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davnag/DJSemiModalViewController/075eb33fc77e7b21c6cc11ca78f089a4b4b24e62/DJSemiModalViewController/Classes/.gitkeep -------------------------------------------------------------------------------- /DJSemiModalViewController/Classes/DJSemiModalViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DJSemiModalViewController.swift 3 | // DJSemiModalViewController 4 | // 5 | // Created by David Jonsén on 2018-04-01. 6 | // Copyright © 2018 David Jonsén. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class DJSemiModalViewController: UIViewController { 12 | 13 | // MARK: Private Properties 14 | 15 | private lazy var backgroundCoverView: UIView = { 16 | let view = UIView() 17 | view.backgroundColor = .clear 18 | view.translatesAutoresizingMaskIntoConstraints = false 19 | return view 20 | }() 21 | 22 | private var contentViewOriginalCenter: CGPoint? 23 | 24 | private lazy var contentViewMinimumHeightLayoutConstraint: NSLayoutConstraint = { 25 | contentView.heightAnchor.constraint(greaterThanOrEqualToConstant: minHeight) 26 | }() 27 | 28 | private lazy var contentViewMaximumHeightLayoutConstraint: NSLayoutConstraint = { 29 | contentView.heightAnchor.constraint(lessThanOrEqualToConstant: self.view.bounds.height - 20) 30 | }() 31 | 32 | private lazy var contentViewMaximumWidthLayoutConstraint: NSLayoutConstraint = { 33 | let constraint = contentView.widthAnchor.constraint(lessThanOrEqualToConstant: maxWidth) 34 | constraint.priority = UILayoutPriority.init(999) 35 | return constraint 36 | }() 37 | 38 | private lazy var scrollViewHeightLayoutConstraint: NSLayoutConstraint = { 39 | scrollView.heightAnchor.constraint(equalToConstant: 0) 40 | }() 41 | 42 | private let scrollView: UIScrollView = { 43 | let view = UIScrollView() 44 | view.translatesAutoresizingMaskIntoConstraints = false 45 | return view 46 | }() 47 | 48 | private let stackView: UIStackView = { 49 | let view = UIStackView() 50 | view.axis = .vertical 51 | view.alignment = .fill 52 | view.distribution = .fill 53 | view.spacing = 6 54 | view.isUserInteractionEnabled = true 55 | view.translatesAutoresizingMaskIntoConstraints = false 56 | return view 57 | }() 58 | 59 | private lazy var contentView: UIView = { 60 | let view = UIView() 61 | view.layer.cornerRadius = 16 62 | view.layer.shadowColor = UIColor.black.cgColor 63 | view.layer.shadowOpacity = 0.3 64 | view.layer.shadowOffset = CGSize.zero 65 | view.layer.shadowRadius = 4 66 | view.backgroundColor = .white 67 | view.translatesAutoresizingMaskIntoConstraints = false 68 | return view 69 | }() 70 | 71 | private var viewWillDismissHandler: ViewWillDismiss? 72 | 73 | // MARK: Public Properties 74 | 75 | public typealias ViewWillDismiss = () -> Void 76 | 77 | /** 78 | * Adjust content height automatically 79 | */ 80 | public var automaticallyAdjustsContentHeight: Bool = true 81 | 82 | /** 83 | * The title label for the view 84 | */ 85 | public lazy var titleLabel: UILabel = { 86 | let label = UILabel() 87 | label.font = UIFont.systemFont(ofSize: 20, weight: .semibold) 88 | label.textAlignment = .center 89 | label.translatesAutoresizingMaskIntoConstraints = false 90 | return label 91 | }() 92 | 93 | /** 94 | * The close button for the view 95 | */ 96 | public let closeButton: UIButton = { 97 | let button = UIButton() 98 | button.setTitle("Close", for: .normal) 99 | button.setTitleColor(.black, for: .normal) 100 | button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 16) 101 | button.addTarget(self, action: #selector(closeButtonAction), for: .touchUpInside) 102 | button.layer.cornerRadius = 8 103 | button.backgroundColor = UIColor(red: 208.0 / 255.0, green: 208.0 / 255.0, blue: 214.0 / 255.0, alpha: 1) 104 | button.translatesAutoresizingMaskIntoConstraints = false 105 | return button 106 | }() 107 | 108 | /** 109 | * Set the minimum height for the view 110 | */ 111 | public var minHeight: CGFloat = 200 { 112 | didSet { 113 | contentViewMinimumHeightLayoutConstraint.constant = minHeight 114 | } 115 | } 116 | 117 | /** 118 | * Set the maximum with for the view 119 | */ 120 | public var maxWidth: CGFloat = 370 { 121 | didSet { 122 | contentViewMaximumWidthLayoutConstraint.constant = maxWidth 123 | } 124 | } 125 | 126 | // MARK: - Setup 127 | 128 | private func setupView() { 129 | view.backgroundColor = .clear 130 | } 131 | 132 | private func setupContentView() { 133 | 134 | view.addSubview(contentView) 135 | 136 | let margin: CGFloat = 10.0 137 | 138 | let leadingAnchorConstraint = contentView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: margin) 139 | leadingAnchorConstraint.priority = .defaultHigh 140 | 141 | let trailingAnchorConstraint = view.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: margin) 142 | trailingAnchorConstraint.priority = .defaultHigh 143 | 144 | NSLayoutConstraint.activate([ 145 | leadingAnchorConstraint, 146 | trailingAnchorConstraint, 147 | contentView.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -margin), 148 | contentView.centerXAnchor.constraint(equalTo: view.centerXAnchor), 149 | contentViewMaximumHeightLayoutConstraint, 150 | contentViewMaximumWidthLayoutConstraint, 151 | contentViewMinimumHeightLayoutConstraint 152 | ]) 153 | } 154 | 155 | private func setupTitleLabel() { 156 | 157 | contentView.addSubview(titleLabel) 158 | 159 | let margin: CGFloat = 10.0 160 | let titleLabelHeight: CGFloat = 44.0 161 | 162 | NSLayoutConstraint.activate([ 163 | titleLabel.topAnchor.constraint(equalTo: contentView.topAnchor, constant: margin), 164 | titleLabel.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: margin * 2), 165 | titleLabel.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -margin * 2), 166 | titleLabel.heightAnchor.constraint(equalToConstant: titleLabelHeight) 167 | ]) 168 | } 169 | 170 | private func setupScrollView() { 171 | 172 | contentView.addSubview(scrollView) 173 | 174 | scrollViewHeightLayoutConstraint.priority = UILayoutPriority.defaultLow 175 | 176 | NSLayoutConstraint.activate([ 177 | scrollView.topAnchor.constraint(equalTo: titleLabel.bottomAnchor, constant: 6), 178 | scrollView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 24), 179 | scrollView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -24), 180 | scrollView.bottomAnchor.constraint(equalTo: closeButton.topAnchor, constant: -24), 181 | scrollViewHeightLayoutConstraint 182 | ]) 183 | } 184 | 185 | private func setupStackView() { 186 | 187 | scrollView.addSubview(stackView) 188 | 189 | NSLayoutConstraint.activate([ 190 | stackView.topAnchor.constraint(equalTo: scrollView.topAnchor, constant: 0), 191 | stackView.leadingAnchor.constraint(equalTo: scrollView.leadingAnchor, constant: 0), 192 | stackView.trailingAnchor.constraint(equalTo: scrollView.trailingAnchor, constant: 0), 193 | stackView.bottomAnchor.constraint(equalTo: scrollView.bottomAnchor, constant: 0), 194 | stackView.widthAnchor.constraint(equalTo: scrollView.widthAnchor) 195 | ]) 196 | } 197 | 198 | private func setupCloseButton() { 199 | 200 | contentView.addSubview(closeButton) 201 | 202 | NSLayoutConstraint.activate([ 203 | closeButton.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 20), 204 | closeButton.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -20), 205 | closeButton.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -20), 206 | closeButton.heightAnchor.constraint(equalToConstant: 44) 207 | ]) 208 | } 209 | 210 | private func setupGestureRecognizer() { 211 | let closeOnTapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(closeButtonAction)) 212 | closeOnTapGestureRecognizer.delegate = self 213 | view.addGestureRecognizer(closeOnTapGestureRecognizer) 214 | 215 | let dragContentViewGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(dragContentViewGesture)) 216 | dragContentViewGestureRecognizer.delegate = self 217 | contentView.addGestureRecognizer(dragContentViewGestureRecognizer) 218 | } 219 | 220 | // MARK: - Initialization 221 | 222 | public init() { 223 | super.init(nibName: nil, bundle: nil) 224 | setupView() 225 | setupContentView() 226 | setupTitleLabel() 227 | setupCloseButton() 228 | setupScrollView() 229 | setupStackView() 230 | setupGestureRecognizer() 231 | } 232 | 233 | public required init?(coder aDecoder: NSCoder) { 234 | super.init(coder: aDecoder) 235 | setupView() 236 | setupContentView() 237 | setupTitleLabel() 238 | setupCloseButton() 239 | setupScrollView() 240 | setupStackView() 241 | setupGestureRecognizer() 242 | } 243 | 244 | open override func viewDidLoad() { 245 | super.viewDidLoad() 246 | } 247 | 248 | open override func viewDidLayoutSubviews() { 249 | super.viewDidLayoutSubviews() 250 | 251 | updateScrollViewHeightConstraint() 252 | flashScrollViewScrollIndicatorsIfNeeded() 253 | } 254 | } 255 | 256 | extension DJSemiModalViewController { 257 | 258 | // MARK: - Private 259 | 260 | @IBAction private func closeButtonAction(_ sender: Any) { 261 | dismiss(animated: true) 262 | } 263 | 264 | public func updateScrollViewHeightConstraint() { 265 | let size = stackView.systemLayoutSizeFitting(UILayoutFittingCompressedSize) 266 | scrollViewHeightLayoutConstraint.constant = automaticallyAdjustsContentHeight ? size.height : stackView.frame.height 267 | scrollViewHeightLayoutConstraint.isActive = scrollViewHeightLayoutConstraint.constant > 0.0 268 | 269 | 270 | contentView.setNeedsUpdateConstraints() 271 | contentView.layoutIfNeeded() 272 | 273 | view.setNeedsUpdateConstraints() 274 | 275 | UIView.animate(withDuration: 0.25, animations: { 276 | self.view.layoutIfNeeded() 277 | }) 278 | } 279 | 280 | private func flashScrollViewScrollIndicatorsIfNeeded() { 281 | DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(200)) { 282 | if self.scrollView.bounds.height < self.scrollView.contentSize.height { 283 | self.scrollView.flashScrollIndicators() 284 | } 285 | } 286 | } 287 | } 288 | 289 | extension DJSemiModalViewController { 290 | 291 | // MARK: Public 292 | 293 | /** 294 | * Set the title and title label text 295 | */ 296 | override open var title: String? { 297 | didSet { 298 | titleLabel.text = title 299 | } 300 | } 301 | 302 | /** 303 | * Add a subview to the bottom of the content view 304 | */ 305 | public func addArrangedSubview(view: UIView) { 306 | stackView.addArrangedSubview(view) 307 | } 308 | 309 | /** 310 | * Add a subview with a specified height to the bottom of the content view 311 | */ 312 | public func addArrangedSubview(view: UIView, height: CGFloat) { 313 | view.translatesAutoresizingMaskIntoConstraints = false 314 | 315 | NSLayoutConstraint.activate([ 316 | view.heightAnchor.constraint(equalToConstant: height) 317 | ]) 318 | 319 | addArrangedSubview(view: view) 320 | } 321 | 322 | /** 323 | * Insert a subview at an index of the content view 324 | */ 325 | public func insertArrangedSubview(view: UIView, at index: Int) { 326 | stackView.insertArrangedSubview(view, at: index) 327 | } 328 | 329 | /** 330 | * Dismiss DJSemiModalViewController 331 | */ 332 | 333 | open override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) { 334 | viewWillDismissHandler?() 335 | super.dismiss(animated: flag, completion: completion) 336 | } 337 | } 338 | 339 | extension DJSemiModalViewController { 340 | 341 | // MARK: Public presentation 342 | 343 | /** 344 | * Present the view on top of a controller, with animation and a dismiss closure 345 | */ 346 | 347 | public func presentOn(presentingViewController: UIViewController, animated: Bool = true, onDismiss dismissHandler: ViewWillDismiss?) { 348 | 349 | modalPresentationStyle = .overCurrentContext 350 | 351 | self.viewWillDismissHandler = { [weak self] in 352 | 353 | UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: { 354 | self?.backgroundCoverView.backgroundColor = UIColor.clear 355 | }, completion: { (_) in 356 | self?.backgroundCoverView.removeFromSuperview() 357 | }) 358 | 359 | dismissHandler?() 360 | } 361 | 362 | presentingViewController.view.addSubview(backgroundCoverView) 363 | 364 | NSLayoutConstraint.activate([ 365 | backgroundCoverView.leadingAnchor.constraint(equalTo: presentingViewController.view.leadingAnchor, constant: 0), 366 | backgroundCoverView.trailingAnchor.constraint(equalTo: presentingViewController.view.trailingAnchor, constant: 0), 367 | backgroundCoverView.bottomAnchor.constraint(equalTo: presentingViewController.view.bottomAnchor, constant: 0), 368 | backgroundCoverView.topAnchor.constraint(equalTo: presentingViewController.view.topAnchor, constant: 0) 369 | ]) 370 | 371 | UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: { 372 | self.backgroundCoverView.backgroundColor = UIColor(white: 0.2, alpha: 0.6) 373 | }, completion: { (_) in }) 374 | 375 | presentingViewController.present(self, animated: true) 376 | } 377 | } 378 | 379 | // MARK: - 380 | 381 | extension DJSemiModalViewController: UIGestureRecognizerDelegate { 382 | 383 | // MARK: UIGestureRecognizerDelegate 384 | 385 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool { 386 | if gestureRecognizer is UITapGestureRecognizer { 387 | if let view = touch.view, view == self.view { 388 | return true 389 | } 390 | return false 391 | } 392 | return true 393 | } 394 | } 395 | 396 | extension DJSemiModalViewController { 397 | 398 | // MARK: Gesture Handling 399 | 400 | @objc 401 | private func dragContentViewGesture(_ gestureRecognizer: UIPanGestureRecognizer) { 402 | 403 | if contentViewOriginalCenter == nil { 404 | contentViewOriginalCenter = contentView.center 405 | } 406 | 407 | moveContentView(gestureRecognizer: gestureRecognizer) 408 | 409 | contentViewStateEnded(gestureRecognizer: gestureRecognizer) 410 | } 411 | 412 | private func moveContentView(gestureRecognizer: UIPanGestureRecognizer) { 413 | 414 | if gestureRecognizer.state == .began || gestureRecognizer.state == .changed { 415 | let translation = gestureRecognizer.translation(in: self.view) 416 | 417 | guard let gestureRecognizerView = gestureRecognizer.view else { 418 | return 419 | } 420 | 421 | let newCenter = CGPoint(x: gestureRecognizerView.center.x, 422 | y: gestureRecognizerView.center.y + translation.y) 423 | gestureRecognizerView.center = newCenter 424 | 425 | gestureRecognizer.setTranslation(CGPoint.zero, in: self.view) 426 | } 427 | } 428 | 429 | private func contentViewStateEnded(gestureRecognizer: UIPanGestureRecognizer) { 430 | 431 | if gestureRecognizer.state == .ended, let contentViewOriginalCenter = self.contentViewOriginalCenter { 432 | 433 | let distance = contentViewOriginalCenter.y - self.contentView.center.y 434 | let velocity = gestureRecognizer.velocity(in: view) 435 | 436 | if velocity.y > 2_000 { 437 | dismiss(animated: true) 438 | } else { 439 | let springVelocity = -1.0 * velocity.y / distance 440 | 441 | UIView.animate(withDuration: 0.6, delay: 0, usingSpringWithDamping: 0.6, initialSpringVelocity: springVelocity, options: .curveLinear, animations: { 442 | self.contentView.center = contentViewOriginalCenter 443 | }, completion: { _ in }) 444 | } 445 | } 446 | } 447 | } 448 | 449 | extension DJSemiModalViewController { 450 | 451 | // MARK: View Transition 452 | 453 | open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { 454 | super.viewWillTransition(to: size, with: coordinator) 455 | contentViewMaximumHeightLayoutConstraint.constant = size.height - 20 456 | 457 | if contentViewMinimumHeightLayoutConstraint.constant > contentViewMaximumHeightLayoutConstraint.constant { 458 | contentViewMinimumHeightLayoutConstraint.constant = contentViewMaximumHeightLayoutConstraint.constant 459 | } else { 460 | contentViewMinimumHeightLayoutConstraint.constant = minHeight 461 | } 462 | } 463 | } 464 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 511DEAC22071079B002279E5 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 511DEAC12071079B002279E5 /* ViewController.swift */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | A0C26CED99E0C8F8A71F8474 /* Pods_DJSemiModalViewController_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C7A091926CAB6ECF107CAFA9 /* Pods_DJSemiModalViewController_Example.framework */; }; 17 | FFEB15BD021BC4598A6A7DC9 /* Pods_DJSemiModalViewController_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A4B01D1462AFFB468AD6F62 /* Pods_DJSemiModalViewController_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = DJSemiModalViewController; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 1A4B01D1462AFFB468AD6F62 /* Pods_DJSemiModalViewController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DJSemiModalViewController_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 347DAB63677ADD14237EF358 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 33 | 511DEAC12071079B002279E5 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 34 | 607FACD01AFB9204008FA782 /* DJSemiModalViewController_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DJSemiModalViewController_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 607FACE51AFB9204008FA782 /* DJSemiModalViewController_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DJSemiModalViewController_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 43 | 62E9F67B15123AFD889BB8DA /* Pods-DJSemiModalViewController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DJSemiModalViewController_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example.debug.xcconfig"; sourceTree = ""; }; 44 | 6FD1B04F75109755322DE993 /* Pods-DJSemiModalViewController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DJSemiModalViewController_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests.debug.xcconfig"; sourceTree = ""; }; 45 | 7CB2A78635E1F18A586C0C88 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 46 | A822BC54005526BAE7C9C999 /* Pods-DJSemiModalViewController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DJSemiModalViewController_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example.release.xcconfig"; sourceTree = ""; }; 47 | C7A091926CAB6ECF107CAFA9 /* Pods_DJSemiModalViewController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DJSemiModalViewController_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | CFA380C4D8816F9FE8C16CE6 /* DJSemiModalViewController.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = DJSemiModalViewController.podspec; path = ../DJSemiModalViewController.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | F499332DD0A965321C44A13B /* Pods-DJSemiModalViewController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DJSemiModalViewController_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | A0C26CED99E0C8F8A71F8474 /* Pods_DJSemiModalViewController_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | FFEB15BD021BC4598A6A7DC9 /* Pods_DJSemiModalViewController_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 525BCB3B7CEE9D98DB33DB26 /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 62E9F67B15123AFD889BB8DA /* Pods-DJSemiModalViewController_Example.debug.xcconfig */, 76 | A822BC54005526BAE7C9C999 /* Pods-DJSemiModalViewController_Example.release.xcconfig */, 77 | 6FD1B04F75109755322DE993 /* Pods-DJSemiModalViewController_Tests.debug.xcconfig */, 78 | F499332DD0A965321C44A13B /* Pods-DJSemiModalViewController_Tests.release.xcconfig */, 79 | ); 80 | name = Pods; 81 | sourceTree = ""; 82 | }; 83 | 607FACC71AFB9204008FA782 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 87 | 607FACD21AFB9204008FA782 /* Example for DJSemiModalViewController */, 88 | 607FACE81AFB9204008FA782 /* Tests */, 89 | 607FACD11AFB9204008FA782 /* Products */, 90 | 525BCB3B7CEE9D98DB33DB26 /* Pods */, 91 | A4F210EA5D652D1C99349E9A /* Frameworks */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 607FACD11AFB9204008FA782 /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 607FACD01AFB9204008FA782 /* DJSemiModalViewController_Example.app */, 99 | 607FACE51AFB9204008FA782 /* DJSemiModalViewController_Tests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 607FACD21AFB9204008FA782 /* Example for DJSemiModalViewController */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 108 | 511DEAC12071079B002279E5 /* ViewController.swift */, 109 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 110 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 111 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 112 | 607FACD31AFB9204008FA782 /* Supporting Files */, 113 | ); 114 | name = "Example for DJSemiModalViewController"; 115 | path = DJSemiModalViewController; 116 | sourceTree = ""; 117 | }; 118 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 607FACD41AFB9204008FA782 /* Info.plist */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | 607FACE81AFB9204008FA782 /* Tests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 130 | 607FACE91AFB9204008FA782 /* Supporting Files */, 131 | ); 132 | path = Tests; 133 | sourceTree = ""; 134 | }; 135 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEA1AFB9204008FA782 /* Info.plist */, 139 | ); 140 | name = "Supporting Files"; 141 | sourceTree = ""; 142 | }; 143 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | CFA380C4D8816F9FE8C16CE6 /* DJSemiModalViewController.podspec */, 147 | 347DAB63677ADD14237EF358 /* README.md */, 148 | 7CB2A78635E1F18A586C0C88 /* LICENSE */, 149 | ); 150 | name = "Podspec Metadata"; 151 | sourceTree = ""; 152 | }; 153 | A4F210EA5D652D1C99349E9A /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | C7A091926CAB6ECF107CAFA9 /* Pods_DJSemiModalViewController_Example.framework */, 157 | 1A4B01D1462AFFB468AD6F62 /* Pods_DJSemiModalViewController_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* DJSemiModalViewController_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DJSemiModalViewController_Example" */; 168 | buildPhases = ( 169 | 8A6104F1689A6C13EEC28F7E /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 53FEC32A1EA8512099D471E7 /* [CP] Embed Pods Frameworks */, 174 | 5534ADA66A6BEBFAAD0E14D1 /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = DJSemiModalViewController_Example; 181 | productName = DJSemiModalViewController; 182 | productReference = 607FACD01AFB9204008FA782 /* DJSemiModalViewController_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* DJSemiModalViewController_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DJSemiModalViewController_Tests" */; 188 | buildPhases = ( 189 | 7179D60C31BA739D484C48FE /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | FE3A613B99C3B3E8AD875C41 /* [CP] Embed Pods Frameworks */, 194 | D6A956D11490E3D1F8066DDD /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = DJSemiModalViewController_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* DJSemiModalViewController_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0830; 213 | LastUpgradeCheck = 0830; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0900; 219 | ProvisioningStyle = Manual; 220 | }; 221 | 607FACE41AFB9204008FA782 = { 222 | CreatedOnToolsVersion = 6.3.1; 223 | LastSwiftMigration = 0900; 224 | TestTargetID = 607FACCF1AFB9204008FA782; 225 | }; 226 | }; 227 | }; 228 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "DJSemiModalViewController" */; 229 | compatibilityVersion = "Xcode 3.2"; 230 | developmentRegion = English; 231 | hasScannedForEncodings = 0; 232 | knownRegions = ( 233 | en, 234 | Base, 235 | ); 236 | mainGroup = 607FACC71AFB9204008FA782; 237 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 238 | projectDirPath = ""; 239 | projectRoot = ""; 240 | targets = ( 241 | 607FACCF1AFB9204008FA782 /* DJSemiModalViewController_Example */, 242 | 607FACE41AFB9204008FA782 /* DJSemiModalViewController_Tests */, 243 | ); 244 | }; 245 | /* End PBXProject section */ 246 | 247 | /* Begin PBXResourcesBuildPhase section */ 248 | 607FACCE1AFB9204008FA782 /* Resources */ = { 249 | isa = PBXResourcesBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 253 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 254 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | 607FACE31AFB9204008FA782 /* Resources */ = { 259 | isa = PBXResourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | /* End PBXResourcesBuildPhase section */ 266 | 267 | /* Begin PBXShellScriptBuildPhase section */ 268 | 53FEC32A1EA8512099D471E7 /* [CP] Embed Pods Frameworks */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputPaths = ( 274 | "${SRCROOT}/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example-frameworks.sh", 275 | "${BUILT_PRODUCTS_DIR}/DJSemiModalViewController/DJSemiModalViewController.framework", 276 | ); 277 | name = "[CP] Embed Pods Frameworks"; 278 | outputPaths = ( 279 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DJSemiModalViewController.framework", 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example-frameworks.sh\"\n"; 284 | showEnvVarsInLog = 0; 285 | }; 286 | 5534ADA66A6BEBFAAD0E14D1 /* [CP] Copy Pods Resources */ = { 287 | isa = PBXShellScriptBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | ); 291 | inputPaths = ( 292 | ); 293 | name = "[CP] Copy Pods Resources"; 294 | outputPaths = ( 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | shellPath = /bin/sh; 298 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example-resources.sh\"\n"; 299 | showEnvVarsInLog = 0; 300 | }; 301 | 7179D60C31BA739D484C48FE /* [CP] Check Pods Manifest.lock */ = { 302 | isa = PBXShellScriptBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | ); 306 | inputPaths = ( 307 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 308 | "${PODS_ROOT}/Manifest.lock", 309 | ); 310 | name = "[CP] Check Pods Manifest.lock"; 311 | outputPaths = ( 312 | "$(DERIVED_FILE_DIR)/Pods-DJSemiModalViewController_Tests-checkManifestLockResult.txt", 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | shellPath = /bin/sh; 316 | 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"; 317 | showEnvVarsInLog = 0; 318 | }; 319 | 8A6104F1689A6C13EEC28F7E /* [CP] Check Pods Manifest.lock */ = { 320 | isa = PBXShellScriptBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | ); 324 | inputPaths = ( 325 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 326 | "${PODS_ROOT}/Manifest.lock", 327 | ); 328 | name = "[CP] Check Pods Manifest.lock"; 329 | outputPaths = ( 330 | "$(DERIVED_FILE_DIR)/Pods-DJSemiModalViewController_Example-checkManifestLockResult.txt", 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | shellPath = /bin/sh; 334 | 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"; 335 | showEnvVarsInLog = 0; 336 | }; 337 | D6A956D11490E3D1F8066DDD /* [CP] Copy Pods Resources */ = { 338 | isa = PBXShellScriptBuildPhase; 339 | buildActionMask = 2147483647; 340 | files = ( 341 | ); 342 | inputPaths = ( 343 | ); 344 | name = "[CP] Copy Pods Resources"; 345 | outputPaths = ( 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | shellPath = /bin/sh; 349 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests-resources.sh\"\n"; 350 | showEnvVarsInLog = 0; 351 | }; 352 | FE3A613B99C3B3E8AD875C41 /* [CP] Embed Pods Frameworks */ = { 353 | isa = PBXShellScriptBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | ); 357 | inputPaths = ( 358 | ); 359 | name = "[CP] Embed Pods Frameworks"; 360 | outputPaths = ( 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | shellPath = /bin/sh; 364 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests-frameworks.sh\"\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 | 511DEAC22071079B002279E5 /* ViewController.swift in Sources */, 375 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | }; 379 | 607FACE11AFB9204008FA782 /* Sources */ = { 380 | isa = PBXSourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 384 | ); 385 | runOnlyForDeploymentPostprocessing = 0; 386 | }; 387 | /* End PBXSourcesBuildPhase section */ 388 | 389 | /* Begin PBXTargetDependency section */ 390 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 391 | isa = PBXTargetDependency; 392 | target = 607FACCF1AFB9204008FA782 /* DJSemiModalViewController_Example */; 393 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 394 | }; 395 | /* End PBXTargetDependency section */ 396 | 397 | /* Begin PBXVariantGroup section */ 398 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 399 | isa = PBXVariantGroup; 400 | children = ( 401 | 607FACDA1AFB9204008FA782 /* Base */, 402 | ); 403 | name = Main.storyboard; 404 | sourceTree = ""; 405 | }; 406 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 407 | isa = PBXVariantGroup; 408 | children = ( 409 | 607FACDF1AFB9204008FA782 /* Base */, 410 | ); 411 | name = LaunchScreen.xib; 412 | sourceTree = ""; 413 | }; 414 | /* End PBXVariantGroup section */ 415 | 416 | /* Begin XCBuildConfiguration section */ 417 | 607FACED1AFB9204008FA782 /* Debug */ = { 418 | isa = XCBuildConfiguration; 419 | buildSettings = { 420 | ALWAYS_SEARCH_USER_PATHS = NO; 421 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 422 | CLANG_CXX_LIBRARY = "libc++"; 423 | CLANG_ENABLE_MODULES = YES; 424 | CLANG_ENABLE_OBJC_ARC = YES; 425 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 426 | CLANG_WARN_BOOL_CONVERSION = YES; 427 | CLANG_WARN_COMMA = YES; 428 | CLANG_WARN_CONSTANT_CONVERSION = YES; 429 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 430 | CLANG_WARN_EMPTY_BODY = YES; 431 | CLANG_WARN_ENUM_CONVERSION = YES; 432 | CLANG_WARN_INFINITE_RECURSION = YES; 433 | CLANG_WARN_INT_CONVERSION = YES; 434 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = 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.0; 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_CXX_LANGUAGE_STANDARD = "gnu++0x"; 475 | CLANG_CXX_LIBRARY = "libc++"; 476 | CLANG_ENABLE_MODULES = YES; 477 | CLANG_ENABLE_OBJC_ARC = YES; 478 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 479 | CLANG_WARN_BOOL_CONVERSION = YES; 480 | CLANG_WARN_COMMA = YES; 481 | CLANG_WARN_CONSTANT_CONVERSION = YES; 482 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 483 | CLANG_WARN_EMPTY_BODY = YES; 484 | CLANG_WARN_ENUM_CONVERSION = YES; 485 | CLANG_WARN_INFINITE_RECURSION = YES; 486 | CLANG_WARN_INT_CONVERSION = YES; 487 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 488 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 489 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 490 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 491 | CLANG_WARN_STRICT_PROTOTYPES = YES; 492 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 493 | CLANG_WARN_UNREACHABLE_CODE = YES; 494 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 495 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 496 | COPY_PHASE_STRIP = NO; 497 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 498 | ENABLE_NS_ASSERTIONS = NO; 499 | ENABLE_STRICT_OBJC_MSGSEND = YES; 500 | GCC_C_LANGUAGE_STANDARD = gnu99; 501 | GCC_NO_COMMON_BLOCKS = YES; 502 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 503 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 504 | GCC_WARN_UNDECLARED_SELECTOR = YES; 505 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 506 | GCC_WARN_UNUSED_FUNCTION = YES; 507 | GCC_WARN_UNUSED_VARIABLE = YES; 508 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 509 | MTL_ENABLE_DEBUG_INFO = NO; 510 | SDKROOT = iphoneos; 511 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 512 | VALIDATE_PRODUCT = YES; 513 | }; 514 | name = Release; 515 | }; 516 | 607FACF01AFB9204008FA782 /* Debug */ = { 517 | isa = XCBuildConfiguration; 518 | baseConfigurationReference = 62E9F67B15123AFD889BB8DA /* Pods-DJSemiModalViewController_Example.debug.xcconfig */; 519 | buildSettings = { 520 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 521 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 522 | CODE_SIGN_STYLE = Manual; 523 | DEVELOPMENT_TEAM = ""; 524 | INFOPLIST_FILE = DJSemiModalViewController/Info.plist; 525 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 526 | MODULE_NAME = ExampleApp; 527 | PRODUCT_BUNDLE_IDENTIFIER = "se.davidjonsen.cocoapods.DJSemiModalViewController-Example"; 528 | PRODUCT_NAME = "$(TARGET_NAME)"; 529 | PROVISIONING_PROFILE_SPECIFIER = ""; 530 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 531 | SWIFT_VERSION = 4.0; 532 | TARGETED_DEVICE_FAMILY = "1,2"; 533 | }; 534 | name = Debug; 535 | }; 536 | 607FACF11AFB9204008FA782 /* Release */ = { 537 | isa = XCBuildConfiguration; 538 | baseConfigurationReference = A822BC54005526BAE7C9C999 /* Pods-DJSemiModalViewController_Example.release.xcconfig */; 539 | buildSettings = { 540 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 541 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 542 | CODE_SIGN_STYLE = Manual; 543 | DEVELOPMENT_TEAM = ""; 544 | INFOPLIST_FILE = DJSemiModalViewController/Info.plist; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 546 | MODULE_NAME = ExampleApp; 547 | PRODUCT_BUNDLE_IDENTIFIER = "se.davidjonsen.cocoapods.DJSemiModalViewController-Example"; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | PROVISIONING_PROFILE_SPECIFIER = ""; 550 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 551 | SWIFT_VERSION = 4.0; 552 | TARGETED_DEVICE_FAMILY = "1,2"; 553 | }; 554 | name = Release; 555 | }; 556 | 607FACF31AFB9204008FA782 /* Debug */ = { 557 | isa = XCBuildConfiguration; 558 | baseConfigurationReference = 6FD1B04F75109755322DE993 /* Pods-DJSemiModalViewController_Tests.debug.xcconfig */; 559 | buildSettings = { 560 | FRAMEWORK_SEARCH_PATHS = ( 561 | "$(SDKROOT)/Developer/Library/Frameworks", 562 | "$(inherited)", 563 | ); 564 | GCC_PREPROCESSOR_DEFINITIONS = ( 565 | "DEBUG=1", 566 | "$(inherited)", 567 | ); 568 | INFOPLIST_FILE = Tests/Info.plist; 569 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 570 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 571 | PRODUCT_NAME = "$(TARGET_NAME)"; 572 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 573 | SWIFT_VERSION = 4.0; 574 | }; 575 | name = Debug; 576 | }; 577 | 607FACF41AFB9204008FA782 /* Release */ = { 578 | isa = XCBuildConfiguration; 579 | baseConfigurationReference = F499332DD0A965321C44A13B /* Pods-DJSemiModalViewController_Tests.release.xcconfig */; 580 | buildSettings = { 581 | FRAMEWORK_SEARCH_PATHS = ( 582 | "$(SDKROOT)/Developer/Library/Frameworks", 583 | "$(inherited)", 584 | ); 585 | INFOPLIST_FILE = Tests/Info.plist; 586 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 587 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 588 | PRODUCT_NAME = "$(TARGET_NAME)"; 589 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 590 | SWIFT_VERSION = 4.0; 591 | }; 592 | name = Release; 593 | }; 594 | /* End XCBuildConfiguration section */ 595 | 596 | /* Begin XCConfigurationList section */ 597 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "DJSemiModalViewController" */ = { 598 | isa = XCConfigurationList; 599 | buildConfigurations = ( 600 | 607FACED1AFB9204008FA782 /* Debug */, 601 | 607FACEE1AFB9204008FA782 /* Release */, 602 | ); 603 | defaultConfigurationIsVisible = 0; 604 | defaultConfigurationName = Release; 605 | }; 606 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DJSemiModalViewController_Example" */ = { 607 | isa = XCConfigurationList; 608 | buildConfigurations = ( 609 | 607FACF01AFB9204008FA782 /* Debug */, 610 | 607FACF11AFB9204008FA782 /* Release */, 611 | ); 612 | defaultConfigurationIsVisible = 0; 613 | defaultConfigurationName = Release; 614 | }; 615 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DJSemiModalViewController_Tests" */ = { 616 | isa = XCConfigurationList; 617 | buildConfigurations = ( 618 | 607FACF31AFB9204008FA782 /* Debug */, 619 | 607FACF41AFB9204008FA782 /* Release */, 620 | ); 621 | defaultConfigurationIsVisible = 0; 622 | defaultConfigurationName = Release; 623 | }; 624 | /* End XCConfigurationList section */ 625 | }; 626 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 627 | } 628 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController.xcodeproj/xcshareddata/xcschemes/DJSemiModalViewController-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 95 | 96 | 97 | 98 | 99 | 100 | 106 | 108 | 114 | 115 | 116 | 117 | 119 | 120 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // DJSemiModalViewController 4 | // 5 | // Created by David Jonsén on 04/01/2018. 6 | // Copyright (c) 2018 David Jonsén. 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: [UIApplicationLaunchOptionsKey: 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/DJSemiModalViewController/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/DJSemiModalViewController/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 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController/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 | } 54 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/DJSemiModalViewController/Images.xcassets/Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "filename" : "rawpixel-com-585640-unsplash.jpg", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/DJSemiModalViewController/Images.xcassets/Image.imageset/rawpixel-com-585640-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davnag/DJSemiModalViewController/075eb33fc77e7b21c6cc11ca78f089a4b4b24e62/Example/DJSemiModalViewController/Images.xcassets/Image.imageset/rawpixel-com-585640-unsplash.jpg -------------------------------------------------------------------------------- /Example/DJSemiModalViewController/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 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Example/DJSemiModalViewController/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // DJSemiModalViewController 4 | // 5 | // Created by David Jonsén on 04/01/2018. 6 | // Copyright (c) 2018 David Jonsén. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import DJSemiModalViewController 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | } 17 | 18 | private func createSemiModalViewController() -> DJSemiModalViewController { 19 | 20 | let controller = DJSemiModalViewController() 21 | 22 | controller.maxWidth = 420 23 | controller.minHeight = 200 24 | 25 | controller.title = "Title" 26 | controller.titleLabel.font = UIFont.systemFont(ofSize: 22, weight: UIFont.Weight.bold) 27 | controller.closeButton.setTitle("Done", for: .normal) 28 | 29 | let label = UILabel() 30 | label.text = "An example label" 31 | label.textAlignment = .center 32 | controller.addArrangedSubview(view: label) 33 | 34 | let imageView = UIImageView(image: #imageLiteral(resourceName: "Image")) 35 | imageView.contentMode = .scaleAspectFit 36 | controller.addArrangedSubview(view: imageView, height: 200) 37 | 38 | let secondLabel = UILabel() 39 | secondLabel.textAlignment = .center 40 | secondLabel.text = "Pen and Pineapple" 41 | controller.addArrangedSubview(view: secondLabel) 42 | 43 | return controller 44 | } 45 | 46 | @IBAction func actionButtonAction(_ sender: Any) { 47 | 48 | let controller = createSemiModalViewController() 49 | 50 | controller.presentOn(presentingViewController: self, animated: true, onDismiss: { 51 | debugPrint("`DJSemiModalViewController` dismissed") 52 | }) 53 | 54 | debugPrint("`DJSemiModalViewController` presented") 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | 3 | use_frameworks! 4 | 5 | target 'DJSemiModalViewController_Example' do 6 | pod 'DJSemiModalViewController', :path => '../' 7 | 8 | target 'DJSemiModalViewController_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - DJSemiModalViewController (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - DJSemiModalViewController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | DJSemiModalViewController: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | DJSemiModalViewController: e98712db6c1191715d5da44c5d6dd1a14e45fccb 13 | 14 | PODFILE CHECKSUM: b20b647582d0cd63414a30efaa102edebbc56df2 15 | 16 | COCOAPODS: 1.4.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/DJSemiModalViewController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DJSemiModalViewController", 3 | "version": "0.1.0", 4 | "summary": "A short description of DJSemiModalViewController.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/David Jonsén/DJSemiModalViewController", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "David Jonsén": "david.jonsen@sodra.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/David Jonsén/DJSemiModalViewController.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "DJSemiModalViewController/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - DJSemiModalViewController (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - DJSemiModalViewController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | DJSemiModalViewController: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | DJSemiModalViewController: e98712db6c1191715d5da44c5d6dd1a14e45fccb 13 | 14 | PODFILE CHECKSUM: b20b647582d0cd63414a30efaa102edebbc56df2 15 | 16 | COCOAPODS: 1.4.0 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 | 1AF6A7A2E23786BE626ACAC4059EE90E /* DJSemiModalViewController-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EFAA3244F4FE972AD80FBE9B1C4182C /* DJSemiModalViewController-dummy.m */; }; 11 | 226E430A1F2F8783E6C801A57A156BA3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 12 | 29445D02FF4F0CF9CC99436B8140630B /* Pods-DJSemiModalViewController_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EA74A2DF011CA00C4FB4CF457AC5433 /* Pods-DJSemiModalViewController_Example-dummy.m */; }; 13 | 511DEAC02070FFBA002279E5 /* DJSemiModalViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 511DEABE2070FFBA002279E5 /* DJSemiModalViewController.swift */; }; 14 | 546D02146E52834BEE8F57EF0043DB23 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 15 | 5E5056947862E185B9A1AC3C08B05865 /* DJSemiModalViewController-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 17507744931E0FC79A4633A195B57023 /* DJSemiModalViewController-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | AA074E023A77EFAB1F67227EEFE58169 /* Pods-DJSemiModalViewController_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 46516A93DEB4F3C3D687469772FF4BF9 /* Pods-DJSemiModalViewController_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | C481D8374DEE79998763A09ECD329D36 /* Pods-DJSemiModalViewController_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C6CEF90A255554634E54B6ADBA3733 /* Pods-DJSemiModalViewController_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | C8F71D488788914BEA3B57878D265E1F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 19 | E98BDA60E60FBD18B8B77BF508D86ECF /* Pods-DJSemiModalViewController_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C33C9BD0C7D7C836D339F1CC7A4B1480 /* Pods-DJSemiModalViewController_Tests-dummy.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | CD968E5398C0BC56B48E3C9DFCAAB101 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 86FA31A0E2FC17A1236C01BA6989DFB2; 28 | remoteInfo = DJSemiModalViewController; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 09908D47FD113A1EBFF9558972B80FD8 /* DJSemiModalViewController-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "DJSemiModalViewController-prefix.pch"; sourceTree = ""; }; 34 | 157BD31F48B07046B444AE78BC719CFA /* Pods-DJSemiModalViewController_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-DJSemiModalViewController_Tests-frameworks.sh"; sourceTree = ""; }; 35 | 17507744931E0FC79A4633A195B57023 /* DJSemiModalViewController-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "DJSemiModalViewController-umbrella.h"; sourceTree = ""; }; 36 | 1EA74A2DF011CA00C4FB4CF457AC5433 /* Pods-DJSemiModalViewController_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-DJSemiModalViewController_Example-dummy.m"; sourceTree = ""; }; 37 | 2782007D8535EECA064CA28A54E43DBF /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 32462CE705B82446614ED4C3E9F52608 /* Pods-DJSemiModalViewController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DJSemiModalViewController_Example.release.xcconfig"; sourceTree = ""; }; 39 | 38D30AD64618C253579DC58BA63F6342 /* Pods-DJSemiModalViewController_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-DJSemiModalViewController_Tests.modulemap"; sourceTree = ""; }; 40 | 4451EBA7B7D7997589FCA43A1EE498EC /* Pods-DJSemiModalViewController_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-DJSemiModalViewController_Example-frameworks.sh"; sourceTree = ""; }; 41 | 460C6DF107AE5932E1133557575E329F /* Pods-DJSemiModalViewController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DJSemiModalViewController_Tests.release.xcconfig"; sourceTree = ""; }; 42 | 46516A93DEB4F3C3D687469772FF4BF9 /* Pods-DJSemiModalViewController_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-DJSemiModalViewController_Tests-umbrella.h"; sourceTree = ""; }; 43 | 4DDB9F53679CE92C8C1C71E4F13D09E3 /* DJSemiModalViewController.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = DJSemiModalViewController.xcconfig; sourceTree = ""; }; 44 | 4E1E4A6A0C308203CFE7A678C291B920 /* DJSemiModalViewController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = DJSemiModalViewController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 4E83FE9C11B183E330F26F4F3EBA4377 /* Pods-DJSemiModalViewController_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-DJSemiModalViewController_Tests-resources.sh"; sourceTree = ""; }; 46 | 511DEABE2070FFBA002279E5 /* DJSemiModalViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DJSemiModalViewController.swift; path = DJSemiModalViewController/Classes/DJSemiModalViewController.swift; sourceTree = ""; }; 47 | 5A6127A8AC004C9A5BB134B95222C3B0 /* Pods_DJSemiModalViewController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DJSemiModalViewController_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 5AC4CEDA04F7352E381BDD9BB608F209 /* Pods-DJSemiModalViewController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DJSemiModalViewController_Example.debug.xcconfig"; sourceTree = ""; }; 49 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | 6765B54591874738BDF7B2AA2AC92072 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 51 | 6EFAA3244F4FE972AD80FBE9B1C4182C /* DJSemiModalViewController-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "DJSemiModalViewController-dummy.m"; sourceTree = ""; }; 52 | 7AE1F92FAFA53AD9D53725ACFED7C490 /* Pods-DJSemiModalViewController_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-DJSemiModalViewController_Example-resources.sh"; sourceTree = ""; }; 53 | 7C1A692D2856D37F4DFCD97A54836A3D /* DJSemiModalViewController.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = DJSemiModalViewController.modulemap; sourceTree = ""; }; 54 | 83E2821FED02EEE9C28DC06C24EB1A46 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 55 | 88E067AC14CF80BC5023F8DB977F27FA /* Pods-DJSemiModalViewController_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-DJSemiModalViewController_Tests-acknowledgements.plist"; sourceTree = ""; }; 56 | 8AACEF53B6FD4A25B2B7FEDCEB0FF590 /* Pods-DJSemiModalViewController_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-DJSemiModalViewController_Example-acknowledgements.plist"; sourceTree = ""; }; 57 | 8DEDEB4DC28CCF6AC76603E6DEA0B8A6 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 59 | A3095FF4A04D7E9F83669C9AFAD87DCE /* Pods-DJSemiModalViewController_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-DJSemiModalViewController_Example-acknowledgements.markdown"; sourceTree = ""; }; 60 | BB9D1381ECF7EB55BE79E8371BD1AC9C /* Pods-DJSemiModalViewController_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-DJSemiModalViewController_Example.modulemap"; sourceTree = ""; }; 61 | C33C9BD0C7D7C836D339F1CC7A4B1480 /* Pods-DJSemiModalViewController_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-DJSemiModalViewController_Tests-dummy.m"; sourceTree = ""; }; 62 | D4854EE5F37E0A79199E35554AB7510B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 63 | D944F7C5D64841740EF9631279F0A0BD /* DJSemiModalViewController.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; path = DJSemiModalViewController.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 64 | DF6EFAD7A9BF9EF888B759BC8B77A2AD /* Pods-DJSemiModalViewController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-DJSemiModalViewController_Tests.debug.xcconfig"; sourceTree = ""; }; 65 | E2C6CEF90A255554634E54B6ADBA3733 /* Pods-DJSemiModalViewController_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-DJSemiModalViewController_Example-umbrella.h"; sourceTree = ""; }; 66 | F2E4910A1C1CBD607E48F5A776A9A1D9 /* Pods-DJSemiModalViewController_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-DJSemiModalViewController_Tests-acknowledgements.markdown"; sourceTree = ""; }; 67 | F9A807E7688155CAA24D323ABDF4564D /* Pods_DJSemiModalViewController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DJSemiModalViewController_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 71E787DC898B9B70F7EE215BBD5A8CC9 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 546D02146E52834BEE8F57EF0043DB23 /* Foundation.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | BB7A77AF446B4AC507D2854A3AB401A8 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | C8F71D488788914BEA3B57878D265E1F /* Foundation.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | D337C3BD2F621468054E0F9212090BA8 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | 226E430A1F2F8783E6C801A57A156BA3 /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | /* End PBXFrameworksBuildPhase section */ 96 | 97 | /* Begin PBXGroup section */ 98 | 0BF6FD621951988DE535A8C9FC76B0FC /* Targets Support Files */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 44FE45631F6F76EFD99889B3320F7826 /* Pods-DJSemiModalViewController_Example */, 102 | 7AC874FC5A29358186CC2EB0386C31FE /* Pods-DJSemiModalViewController_Tests */, 103 | ); 104 | name = "Targets Support Files"; 105 | sourceTree = ""; 106 | }; 107 | 1C3A24CDC63D1F2314D054BB1A4EABD4 /* Products */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 4E1E4A6A0C308203CFE7A678C291B920 /* DJSemiModalViewController.framework */, 111 | 5A6127A8AC004C9A5BB134B95222C3B0 /* Pods_DJSemiModalViewController_Example.framework */, 112 | F9A807E7688155CAA24D323ABDF4564D /* Pods_DJSemiModalViewController_Tests.framework */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 44FE45631F6F76EFD99889B3320F7826 /* Pods-DJSemiModalViewController_Example */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 8DEDEB4DC28CCF6AC76603E6DEA0B8A6 /* Info.plist */, 121 | BB9D1381ECF7EB55BE79E8371BD1AC9C /* Pods-DJSemiModalViewController_Example.modulemap */, 122 | A3095FF4A04D7E9F83669C9AFAD87DCE /* Pods-DJSemiModalViewController_Example-acknowledgements.markdown */, 123 | 8AACEF53B6FD4A25B2B7FEDCEB0FF590 /* Pods-DJSemiModalViewController_Example-acknowledgements.plist */, 124 | 1EA74A2DF011CA00C4FB4CF457AC5433 /* Pods-DJSemiModalViewController_Example-dummy.m */, 125 | 4451EBA7B7D7997589FCA43A1EE498EC /* Pods-DJSemiModalViewController_Example-frameworks.sh */, 126 | 7AE1F92FAFA53AD9D53725ACFED7C490 /* Pods-DJSemiModalViewController_Example-resources.sh */, 127 | E2C6CEF90A255554634E54B6ADBA3733 /* Pods-DJSemiModalViewController_Example-umbrella.h */, 128 | 5AC4CEDA04F7352E381BDD9BB608F209 /* Pods-DJSemiModalViewController_Example.debug.xcconfig */, 129 | 32462CE705B82446614ED4C3E9F52608 /* Pods-DJSemiModalViewController_Example.release.xcconfig */, 130 | ); 131 | name = "Pods-DJSemiModalViewController_Example"; 132 | path = "Target Support Files/Pods-DJSemiModalViewController_Example"; 133 | sourceTree = ""; 134 | }; 135 | 5C781A97D56986748A161BF2F7E09F71 /* Support Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 7C1A692D2856D37F4DFCD97A54836A3D /* DJSemiModalViewController.modulemap */, 139 | 4DDB9F53679CE92C8C1C71E4F13D09E3 /* DJSemiModalViewController.xcconfig */, 140 | 6EFAA3244F4FE972AD80FBE9B1C4182C /* DJSemiModalViewController-dummy.m */, 141 | 09908D47FD113A1EBFF9558972B80FD8 /* DJSemiModalViewController-prefix.pch */, 142 | 17507744931E0FC79A4633A195B57023 /* DJSemiModalViewController-umbrella.h */, 143 | D4854EE5F37E0A79199E35554AB7510B /* Info.plist */, 144 | ); 145 | name = "Support Files"; 146 | path = "Example/Pods/Target Support Files/DJSemiModalViewController"; 147 | sourceTree = ""; 148 | }; 149 | 73BED50DC72E7486745C589F0EF5D5FA /* Development Pods */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | F6396729BDD264FAFA6C6F47EA2FDE6C /* DJSemiModalViewController */, 153 | ); 154 | name = "Development Pods"; 155 | sourceTree = ""; 156 | }; 157 | 7AC874FC5A29358186CC2EB0386C31FE /* Pods-DJSemiModalViewController_Tests */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 2782007D8535EECA064CA28A54E43DBF /* Info.plist */, 161 | 38D30AD64618C253579DC58BA63F6342 /* Pods-DJSemiModalViewController_Tests.modulemap */, 162 | F2E4910A1C1CBD607E48F5A776A9A1D9 /* Pods-DJSemiModalViewController_Tests-acknowledgements.markdown */, 163 | 88E067AC14CF80BC5023F8DB977F27FA /* Pods-DJSemiModalViewController_Tests-acknowledgements.plist */, 164 | C33C9BD0C7D7C836D339F1CC7A4B1480 /* Pods-DJSemiModalViewController_Tests-dummy.m */, 165 | 157BD31F48B07046B444AE78BC719CFA /* Pods-DJSemiModalViewController_Tests-frameworks.sh */, 166 | 4E83FE9C11B183E330F26F4F3EBA4377 /* Pods-DJSemiModalViewController_Tests-resources.sh */, 167 | 46516A93DEB4F3C3D687469772FF4BF9 /* Pods-DJSemiModalViewController_Tests-umbrella.h */, 168 | DF6EFAD7A9BF9EF888B759BC8B77A2AD /* Pods-DJSemiModalViewController_Tests.debug.xcconfig */, 169 | 460C6DF107AE5932E1133557575E329F /* Pods-DJSemiModalViewController_Tests.release.xcconfig */, 170 | ); 171 | name = "Pods-DJSemiModalViewController_Tests"; 172 | path = "Target Support Files/Pods-DJSemiModalViewController_Tests"; 173 | sourceTree = ""; 174 | }; 175 | 7DB346D0F39D3F0E887471402A8071AB = { 176 | isa = PBXGroup; 177 | children = ( 178 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 179 | 73BED50DC72E7486745C589F0EF5D5FA /* Development Pods */, 180 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 181 | 1C3A24CDC63D1F2314D054BB1A4EABD4 /* Products */, 182 | 0BF6FD621951988DE535A8C9FC76B0FC /* Targets Support Files */, 183 | ); 184 | sourceTree = ""; 185 | }; 186 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 190 | ); 191 | name = Frameworks; 192 | sourceTree = ""; 193 | }; 194 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 195 | isa = PBXGroup; 196 | children = ( 197 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 198 | ); 199 | name = iOS; 200 | sourceTree = ""; 201 | }; 202 | F6396729BDD264FAFA6C6F47EA2FDE6C /* DJSemiModalViewController */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | 511DEABE2070FFBA002279E5 /* DJSemiModalViewController.swift */, 206 | FB437CB4990B2DEA04A142D9C960D27F /* Pod */, 207 | 5C781A97D56986748A161BF2F7E09F71 /* Support Files */, 208 | ); 209 | name = DJSemiModalViewController; 210 | path = ../..; 211 | sourceTree = ""; 212 | }; 213 | FB437CB4990B2DEA04A142D9C960D27F /* Pod */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | D944F7C5D64841740EF9631279F0A0BD /* DJSemiModalViewController.podspec */, 217 | 6765B54591874738BDF7B2AA2AC92072 /* LICENSE */, 218 | 83E2821FED02EEE9C28DC06C24EB1A46 /* README.md */, 219 | ); 220 | name = Pod; 221 | sourceTree = ""; 222 | }; 223 | /* End PBXGroup section */ 224 | 225 | /* Begin PBXHeadersBuildPhase section */ 226 | 6CD61DD214C838CE04B1229C55EA3C38 /* Headers */ = { 227 | isa = PBXHeadersBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | AA074E023A77EFAB1F67227EEFE58169 /* Pods-DJSemiModalViewController_Tests-umbrella.h in Headers */, 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | }; 234 | 7559970D2B9CE46346FBCB0D2DFCBF55 /* Headers */ = { 235 | isa = PBXHeadersBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 5E5056947862E185B9A1AC3C08B05865 /* DJSemiModalViewController-umbrella.h in Headers */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | 796829FE9E32EFCC87ED066C6A53172D /* Headers */ = { 243 | isa = PBXHeadersBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | C481D8374DEE79998763A09ECD329D36 /* Pods-DJSemiModalViewController_Example-umbrella.h in Headers */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXHeadersBuildPhase section */ 251 | 252 | /* Begin PBXNativeTarget section */ 253 | 121E292C1E94A88D9F2F74B2C66D21A7 /* Pods-DJSemiModalViewController_Tests */ = { 254 | isa = PBXNativeTarget; 255 | buildConfigurationList = 518FC67DA0DDCBC8E563A68F2BEC53B3 /* Build configuration list for PBXNativeTarget "Pods-DJSemiModalViewController_Tests" */; 256 | buildPhases = ( 257 | AC4EEFBB0AB139CAE3F8E5F8AD100D67 /* Sources */, 258 | 71E787DC898B9B70F7EE215BBD5A8CC9 /* Frameworks */, 259 | 6CD61DD214C838CE04B1229C55EA3C38 /* Headers */, 260 | ); 261 | buildRules = ( 262 | ); 263 | dependencies = ( 264 | ); 265 | name = "Pods-DJSemiModalViewController_Tests"; 266 | productName = "Pods-DJSemiModalViewController_Tests"; 267 | productReference = F9A807E7688155CAA24D323ABDF4564D /* Pods_DJSemiModalViewController_Tests.framework */; 268 | productType = "com.apple.product-type.framework"; 269 | }; 270 | 86FA31A0E2FC17A1236C01BA6989DFB2 /* DJSemiModalViewController */ = { 271 | isa = PBXNativeTarget; 272 | buildConfigurationList = 642673133215AA3C08E86B37FCEE35A8 /* Build configuration list for PBXNativeTarget "DJSemiModalViewController" */; 273 | buildPhases = ( 274 | 1E25D8B18BDC08361CA275DFE3B5BC34 /* Sources */, 275 | BB7A77AF446B4AC507D2854A3AB401A8 /* Frameworks */, 276 | 7559970D2B9CE46346FBCB0D2DFCBF55 /* Headers */, 277 | ); 278 | buildRules = ( 279 | ); 280 | dependencies = ( 281 | ); 282 | name = DJSemiModalViewController; 283 | productName = DJSemiModalViewController; 284 | productReference = 4E1E4A6A0C308203CFE7A678C291B920 /* DJSemiModalViewController.framework */; 285 | productType = "com.apple.product-type.framework"; 286 | }; 287 | CB643433A69370B0363A0B2326E9D905 /* Pods-DJSemiModalViewController_Example */ = { 288 | isa = PBXNativeTarget; 289 | buildConfigurationList = C742D0951EC763C31F5FA674C6834F13 /* Build configuration list for PBXNativeTarget "Pods-DJSemiModalViewController_Example" */; 290 | buildPhases = ( 291 | CC6639A579976F1877F1C8CC833C9BC9 /* Sources */, 292 | D337C3BD2F621468054E0F9212090BA8 /* Frameworks */, 293 | 796829FE9E32EFCC87ED066C6A53172D /* Headers */, 294 | ); 295 | buildRules = ( 296 | ); 297 | dependencies = ( 298 | 4E99C03E65BE6BD7A73FE3439A7CFA6D /* PBXTargetDependency */, 299 | ); 300 | name = "Pods-DJSemiModalViewController_Example"; 301 | productName = "Pods-DJSemiModalViewController_Example"; 302 | productReference = 5A6127A8AC004C9A5BB134B95222C3B0 /* Pods_DJSemiModalViewController_Example.framework */; 303 | productType = "com.apple.product-type.framework"; 304 | }; 305 | /* End PBXNativeTarget section */ 306 | 307 | /* Begin PBXProject section */ 308 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 309 | isa = PBXProject; 310 | attributes = { 311 | LastSwiftUpdateCheck = 0830; 312 | LastUpgradeCheck = 0700; 313 | }; 314 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 315 | compatibilityVersion = "Xcode 3.2"; 316 | developmentRegion = English; 317 | hasScannedForEncodings = 0; 318 | knownRegions = ( 319 | en, 320 | ); 321 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 322 | productRefGroup = 1C3A24CDC63D1F2314D054BB1A4EABD4 /* Products */; 323 | projectDirPath = ""; 324 | projectRoot = ""; 325 | targets = ( 326 | 86FA31A0E2FC17A1236C01BA6989DFB2 /* DJSemiModalViewController */, 327 | CB643433A69370B0363A0B2326E9D905 /* Pods-DJSemiModalViewController_Example */, 328 | 121E292C1E94A88D9F2F74B2C66D21A7 /* Pods-DJSemiModalViewController_Tests */, 329 | ); 330 | }; 331 | /* End PBXProject section */ 332 | 333 | /* Begin PBXSourcesBuildPhase section */ 334 | 1E25D8B18BDC08361CA275DFE3B5BC34 /* Sources */ = { 335 | isa = PBXSourcesBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | 1AF6A7A2E23786BE626ACAC4059EE90E /* DJSemiModalViewController-dummy.m in Sources */, 339 | 511DEAC02070FFBA002279E5 /* DJSemiModalViewController.swift in Sources */, 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | }; 343 | AC4EEFBB0AB139CAE3F8E5F8AD100D67 /* Sources */ = { 344 | isa = PBXSourcesBuildPhase; 345 | buildActionMask = 2147483647; 346 | files = ( 347 | E98BDA60E60FBD18B8B77BF508D86ECF /* Pods-DJSemiModalViewController_Tests-dummy.m in Sources */, 348 | ); 349 | runOnlyForDeploymentPostprocessing = 0; 350 | }; 351 | CC6639A579976F1877F1C8CC833C9BC9 /* Sources */ = { 352 | isa = PBXSourcesBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | 29445D02FF4F0CF9CC99436B8140630B /* Pods-DJSemiModalViewController_Example-dummy.m in Sources */, 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | /* End PBXSourcesBuildPhase section */ 360 | 361 | /* Begin PBXTargetDependency section */ 362 | 4E99C03E65BE6BD7A73FE3439A7CFA6D /* PBXTargetDependency */ = { 363 | isa = PBXTargetDependency; 364 | name = DJSemiModalViewController; 365 | target = 86FA31A0E2FC17A1236C01BA6989DFB2 /* DJSemiModalViewController */; 366 | targetProxy = CD968E5398C0BC56B48E3C9DFCAAB101 /* PBXContainerItemProxy */; 367 | }; 368 | /* End PBXTargetDependency section */ 369 | 370 | /* Begin XCBuildConfiguration section */ 371 | 0F7C458928F8EC966E9A82FA45A1E75C /* Release */ = { 372 | isa = XCBuildConfiguration; 373 | baseConfigurationReference = 460C6DF107AE5932E1133557575E329F /* Pods-DJSemiModalViewController_Tests.release.xcconfig */; 374 | buildSettings = { 375 | CODE_SIGN_IDENTITY = ""; 376 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 377 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 378 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 379 | CURRENT_PROJECT_VERSION = 1; 380 | DEFINES_MODULE = YES; 381 | DYLIB_COMPATIBILITY_VERSION = 1; 382 | DYLIB_CURRENT_VERSION = 1; 383 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 384 | INFOPLIST_FILE = "Target Support Files/Pods-DJSemiModalViewController_Tests/Info.plist"; 385 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 386 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 388 | MACH_O_TYPE = staticlib; 389 | MODULEMAP_FILE = "Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests.modulemap"; 390 | OTHER_LDFLAGS = ""; 391 | OTHER_LIBTOOLFLAGS = ""; 392 | PODS_ROOT = "$(SRCROOT)"; 393 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 394 | PRODUCT_NAME = Pods_DJSemiModalViewController_Tests; 395 | SDKROOT = iphoneos; 396 | SKIP_INSTALL = YES; 397 | TARGETED_DEVICE_FAMILY = "1,2"; 398 | VALIDATE_PRODUCT = YES; 399 | VERSIONING_SYSTEM = "apple-generic"; 400 | VERSION_INFO_PREFIX = ""; 401 | }; 402 | name = Release; 403 | }; 404 | 285D2A7D70F7779B75EE332630000A90 /* Release */ = { 405 | isa = XCBuildConfiguration; 406 | baseConfigurationReference = 32462CE705B82446614ED4C3E9F52608 /* Pods-DJSemiModalViewController_Example.release.xcconfig */; 407 | buildSettings = { 408 | CODE_SIGN_IDENTITY = ""; 409 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 410 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 411 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 412 | CURRENT_PROJECT_VERSION = 1; 413 | DEFINES_MODULE = YES; 414 | DYLIB_COMPATIBILITY_VERSION = 1; 415 | DYLIB_CURRENT_VERSION = 1; 416 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 417 | INFOPLIST_FILE = "Target Support Files/Pods-DJSemiModalViewController_Example/Info.plist"; 418 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 419 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 420 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 421 | MACH_O_TYPE = staticlib; 422 | MODULEMAP_FILE = "Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example.modulemap"; 423 | OTHER_LDFLAGS = ""; 424 | OTHER_LIBTOOLFLAGS = ""; 425 | PODS_ROOT = "$(SRCROOT)"; 426 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 427 | PRODUCT_NAME = Pods_DJSemiModalViewController_Example; 428 | SDKROOT = iphoneos; 429 | SKIP_INSTALL = YES; 430 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 431 | TARGETED_DEVICE_FAMILY = "1,2"; 432 | VALIDATE_PRODUCT = YES; 433 | VERSIONING_SYSTEM = "apple-generic"; 434 | VERSION_INFO_PREFIX = ""; 435 | }; 436 | name = Release; 437 | }; 438 | 33DA7F43A1D2FA3C74A8C8FC246E1FA6 /* Debug */ = { 439 | isa = XCBuildConfiguration; 440 | buildSettings = { 441 | ALWAYS_SEARCH_USER_PATHS = NO; 442 | CLANG_ANALYZER_NONNULL = YES; 443 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 444 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 445 | CLANG_CXX_LIBRARY = "libc++"; 446 | CLANG_ENABLE_MODULES = YES; 447 | CLANG_ENABLE_OBJC_ARC = YES; 448 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 449 | CLANG_WARN_BOOL_CONVERSION = YES; 450 | CLANG_WARN_COMMA = YES; 451 | CLANG_WARN_CONSTANT_CONVERSION = YES; 452 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 453 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 454 | CLANG_WARN_EMPTY_BODY = YES; 455 | CLANG_WARN_ENUM_CONVERSION = YES; 456 | CLANG_WARN_INFINITE_RECURSION = YES; 457 | CLANG_WARN_INT_CONVERSION = YES; 458 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 459 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 460 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 464 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 465 | CLANG_WARN_UNREACHABLE_CODE = YES; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | CODE_SIGNING_REQUIRED = NO; 468 | COPY_PHASE_STRIP = NO; 469 | DEBUG_INFORMATION_FORMAT = dwarf; 470 | ENABLE_STRICT_OBJC_MSGSEND = YES; 471 | ENABLE_TESTABILITY = YES; 472 | GCC_C_LANGUAGE_STANDARD = gnu11; 473 | GCC_DYNAMIC_NO_PIC = NO; 474 | GCC_NO_COMMON_BLOCKS = YES; 475 | GCC_OPTIMIZATION_LEVEL = 0; 476 | GCC_PREPROCESSOR_DEFINITIONS = ( 477 | "POD_CONFIGURATION_DEBUG=1", 478 | "DEBUG=1", 479 | "$(inherited)", 480 | ); 481 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 482 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 483 | GCC_WARN_UNDECLARED_SELECTOR = YES; 484 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 485 | GCC_WARN_UNUSED_FUNCTION = YES; 486 | GCC_WARN_UNUSED_VARIABLE = YES; 487 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 488 | MTL_ENABLE_DEBUG_INFO = YES; 489 | ONLY_ACTIVE_ARCH = YES; 490 | PRODUCT_NAME = "$(TARGET_NAME)"; 491 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 492 | STRIP_INSTALLED_PRODUCT = NO; 493 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 494 | SYMROOT = "${SRCROOT}/../build"; 495 | }; 496 | name = Debug; 497 | }; 498 | 54E2F669D13DA03C9606E927D0FF9BBD /* Debug */ = { 499 | isa = XCBuildConfiguration; 500 | baseConfigurationReference = DF6EFAD7A9BF9EF888B759BC8B77A2AD /* Pods-DJSemiModalViewController_Tests.debug.xcconfig */; 501 | buildSettings = { 502 | CODE_SIGN_IDENTITY = ""; 503 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 504 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 505 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 506 | CURRENT_PROJECT_VERSION = 1; 507 | DEFINES_MODULE = YES; 508 | DYLIB_COMPATIBILITY_VERSION = 1; 509 | DYLIB_CURRENT_VERSION = 1; 510 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 511 | INFOPLIST_FILE = "Target Support Files/Pods-DJSemiModalViewController_Tests/Info.plist"; 512 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 513 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 515 | MACH_O_TYPE = staticlib; 516 | MODULEMAP_FILE = "Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests.modulemap"; 517 | OTHER_LDFLAGS = ""; 518 | OTHER_LIBTOOLFLAGS = ""; 519 | PODS_ROOT = "$(SRCROOT)"; 520 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 521 | PRODUCT_NAME = Pods_DJSemiModalViewController_Tests; 522 | SDKROOT = iphoneos; 523 | SKIP_INSTALL = YES; 524 | TARGETED_DEVICE_FAMILY = "1,2"; 525 | VERSIONING_SYSTEM = "apple-generic"; 526 | VERSION_INFO_PREFIX = ""; 527 | }; 528 | name = Debug; 529 | }; 530 | 731DC216E1A58545B559F6E0A2418060 /* Release */ = { 531 | isa = XCBuildConfiguration; 532 | buildSettings = { 533 | ALWAYS_SEARCH_USER_PATHS = NO; 534 | CLANG_ANALYZER_NONNULL = YES; 535 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 536 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 537 | CLANG_CXX_LIBRARY = "libc++"; 538 | CLANG_ENABLE_MODULES = YES; 539 | CLANG_ENABLE_OBJC_ARC = YES; 540 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 541 | CLANG_WARN_BOOL_CONVERSION = YES; 542 | CLANG_WARN_COMMA = YES; 543 | CLANG_WARN_CONSTANT_CONVERSION = 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_LITERAL_CONVERSION = YES; 552 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 553 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 554 | CLANG_WARN_STRICT_PROTOTYPES = YES; 555 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 556 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 557 | CLANG_WARN_UNREACHABLE_CODE = YES; 558 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 559 | CODE_SIGNING_REQUIRED = NO; 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 | PRODUCT_NAME = "$(TARGET_NAME)"; 579 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 580 | STRIP_INSTALLED_PRODUCT = NO; 581 | SYMROOT = "${SRCROOT}/../build"; 582 | }; 583 | name = Release; 584 | }; 585 | BCC9F42ACF56E1E9458C2E269EF2B1F6 /* Release */ = { 586 | isa = XCBuildConfiguration; 587 | baseConfigurationReference = 4DDB9F53679CE92C8C1C71E4F13D09E3 /* DJSemiModalViewController.xcconfig */; 588 | buildSettings = { 589 | CODE_SIGN_IDENTITY = ""; 590 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 591 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 592 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 593 | CURRENT_PROJECT_VERSION = 1; 594 | DEFINES_MODULE = YES; 595 | DYLIB_COMPATIBILITY_VERSION = 1; 596 | DYLIB_CURRENT_VERSION = 1; 597 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 598 | GCC_PREFIX_HEADER = "Target Support Files/DJSemiModalViewController/DJSemiModalViewController-prefix.pch"; 599 | INFOPLIST_FILE = "Target Support Files/DJSemiModalViewController/Info.plist"; 600 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 601 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 602 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 603 | MODULEMAP_FILE = "Target Support Files/DJSemiModalViewController/DJSemiModalViewController.modulemap"; 604 | PRODUCT_NAME = DJSemiModalViewController; 605 | SDKROOT = iphoneos; 606 | SKIP_INSTALL = YES; 607 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 608 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 609 | SWIFT_VERSION = 4.0; 610 | TARGETED_DEVICE_FAMILY = "1,2"; 611 | VALIDATE_PRODUCT = YES; 612 | VERSIONING_SYSTEM = "apple-generic"; 613 | VERSION_INFO_PREFIX = ""; 614 | }; 615 | name = Release; 616 | }; 617 | BCFED8C2B1650A9F35815682B1ED66CC /* Debug */ = { 618 | isa = XCBuildConfiguration; 619 | baseConfigurationReference = 4DDB9F53679CE92C8C1C71E4F13D09E3 /* DJSemiModalViewController.xcconfig */; 620 | buildSettings = { 621 | CODE_SIGN_IDENTITY = ""; 622 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 623 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 624 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 625 | CURRENT_PROJECT_VERSION = 1; 626 | DEFINES_MODULE = YES; 627 | DYLIB_COMPATIBILITY_VERSION = 1; 628 | DYLIB_CURRENT_VERSION = 1; 629 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 630 | GCC_PREFIX_HEADER = "Target Support Files/DJSemiModalViewController/DJSemiModalViewController-prefix.pch"; 631 | INFOPLIST_FILE = "Target Support Files/DJSemiModalViewController/Info.plist"; 632 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 633 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 634 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 635 | MODULEMAP_FILE = "Target Support Files/DJSemiModalViewController/DJSemiModalViewController.modulemap"; 636 | PRODUCT_NAME = DJSemiModalViewController; 637 | SDKROOT = iphoneos; 638 | SKIP_INSTALL = YES; 639 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 640 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 641 | SWIFT_VERSION = 4.0; 642 | TARGETED_DEVICE_FAMILY = "1,2"; 643 | VERSIONING_SYSTEM = "apple-generic"; 644 | VERSION_INFO_PREFIX = ""; 645 | }; 646 | name = Debug; 647 | }; 648 | D25E1208B0CAE1434A5F62BDFEA1736B /* Debug */ = { 649 | isa = XCBuildConfiguration; 650 | baseConfigurationReference = 5AC4CEDA04F7352E381BDD9BB608F209 /* Pods-DJSemiModalViewController_Example.debug.xcconfig */; 651 | buildSettings = { 652 | CODE_SIGN_IDENTITY = ""; 653 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 654 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 655 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 656 | CURRENT_PROJECT_VERSION = 1; 657 | DEFINES_MODULE = YES; 658 | DYLIB_COMPATIBILITY_VERSION = 1; 659 | DYLIB_CURRENT_VERSION = 1; 660 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 661 | INFOPLIST_FILE = "Target Support Files/Pods-DJSemiModalViewController_Example/Info.plist"; 662 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 663 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 664 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 665 | MACH_O_TYPE = staticlib; 666 | MODULEMAP_FILE = "Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example.modulemap"; 667 | OTHER_LDFLAGS = ""; 668 | OTHER_LIBTOOLFLAGS = ""; 669 | PODS_ROOT = "$(SRCROOT)"; 670 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 671 | PRODUCT_NAME = Pods_DJSemiModalViewController_Example; 672 | SDKROOT = iphoneos; 673 | SKIP_INSTALL = YES; 674 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 675 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 676 | TARGETED_DEVICE_FAMILY = "1,2"; 677 | VERSIONING_SYSTEM = "apple-generic"; 678 | VERSION_INFO_PREFIX = ""; 679 | }; 680 | name = Debug; 681 | }; 682 | /* End XCBuildConfiguration section */ 683 | 684 | /* Begin XCConfigurationList section */ 685 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 686 | isa = XCConfigurationList; 687 | buildConfigurations = ( 688 | 33DA7F43A1D2FA3C74A8C8FC246E1FA6 /* Debug */, 689 | 731DC216E1A58545B559F6E0A2418060 /* Release */, 690 | ); 691 | defaultConfigurationIsVisible = 0; 692 | defaultConfigurationName = Release; 693 | }; 694 | 518FC67DA0DDCBC8E563A68F2BEC53B3 /* Build configuration list for PBXNativeTarget "Pods-DJSemiModalViewController_Tests" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | 54E2F669D13DA03C9606E927D0FF9BBD /* Debug */, 698 | 0F7C458928F8EC966E9A82FA45A1E75C /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | 642673133215AA3C08E86B37FCEE35A8 /* Build configuration list for PBXNativeTarget "DJSemiModalViewController" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | BCFED8C2B1650A9F35815682B1ED66CC /* Debug */, 707 | BCC9F42ACF56E1E9458C2E269EF2B1F6 /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | C742D0951EC763C31F5FA674C6834F13 /* Build configuration list for PBXNativeTarget "Pods-DJSemiModalViewController_Example" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | D25E1208B0CAE1434A5F62BDFEA1736B /* Debug */, 716 | 285D2A7D70F7779B75EE332630000A90 /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | /* End XCConfigurationList section */ 722 | }; 723 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 724 | } 725 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DJSemiModalViewController/DJSemiModalViewController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_DJSemiModalViewController : NSObject 3 | @end 4 | @implementation PodsDummy_DJSemiModalViewController 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DJSemiModalViewController/DJSemiModalViewController-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/DJSemiModalViewController/DJSemiModalViewController-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 DJSemiModalViewControllerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char DJSemiModalViewControllerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DJSemiModalViewController/DJSemiModalViewController.modulemap: -------------------------------------------------------------------------------- 1 | framework module DJSemiModalViewController { 2 | umbrella header "DJSemiModalViewController-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DJSemiModalViewController/DJSemiModalViewController.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/DJSemiModalViewController/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/Pods-DJSemiModalViewController_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-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## DJSemiModalViewController 5 | 6 | Copyright (c) 2018 David Jonsén 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-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_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) 2018 David Jonsén <my.mail@here.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 | DJSemiModalViewController 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-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_DJSemiModalViewController_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_DJSemiModalViewController_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # Used as a return value for each invocation of `strip_invalid_archs` function. 10 | STRIP_BINARY_RETVAL=0 11 | 12 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 13 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 14 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 15 | 16 | # Copies and strips a vendored framework 17 | install_framework() 18 | { 19 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 20 | local source="${BUILT_PRODUCTS_DIR}/$1" 21 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 22 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 23 | elif [ -r "$1" ]; then 24 | local source="$1" 25 | fi 26 | 27 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 28 | 29 | if [ -L "${source}" ]; then 30 | echo "Symlinked..." 31 | source="$(readlink "${source}")" 32 | fi 33 | 34 | # Use filter instead of exclude so missing patterns don't throw errors. 35 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 36 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 37 | 38 | local basename 39 | basename="$(basename -s .framework "$1")" 40 | binary="${destination}/${basename}.framework/${basename}" 41 | if ! [ -r "$binary" ]; then 42 | binary="${destination}/${basename}" 43 | fi 44 | 45 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 46 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 47 | strip_invalid_archs "$binary" 48 | fi 49 | 50 | # Resign the code if required by the build settings to avoid unstable apps 51 | code_sign_if_enabled "${destination}/$(basename "$1")" 52 | 53 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 54 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 55 | local swift_runtime_libs 56 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 57 | for lib in $swift_runtime_libs; do 58 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 59 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 60 | code_sign_if_enabled "${destination}/${lib}" 61 | done 62 | fi 63 | } 64 | 65 | # Copies and strips a vendored dSYM 66 | install_dsym() { 67 | local source="$1" 68 | if [ -r "$source" ]; then 69 | # Copy the dSYM into a the targets temp dir. 70 | 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}\"" 71 | 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}" 72 | 73 | local basename 74 | basename="$(basename -s .framework.dSYM "$source")" 75 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 76 | 77 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 78 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 79 | strip_invalid_archs "$binary" 80 | fi 81 | 82 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 83 | # Move the stripped file into its final destination. 84 | 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}\"" 85 | 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}" 86 | else 87 | # 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. 88 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 89 | fi 90 | fi 91 | } 92 | 93 | # Signs a framework with the provided identity 94 | code_sign_if_enabled() { 95 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 96 | # Use the current code_sign_identitiy 97 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 98 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 99 | 100 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 101 | code_sign_cmd="$code_sign_cmd &" 102 | fi 103 | echo "$code_sign_cmd" 104 | eval "$code_sign_cmd" 105 | fi 106 | } 107 | 108 | # Strip invalid architectures 109 | strip_invalid_archs() { 110 | binary="$1" 111 | # Get architectures for current target binary 112 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 113 | # Intersect them with the architectures we are building for 114 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 115 | # If there are no archs supported by this binary then warn the user 116 | if [[ -z "$intersected_archs" ]]; then 117 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 118 | STRIP_BINARY_RETVAL=0 119 | return 120 | fi 121 | stripped="" 122 | for arch in $binary_archs; do 123 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 124 | # Strip non-valid architectures in-place 125 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 126 | stripped="$stripped $arch" 127 | fi 128 | done 129 | if [[ "$stripped" ]]; then 130 | echo "Stripped $binary of architectures:$stripped" 131 | fi 132 | STRIP_BINARY_RETVAL=1 133 | } 134 | 135 | 136 | if [[ "$CONFIGURATION" == "Debug" ]]; then 137 | install_framework "${BUILT_PRODUCTS_DIR}/DJSemiModalViewController/DJSemiModalViewController.framework" 138 | fi 139 | if [[ "$CONFIGURATION" == "Release" ]]; then 140 | install_framework "${BUILT_PRODUCTS_DIR}/DJSemiModalViewController/DJSemiModalViewController.framework" 141 | fi 142 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 143 | wait 144 | fi 145 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_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_DJSemiModalViewController_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_DJSemiModalViewController_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController/DJSemiModalViewController.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "DJSemiModalViewController" 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-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_DJSemiModalViewController_Example { 2 | umbrella header "Pods-DJSemiModalViewController_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Example/Pods-DJSemiModalViewController_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController/DJSemiModalViewController.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "DJSemiModalViewController" 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-DJSemiModalViewController_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-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_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-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_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-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_DJSemiModalViewController_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_DJSemiModalViewController_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # Used as a return value for each invocation of `strip_invalid_archs` function. 10 | STRIP_BINARY_RETVAL=0 11 | 12 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 13 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 14 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 15 | 16 | # Copies and strips a vendored framework 17 | install_framework() 18 | { 19 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 20 | local source="${BUILT_PRODUCTS_DIR}/$1" 21 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 22 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 23 | elif [ -r "$1" ]; then 24 | local source="$1" 25 | fi 26 | 27 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 28 | 29 | if [ -L "${source}" ]; then 30 | echo "Symlinked..." 31 | source="$(readlink "${source}")" 32 | fi 33 | 34 | # Use filter instead of exclude so missing patterns don't throw errors. 35 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 36 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 37 | 38 | local basename 39 | basename="$(basename -s .framework "$1")" 40 | binary="${destination}/${basename}.framework/${basename}" 41 | if ! [ -r "$binary" ]; then 42 | binary="${destination}/${basename}" 43 | fi 44 | 45 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 46 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 47 | strip_invalid_archs "$binary" 48 | fi 49 | 50 | # Resign the code if required by the build settings to avoid unstable apps 51 | code_sign_if_enabled "${destination}/$(basename "$1")" 52 | 53 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 54 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 55 | local swift_runtime_libs 56 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 57 | for lib in $swift_runtime_libs; do 58 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 59 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 60 | code_sign_if_enabled "${destination}/${lib}" 61 | done 62 | fi 63 | } 64 | 65 | # Copies and strips a vendored dSYM 66 | install_dsym() { 67 | local source="$1" 68 | if [ -r "$source" ]; then 69 | # Copy the dSYM into a the targets temp dir. 70 | 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}\"" 71 | 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}" 72 | 73 | local basename 74 | basename="$(basename -s .framework.dSYM "$source")" 75 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 76 | 77 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 78 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 79 | strip_invalid_archs "$binary" 80 | fi 81 | 82 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 83 | # Move the stripped file into its final destination. 84 | 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}\"" 85 | 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}" 86 | else 87 | # 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. 88 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 89 | fi 90 | fi 91 | } 92 | 93 | # Signs a framework with the provided identity 94 | code_sign_if_enabled() { 95 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 96 | # Use the current code_sign_identitiy 97 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 98 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 99 | 100 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 101 | code_sign_cmd="$code_sign_cmd &" 102 | fi 103 | echo "$code_sign_cmd" 104 | eval "$code_sign_cmd" 105 | fi 106 | } 107 | 108 | # Strip invalid architectures 109 | strip_invalid_archs() { 110 | binary="$1" 111 | # Get architectures for current target binary 112 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 113 | # Intersect them with the architectures we are building for 114 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 115 | # If there are no archs supported by this binary then warn the user 116 | if [[ -z "$intersected_archs" ]]; then 117 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 118 | STRIP_BINARY_RETVAL=0 119 | return 120 | fi 121 | stripped="" 122 | for arch in $binary_archs; do 123 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 124 | # Strip non-valid architectures in-place 125 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 126 | stripped="$stripped $arch" 127 | fi 128 | done 129 | if [[ "$stripped" ]]; then 130 | echo "Stripped $binary of architectures:$stripped" 131 | fi 132 | STRIP_BINARY_RETVAL=1 133 | } 134 | 135 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 136 | wait 137 | fi 138 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_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_DJSemiModalViewController_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_DJSemiModalViewController_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController/DJSemiModalViewController.framework/Headers" 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-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_DJSemiModalViewController_Tests { 2 | umbrella header "Pods-DJSemiModalViewController_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-DJSemiModalViewController_Tests/Pods-DJSemiModalViewController_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/DJSemiModalViewController/DJSemiModalViewController.framework/Headers" 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 DJSemiModalViewController 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 | MIT License 2 | 3 | Copyright (c) 2018 David Jonsén 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DJSemiModalViewController 2 | 3 | DJSemiModalViewController is a semi modal presentation dialog that grows with it´s added content. DJSemiModalViewController works for iPhone and iPad. DJSemiModalViewController mimic the design of the default NFC popup dialog. 4 | 5 | 6 | 7 | ## Example 8 | 9 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 10 | 11 | ## Installation 12 | 13 | DJSemiModalViewController is available through [CocoaPods](http://cocoapods.org). To install 14 | it, simply add the following line to your Podfile: 15 | 16 | ```ruby 17 | pod 'DJSemiModalViewController' 18 | ``` 19 | 20 | ## How to use it 21 | 22 | ```swift 23 | 24 | @IBAction func buttonAction(_ sender: Any) { 25 | 26 | let controller = DJSemiModalViewController() 27 | 28 | controller.title = "Title" 29 | 30 | let label = UILabel() 31 | label.text = "An example label" 32 | label.textAlignment = .center 33 | controller.addArrangedSubview(view: label) 34 | 35 | controller.presentOn(presentingViewController: self, animated: true, onDismiss: { }) 36 | } 37 | 38 | ``` 39 | 40 | ### Add views to content StackView 41 | 42 | ```swift 43 | 44 | public func addArrangedSubview(view: UIView) 45 | 46 | public func addArrangedSubview(view: UIView, height: CGFloat) 47 | 48 | public func insertArrangedSubview(view: UIView, at index: Int) 49 | 50 | ``` 51 | 52 | ### Presenting the ViewController 53 | 54 | ```swift 55 | 56 | public func presentOn(presentingViewController: UIViewController, animated: Bool = true, onDismiss dismissHandler: ViewWillDismiss?) 57 | 58 | ``` 59 | 60 | ### Settings 61 | 62 | ```swift 63 | controller.automaticallyAdjustsContentHeight = true 64 | 65 | controller.maxWidth = 420 66 | 67 | controller.minHeight = 200 68 | 69 | controller.titleLabel.font = UIFont.systemFont(ofSize: 22, weight: UIFont.Weight.bold) 70 | 71 | controller.closeButton.setTitle("Done", for: .normal) 72 | 73 | ``` 74 | 75 | ## Author 76 | 77 | David Jonsén 78 | 79 | ## License 80 | 81 | DJSemiModalViewController is available under the MIT license. See the LICENSE file for more info. 82 | 83 | ## Todo 84 | 85 | - Make it possible to turn close methods on/off; close button, tap on background, drag gesture. 86 | 87 | ## Credits 88 | 89 | Photo by rawpixel.com on Unsplash 90 | -------------------------------------------------------------------------------- /Screencast_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davnag/DJSemiModalViewController/075eb33fc77e7b21c6cc11ca78f089a4b4b24e62/Screencast_1.gif -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /screenshots_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davnag/DJSemiModalViewController/075eb33fc77e7b21c6cc11ca78f089a4b4b24e62/screenshots_1.png --------------------------------------------------------------------------------