├── .gitignore ├── .travis.yml ├── CLabsImageSlider.podspec ├── CLabsImageSlider ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── CLabsImageSlider.swift ├── Example ├── CLabsImageSlider.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── CLabsImageSlider-Example.xcscheme ├── CLabsImageSlider.xcworkspace │ └── contents.xcworkspacedata ├── CLabsImageSlider │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── five.imageset │ │ │ ├── Contents.json │ │ │ └── five.png │ │ ├── four.imageset │ │ │ ├── Contents.json │ │ │ └── four.png │ │ ├── one.imageset │ │ │ ├── Contents.json │ │ │ └── one.png │ │ ├── placeHolder.imageset │ │ │ ├── Contents.json │ │ │ └── placeHolder.png │ │ ├── six.imageset │ │ │ ├── Contents.json │ │ │ └── six.png │ │ ├── three.imageset │ │ │ ├── Contents.json │ │ │ └── three.png │ │ └── two.imageset │ │ │ ├── Contents.json │ │ │ └── two.png │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── CLabsImageSlider.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── CLabsImageSlider │ │ ├── CLabsImageSlider-dummy.m │ │ ├── CLabsImageSlider-prefix.pch │ │ ├── CLabsImageSlider-umbrella.h │ │ ├── CLabsImageSlider.modulemap │ │ ├── CLabsImageSlider.xcconfig │ │ └── Info.plist │ │ ├── Pods-CLabsImageSlider_Example │ │ ├── Info.plist │ │ ├── Pods-CLabsImageSlider_Example-acknowledgements.markdown │ │ ├── Pods-CLabsImageSlider_Example-acknowledgements.plist │ │ ├── Pods-CLabsImageSlider_Example-dummy.m │ │ ├── Pods-CLabsImageSlider_Example-frameworks.sh │ │ ├── Pods-CLabsImageSlider_Example-resources.sh │ │ ├── Pods-CLabsImageSlider_Example-umbrella.h │ │ ├── Pods-CLabsImageSlider_Example.debug.xcconfig │ │ ├── Pods-CLabsImageSlider_Example.modulemap │ │ └── Pods-CLabsImageSlider_Example.release.xcconfig │ │ └── Pods-CLabsImageSlider_Tests │ │ ├── Info.plist │ │ ├── Pods-CLabsImageSlider_Tests-acknowledgements.markdown │ │ ├── Pods-CLabsImageSlider_Tests-acknowledgements.plist │ │ ├── Pods-CLabsImageSlider_Tests-dummy.m │ │ ├── Pods-CLabsImageSlider_Tests-frameworks.sh │ │ ├── Pods-CLabsImageSlider_Tests-resources.sh │ │ ├── Pods-CLabsImageSlider_Tests-umbrella.h │ │ ├── Pods-CLabsImageSlider_Tests.debug.xcconfig │ │ ├── Pods-CLabsImageSlider_Tests.modulemap │ │ └── Pods-CLabsImageSlider_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/CLabsImageSlider.xcworkspace -scheme CLabsImageSlider-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /CLabsImageSlider.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint CLabsImageSlider.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 = 'CLabsImageSlider' 11 | s.version = '0.1.2' 12 | s.summary = 'CLabsImageSlider is a image slider written in swift language.' 13 | 14 | 15 | s.description = 'CLabsImageSlider is a image slider written in swift language ,instead of implementing complex logics now you can create image slider with a single line of code. CLabsImageSlider loads local or remote images with multiple options like manual or auto slide etc. So save your time in writing code for page control by using CLabsImageSlider.' 16 | 17 | 18 | s.homepage = 'https://github.com/ConfianceLabs/CLabsImageSlider.git' 19 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 20 | s.license = { :type => 'MIT', :file => 'LICENSE' } 21 | s.author = { 'Dewanshu Sharma' => 'confiancelabs@gmail.com' } 22 | s.source = { :git => 'https://github.com/ConfianceLabs/CLabsImageSlider.git', :tag => s.version.to_s } 23 | # s.social_media_url = 'https://twitter.com/' 24 | 25 | s.ios.deployment_target = '8.0' 26 | 27 | s.source_files = 'CLabsImageSlider/Classes/**/*' 28 | 29 | # s.resource_bundles = { 30 | # 'CLabsImageSlider' => ['CLabsImageSlider/Assets/*.png'] 31 | # } 32 | 33 | # s.public_header_files = 'Pod/Classes/**/*.h' 34 | # s.frameworks = 'UIKit', 'MapKit' 35 | # s.dependency 'AFNetworking', '~> 2.3' 36 | end 37 | -------------------------------------------------------------------------------- /CLabsImageSlider/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/CLabsImageSlider/Assets/.gitkeep -------------------------------------------------------------------------------- /CLabsImageSlider/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/CLabsImageSlider/Classes/.gitkeep -------------------------------------------------------------------------------- /CLabsImageSlider/Classes/CLabsImageSlider.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CLabsImageSlider.swift 3 | // Pods 4 | // 5 | // Created by apple on 18/09/16. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | @objc public protocol imageSliderDelegate { 13 | 14 | func didMovedToIndex(index:Int) 15 | 16 | 17 | } 18 | 19 | 20 | @objc public protocol updateUI { 21 | func imageUpdate(index:Int) 22 | } 23 | 24 | 25 | 26 | public class CLabsImageSlider:UIView,updateUI 27 | { 28 | 29 | public enum imageSrc 30 | { 31 | case Url(imageArray:[String],placeHolderImage:UIImage?) 32 | case Local(imageArray:[String]) 33 | } 34 | 35 | public enum slideCase 36 | { 37 | case ManualSwipe 38 | case Automatic(timeIntervalinSeconds:Double) 39 | } 40 | 41 | 42 | 43 | var imageSourceArray = [imageData]() 44 | var isAnimating = false 45 | var isGestureEnabled = Bool() 46 | var visibleImageView = UIImageView() 47 | var imageView1 = UIImageView() 48 | var imageView2 = UIImageView() 49 | var imageView3 = UIImageView() 50 | var currentIndex = Int() 51 | var placeHolderImage = UIImage() 52 | var isLocalImage = Bool() 53 | 54 | 55 | public weak var sliderDelegate : imageSliderDelegate? 56 | 57 | 58 | 59 | var rightFrame :CGRect 60 | { 61 | return CGRect(x:self.frame.size.width, y:0, width:self.frame.size.width, height:self.frame.size.height) 62 | } 63 | 64 | var midFrame : CGRect 65 | { 66 | return CGRect(x:0, y:0,width: self.frame.size.width,height: self.frame.size.height) 67 | } 68 | 69 | var leftFrame : CGRect 70 | { 71 | return CGRect(x:-self.frame.size.width,y:0, width:self.frame.size.width, height:self.frame.size.height) 72 | } 73 | 74 | 75 | var leftSwipe : UISwipeGestureRecognizer 76 | { 77 | let leftSwipe = UISwipeGestureRecognizer(target: self, action: #selector(CLabsImageSlider.swipeRight(swipeGesture:))) 78 | leftSwipe.direction = .left 79 | return leftSwipe 80 | } 81 | 82 | var rightSwipe : UISwipeGestureRecognizer 83 | { 84 | 85 | return UISwipeGestureRecognizer(target: self, action: #selector(CLabsImageSlider.swipeLeft(swipeGesture:))) 86 | } 87 | 88 | 89 | required public init?(coder aDecoder: NSCoder) { 90 | super.init(coder: aDecoder) 91 | 92 | 93 | } 94 | 95 | override init(frame: CGRect) { 96 | super.init(frame: frame) 97 | 98 | 99 | } 100 | 101 | 102 | 103 | 104 | /** 105 | This function set up the image slider for you just pass few required parameters to it 106 | - returns: Nothing 107 | - parameter imageSource: to show images from url use -> .Url(imageArray [String],placeHolderImage:UIImage?) and provide url array and placeholder image in paranthesis , to show local images use -> .Local(imageArray:[String]) and provide local image names array in paranthesis 108 | 109 | - parameter slideType: to slide images automatically use -> .Automatic(timeIntervalinSeconds:Double) and provide time interval(Seconds) in parantheseis , to swipe and slide images manually simply use -> .ManualSwipe 110 | 111 | - parameter isArrowBtnEnabled:Bool to show arrows to slide images backward and forward pass true else false 112 | Throws : nothing 113 | */ 114 | public func setUpView(imageSource:imageSrc,slideType:slideCase,isArrowBtnEnabled:Bool) 115 | { 116 | switch imageSource{ 117 | case .Local(let images): 118 | prepareImageSource(images: images) 119 | isLocalImage = true 120 | 121 | case .Url(let images,let placeholderImg): 122 | placeHolderImage = placeholderImg! 123 | prepareImageSource(images: images) 124 | isLocalImage = false 125 | } 126 | 127 | 128 | 129 | 130 | switch slideType{ 131 | case .Automatic(let timer): 132 | isGestureEnabled=false 133 | Timer.scheduledTimer(timeInterval: timer, target: self, selector: #selector(CLabsImageSlider.moveRight), userInfo: nil, repeats: true) 134 | 135 | case .ManualSwipe: 136 | isGestureEnabled=true 137 | if imageSourceArray.count>1 138 | { 139 | imageView2.addGestureRecognizer(leftSwipe) 140 | imageView2.addGestureRecognizer(rightSwipe) 141 | 142 | } 143 | 144 | } 145 | 146 | 147 | 148 | 149 | imageView1.frame = leftFrame 150 | imageView1.tag = 1 151 | imageView1.isUserInteractionEnabled = true 152 | imageView1.contentMode = .scaleToFill 153 | self.addSubview(imageView1) 154 | 155 | 156 | 157 | imageView2.frame = midFrame 158 | imageView2.tag = 2 159 | imageView2.contentMode = .scaleToFill 160 | imageView2.isUserInteractionEnabled = true 161 | visibleImageView = imageView2 162 | 163 | if imageSourceArray.count > 0 164 | { 165 | imageView2.image = getImage(index: 0) 166 | } 167 | self.addSubview(imageView2) 168 | 169 | 170 | imageView3.frame = rightFrame 171 | imageView3.tag = 3 172 | imageView3.contentMode = .scaleToFill 173 | imageView3.isUserInteractionEnabled = true 174 | self.addSubview(imageView3) 175 | 176 | 177 | if imageSourceArray.count>1{ 178 | if isArrowBtnEnabled{ 179 | enableArrows() 180 | } 181 | } 182 | 183 | } 184 | 185 | 186 | @objc func moveRight() 187 | { 188 | if !isAnimating{ 189 | currentIndex = currentIndex + 1 190 | if currentIndex == imageSourceArray.count{currentIndex = 0} 191 | visibleImageView.removeGestureRecognizer(leftSwipe) 192 | visibleImageView.removeGestureRecognizer(rightSwipe) 193 | startImageDownload(index: currentIndex) 194 | swipeRightAnimate(condition: visibleImageView.tag) 195 | self.sliderDelegate?.didMovedToIndex(index: currentIndex) 196 | } 197 | } 198 | 199 | 200 | @objc func moveLeft() 201 | { 202 | if !isAnimating{ 203 | currentIndex = currentIndex - 1 204 | if currentIndex < 0{currentIndex = imageSourceArray.count - 1} 205 | visibleImageView.removeGestureRecognizer(leftSwipe) 206 | visibleImageView.removeGestureRecognizer(rightSwipe) 207 | startImageDownload(index: currentIndex) 208 | swipeLeftAnimate(condition: visibleImageView.tag) 209 | self.sliderDelegate?.didMovedToIndex(index: currentIndex) 210 | } 211 | } 212 | 213 | 214 | 215 | 216 | @objc func swipeLeft(swipeGesture:UISwipeGestureRecognizer) 217 | { 218 | moveLeft() 219 | } 220 | 221 | 222 | 223 | 224 | func swipeLeftAnimate(condition:Int) 225 | { 226 | isAnimating=true 227 | switch condition { 228 | case 1: 229 | self.visibleImageView = self.imageView3 230 | imageView3.image = getImage(index: currentIndex) 231 | UIView.animate(withDuration: 0.5, animations: { 232 | self.imageView2.isHidden = true 233 | self.imageView1.frame = self.rightFrame 234 | self.imageView2.frame = self.leftFrame 235 | self.imageView3.frame = self.midFrame 236 | 237 | }, completion: {[unowned self](finished:Bool) -> Void in 238 | 239 | 240 | 241 | if self.isGestureEnabled{ 242 | self.imageView3.addGestureRecognizer(self.leftSwipe) 243 | self.imageView3.addGestureRecognizer(self.rightSwipe) 244 | } 245 | self.imageView2.isHidden = false 246 | self.isAnimating=false 247 | }) 248 | 249 | case 2: 250 | self.visibleImageView = self.imageView1 251 | imageView1.image = getImage(index: currentIndex) 252 | UIView.animate(withDuration: 0.5, animations: { 253 | self.imageView3.isHidden = true 254 | self.imageView1.frame = self.midFrame 255 | self.imageView2.frame = self.rightFrame 256 | self.imageView3.frame = self.leftFrame 257 | 258 | }, completion: {[unowned self](finished:Bool) -> Void in 259 | if self.isGestureEnabled{ 260 | self.imageView1.addGestureRecognizer(self.leftSwipe) 261 | self.imageView1.addGestureRecognizer(self.rightSwipe) 262 | } 263 | self.imageView3.isHidden = false 264 | self.isAnimating=false 265 | }) 266 | 267 | case 3: 268 | self.visibleImageView = self.imageView2 269 | imageView2.image = getImage(index: currentIndex) 270 | UIView.animate(withDuration: 0.5, animations: { 271 | self.imageView1.isHidden = true 272 | self.imageView1.frame = self.leftFrame 273 | self.imageView2.frame = self.midFrame 274 | self.imageView3.frame = self.rightFrame 275 | 276 | }, completion: {[unowned self](finished:Bool) -> Void in 277 | if self.isGestureEnabled{ 278 | self.imageView2.addGestureRecognizer(self.leftSwipe) 279 | self.imageView2.addGestureRecognizer(self.rightSwipe) 280 | } 281 | self.imageView1.isHidden = false 282 | self.isAnimating=false 283 | }) 284 | 285 | default: 286 | break 287 | } 288 | 289 | } 290 | 291 | 292 | 293 | 294 | @objc func swipeRight(swipeGesture:UISwipeGestureRecognizer) 295 | { 296 | moveRight() 297 | } 298 | 299 | 300 | 301 | func swipeRightAnimate(condition:Int){ 302 | isAnimating=true 303 | switch condition { 304 | case 1: 305 | self.visibleImageView = self.imageView2 306 | imageView2.image = getImage(index: currentIndex) 307 | UIView.animate(withDuration: 0.5, animations: { 308 | self.imageView3.isHidden = true 309 | self.imageView1.frame = self.leftFrame 310 | self.imageView2.frame = self.midFrame 311 | self.imageView3.frame = self.rightFrame 312 | 313 | }, completion: {[unowned self](finished:Bool) -> Void in 314 | if self.isGestureEnabled{ 315 | self.imageView2.addGestureRecognizer(self.leftSwipe) 316 | self.imageView2.addGestureRecognizer(self.rightSwipe) 317 | } 318 | self.imageView3.isHidden = false 319 | self.isAnimating=false 320 | }) 321 | 322 | case 2: 323 | self.visibleImageView = self.imageView3 324 | imageView3.image = getImage(index: currentIndex) 325 | UIView.animate(withDuration: 0.5, animations: { 326 | self.imageView1.isHidden = true 327 | self.imageView1.frame = self.rightFrame 328 | self.imageView2.frame = self.leftFrame 329 | self.imageView3.frame = self.midFrame 330 | 331 | }, completion: {[unowned self](finished:Bool) -> Void in 332 | if self.isGestureEnabled{ 333 | self.imageView3.addGestureRecognizer(self.leftSwipe) 334 | self.imageView3.addGestureRecognizer(self.rightSwipe) 335 | } 336 | self.imageView1.isHidden = false 337 | self.isAnimating=false 338 | }) 339 | 340 | case 3: 341 | self.visibleImageView = self.imageView1 342 | imageView1.image = getImage(index: currentIndex) 343 | UIView.animate(withDuration: 0.5, animations: { 344 | self.imageView2.isHidden = true 345 | self.imageView1.frame = self.midFrame 346 | self.imageView2.frame = self.rightFrame 347 | self.imageView3.frame = self.leftFrame 348 | 349 | }, completion: {[unowned self](finished:Bool) -> Void in 350 | if self.isGestureEnabled{ 351 | self.imageView1.addGestureRecognizer(self.leftSwipe) 352 | self.imageView1.addGestureRecognizer(self.rightSwipe) 353 | } 354 | self.imageView2.isHidden = false 355 | self.isAnimating=false 356 | }) 357 | default: break 358 | 359 | } 360 | 361 | } 362 | 363 | 364 | 365 | func prepareImageSource(images:[String]){ 366 | 367 | for i in 0.. UIImage? 410 | { 411 | 412 | if isLocalImage{ 413 | return UIImage(named: imageSourceArray[index].imageUrl) 414 | } 415 | else 416 | { 417 | 418 | if imageSourceArray[index].image != nil 419 | { 420 | return imageSourceArray[index].image 421 | } 422 | else 423 | { 424 | return placeHolderImage 425 | } 426 | 427 | } 428 | } 429 | 430 | 431 | func enableArrows() 432 | { 433 | let shape = CAShapeLayer() 434 | let path = UIBezierPath() 435 | path.move(to: CGPoint(x:self.frame.size.width-16, y:self.frame.size.height/2-10)) 436 | path.addLine(to: CGPoint(x:self.frame.size.width-8,y: self.frame.size.height/2)) 437 | path.addLine(to: CGPoint(x:self.frame.size.width-16,y: self.frame.size.height/2+10)) 438 | shape.lineWidth = 2.0 439 | shape.path=path.cgPath; 440 | shape.fillColor=UIColor.clear.cgColor 441 | shape.strokeColor = UIColor.white.withAlphaComponent(0.7).cgColor 442 | self.layer.addSublayer(shape) 443 | 444 | 445 | let shape1 = CAShapeLayer() 446 | let path1 = UIBezierPath() 447 | path1.move(to: CGPoint(x:self.frame.size.width-18, y:self.frame.size.height/2-10)) 448 | path1.addLine(to: CGPoint(x:self.frame.size.width-10,y: self.frame.size.height/2)) 449 | path1.addLine(to: CGPoint(x:self.frame.size.width-18, y:self.frame.size.height/2+10)) 450 | shape1.lineWidth = 2.0 451 | shape1.path=path1.cgPath; 452 | shape1.fillColor=UIColor.clear.cgColor 453 | shape1.strokeColor = UIColor.black.withAlphaComponent(0.7).cgColor 454 | self.layer.addSublayer(shape1) 455 | 456 | 457 | let shape2 = CAShapeLayer() 458 | let path2 = UIBezierPath() 459 | path2.move(to: CGPoint(x:16, y:self.frame.size.height/2-10)) 460 | path2.addLine(to: CGPoint(x:8, y:self.frame.size.height/2)) 461 | path2.addLine(to: CGPoint(x:16, y:self.frame.size.height/2+10)) 462 | shape2.lineWidth = 2.0 463 | shape2.path=path2.cgPath; 464 | shape2.fillColor=UIColor.clear.cgColor 465 | shape2.strokeColor = UIColor.white.withAlphaComponent(0.7).cgColor 466 | self.layer.addSublayer(shape2) 467 | 468 | 469 | let shape3 = CAShapeLayer() 470 | let path3 = UIBezierPath() 471 | path3.move(to: CGPoint(x:18, y:self.frame.size.height/2-10)) 472 | path3.addLine(to: CGPoint(x:10, y:self.frame.size.height/2)) 473 | path3.addLine(to: CGPoint(x:18, y:self.frame.size.height/2+10)) 474 | shape3.lineWidth = 2.0 475 | shape3.path=path3.cgPath; 476 | shape3.fillColor=UIColor.clear.cgColor 477 | shape3.strokeColor = UIColor.black.withAlphaComponent(0.7).cgColor 478 | self.layer.addSublayer(shape3) 479 | 480 | let leftBtn = UIButton() 481 | leftBtn.frame = CGRect(x:6,y: self.frame.size.height/2-15,width: 20,height: 30) 482 | leftBtn.addTarget(self, action: #selector(CLabsImageSlider.moveLeft), for: .touchUpInside) 483 | self.addSubview(leftBtn) 484 | 485 | let rightBtn = UIButton() 486 | rightBtn.frame = CGRect(x:self.frame.size.width-26, y:self.frame.size.height/2-15,width: 20, height:30) 487 | rightBtn.addTarget(self, action: #selector(CLabsImageSlider.moveRight), for: .touchUpInside) 488 | self.addSubview(rightBtn) 489 | 490 | } 491 | 492 | 493 | 494 | 495 | 496 | 497 | } 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | public class imageData { 507 | 508 | var image : UIImage? = nil 509 | var index : Int 510 | var isLoaded = Bool() 511 | var imageUrl : String 512 | var isloading = Bool() 513 | public var delegate : updateUI? = nil 514 | 515 | 516 | 517 | init(url:String,index:Int) 518 | { 519 | imageUrl = url 520 | self.index = index 521 | } 522 | 523 | 524 | 525 | public func downloadImage() 526 | { 527 | 528 | if !isloading{ 529 | 530 | isloading = true 531 | 532 | if let imageUrl = NSURL(string:imageUrl) 533 | { 534 | 535 | 536 | DispatchQueue.global(qos: .userInitiated).async { 537 | 538 | let data = NSData(contentsOf:imageUrl as URL) 539 | DispatchQueue.main.async { 540 | if let imageBytes = data 541 | { 542 | self.image = UIImage(data: imageBytes as Data) 543 | self.isLoaded = true 544 | self.delegate?.imageUpdate(index: self.index) 545 | 546 | } 547 | else 548 | { 549 | 550 | self.isloading = false 551 | 552 | } 553 | 554 | } 555 | } 556 | 557 | // let backgroundQueue = dispatch_get_global_queue(qualityOfServiceClass, 0) 558 | // dispatch_async(backgroundQueue, { 559 | // 560 | // let data = NSData(contentsOfURL:imageUrl) 561 | // 562 | // dispatch_async(dispatch_get_main_queue(), {[unowned self] () -> Void in 563 | // 564 | // if let imageBytes = data 565 | // { 566 | // self.image = UIImage(data: imageBytes) 567 | // self.isLoaded = true 568 | // self.delegate?.imageUpdate(self.index) 569 | // 570 | // } 571 | // else 572 | // { 573 | // 574 | // self.isloading = false 575 | // 576 | // } 577 | // }) 578 | // }) 579 | 580 | 581 | } 582 | } 583 | } 584 | 585 | 586 | } 587 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.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 | F78959731835758F24B267AA /* Pods_CLabsImageSlider_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CA199B33ECA2638A2E3D305 /* Pods_CLabsImageSlider_Tests.framework */; }; 17 | FFA489F5A7D461F0539404A0 /* Pods_CLabsImageSlider_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 012EEF8E9CB37149E797C31A /* Pods_CLabsImageSlider_Example.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 = CLabsImageSlider; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 012EEF8E9CB37149E797C31A /* Pods_CLabsImageSlider_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CLabsImageSlider_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 0CA199B33ECA2638A2E3D305 /* Pods_CLabsImageSlider_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CLabsImageSlider_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 1719C667EAE148D217FBD101 /* Pods-CLabsImageSlider_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CLabsImageSlider_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example.debug.xcconfig"; sourceTree = ""; }; 34 | 2A494CAD1C343634BE8391FD /* Pods-CLabsImageSlider_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CLabsImageSlider_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example.release.xcconfig"; sourceTree = ""; }; 35 | 607FACD01AFB9204008FA782 /* CLabsImageSlider_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CLabsImageSlider_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* CLabsImageSlider_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CLabsImageSlider_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 612ABB0556273615321DCF2C /* Pods-CLabsImageSlider_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CLabsImageSlider_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests.debug.xcconfig"; sourceTree = ""; }; 46 | 726CF6BC0BF244AAEEE3EA08 /* Pods-CLabsImageSlider_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CLabsImageSlider_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests.release.xcconfig"; sourceTree = ""; }; 47 | 81C62FC6D8F85835A479AA0C /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 48 | 99FB99E480B9932A5368392F /* CLabsImageSlider.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CLabsImageSlider.podspec; path = ../CLabsImageSlider.podspec; sourceTree = ""; }; 49 | F3794CAE855B2E0DD2DF206D /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | FFA489F5A7D461F0539404A0 /* Pods_CLabsImageSlider_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | F78959731835758F24B267AA /* Pods_CLabsImageSlider_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 3B377BF9675425FC7BBEFCEB /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 012EEF8E9CB37149E797C31A /* Pods_CLabsImageSlider_Example.framework */, 76 | 0CA199B33ECA2638A2E3D305 /* Pods_CLabsImageSlider_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 3FB18FC1E259E3ADAA94BAE0 /* Pods */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 1719C667EAE148D217FBD101 /* Pods-CLabsImageSlider_Example.debug.xcconfig */, 85 | 2A494CAD1C343634BE8391FD /* Pods-CLabsImageSlider_Example.release.xcconfig */, 86 | 612ABB0556273615321DCF2C /* Pods-CLabsImageSlider_Tests.debug.xcconfig */, 87 | 726CF6BC0BF244AAEEE3EA08 /* Pods-CLabsImageSlider_Tests.release.xcconfig */, 88 | ); 89 | name = Pods; 90 | sourceTree = ""; 91 | }; 92 | 607FACC71AFB9204008FA782 = { 93 | isa = PBXGroup; 94 | children = ( 95 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 96 | 607FACD21AFB9204008FA782 /* Example for CLabsImageSlider */, 97 | 607FACE81AFB9204008FA782 /* Tests */, 98 | 607FACD11AFB9204008FA782 /* Products */, 99 | 3FB18FC1E259E3ADAA94BAE0 /* Pods */, 100 | 3B377BF9675425FC7BBEFCEB /* Frameworks */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 607FACD11AFB9204008FA782 /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD01AFB9204008FA782 /* CLabsImageSlider_Example.app */, 108 | 607FACE51AFB9204008FA782 /* CLabsImageSlider_Tests.xctest */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 607FACD21AFB9204008FA782 /* Example for CLabsImageSlider */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 117 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 118 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 119 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 120 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 121 | 607FACD31AFB9204008FA782 /* Supporting Files */, 122 | ); 123 | name = "Example for CLabsImageSlider"; 124 | path = CLabsImageSlider; 125 | sourceTree = ""; 126 | }; 127 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 607FACD41AFB9204008FA782 /* Info.plist */, 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | 607FACE81AFB9204008FA782 /* Tests */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 139 | 607FACE91AFB9204008FA782 /* Supporting Files */, 140 | ); 141 | path = Tests; 142 | sourceTree = ""; 143 | }; 144 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 607FACEA1AFB9204008FA782 /* Info.plist */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 99FB99E480B9932A5368392F /* CLabsImageSlider.podspec */, 156 | F3794CAE855B2E0DD2DF206D /* README.md */, 157 | 81C62FC6D8F85835A479AA0C /* LICENSE */, 158 | ); 159 | name = "Podspec Metadata"; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* CLabsImageSlider_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CLabsImageSlider_Example" */; 168 | buildPhases = ( 169 | D755185FA1DDC93FC20681C8 /* 📦 Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 0B1B1042172FF1945673F068 /* 📦 Embed Pods Frameworks */, 174 | 654237216A45D14F48A961EB /* 📦 Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = CLabsImageSlider_Example; 181 | productName = CLabsImageSlider; 182 | productReference = 607FACD01AFB9204008FA782 /* CLabsImageSlider_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* CLabsImageSlider_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CLabsImageSlider_Tests" */; 188 | buildPhases = ( 189 | EBBFCE127D6EA8346EF37BED /* 📦 Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | 0DFEE61B99BFA907C55CE698 /* 📦 Embed Pods Frameworks */, 194 | 3972E921D30F7941DDA0DA78 /* 📦 Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = CLabsImageSlider_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* CLabsImageSlider_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 = 0720; 213 | LastUpgradeCheck = 0720; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0800; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 0800; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CLabsImageSlider" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* CLabsImageSlider_Example */, 241 | 607FACE41AFB9204008FA782 /* CLabsImageSlider_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 0B1B1042172FF1945673F068 /* 📦 Embed Pods Frameworks */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | ); 274 | name = "📦 Embed Pods Frameworks"; 275 | outputPaths = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example-frameworks.sh\"\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | 0DFEE61B99BFA907C55CE698 /* 📦 Embed Pods Frameworks */ = { 283 | isa = PBXShellScriptBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | inputPaths = ( 288 | ); 289 | name = "📦 Embed Pods Frameworks"; 290 | outputPaths = ( 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | shellPath = /bin/sh; 294 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests-frameworks.sh\"\n"; 295 | showEnvVarsInLog = 0; 296 | }; 297 | 3972E921D30F7941DDA0DA78 /* 📦 Copy Pods Resources */ = { 298 | isa = PBXShellScriptBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | ); 302 | inputPaths = ( 303 | ); 304 | name = "📦 Copy Pods Resources"; 305 | outputPaths = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | shellPath = /bin/sh; 309 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests-resources.sh\"\n"; 310 | showEnvVarsInLog = 0; 311 | }; 312 | 654237216A45D14F48A961EB /* 📦 Copy Pods Resources */ = { 313 | isa = PBXShellScriptBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | ); 317 | inputPaths = ( 318 | ); 319 | name = "📦 Copy Pods Resources"; 320 | outputPaths = ( 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example-resources.sh\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | D755185FA1DDC93FC20681C8 /* 📦 Check Pods Manifest.lock */ = { 328 | isa = PBXShellScriptBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | inputPaths = ( 333 | ); 334 | name = "📦 Check Pods Manifest.lock"; 335 | outputPaths = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 340 | showEnvVarsInLog = 0; 341 | }; 342 | EBBFCE127D6EA8346EF37BED /* 📦 Check Pods Manifest.lock */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputPaths = ( 348 | ); 349 | name = "📦 Check Pods Manifest.lock"; 350 | outputPaths = ( 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | shellPath = /bin/sh; 354 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 355 | showEnvVarsInLog = 0; 356 | }; 357 | /* End PBXShellScriptBuildPhase section */ 358 | 359 | /* Begin PBXSourcesBuildPhase section */ 360 | 607FACCC1AFB9204008FA782 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 365 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | 607FACE11AFB9204008FA782 /* Sources */ = { 370 | isa = PBXSourcesBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | /* End PBXSourcesBuildPhase section */ 378 | 379 | /* Begin PBXTargetDependency section */ 380 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 381 | isa = PBXTargetDependency; 382 | target = 607FACCF1AFB9204008FA782 /* CLabsImageSlider_Example */; 383 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 384 | }; 385 | /* End PBXTargetDependency section */ 386 | 387 | /* Begin PBXVariantGroup section */ 388 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 389 | isa = PBXVariantGroup; 390 | children = ( 391 | 607FACDA1AFB9204008FA782 /* Base */, 392 | ); 393 | name = Main.storyboard; 394 | sourceTree = ""; 395 | }; 396 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 397 | isa = PBXVariantGroup; 398 | children = ( 399 | 607FACDF1AFB9204008FA782 /* Base */, 400 | ); 401 | name = LaunchScreen.xib; 402 | sourceTree = ""; 403 | }; 404 | /* End PBXVariantGroup section */ 405 | 406 | /* Begin XCBuildConfiguration section */ 407 | 607FACED1AFB9204008FA782 /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ALWAYS_SEARCH_USER_PATHS = NO; 411 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 412 | CLANG_CXX_LIBRARY = "libc++"; 413 | CLANG_ENABLE_MODULES = YES; 414 | CLANG_ENABLE_OBJC_ARC = YES; 415 | CLANG_WARN_BOOL_CONVERSION = YES; 416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 418 | CLANG_WARN_EMPTY_BODY = YES; 419 | CLANG_WARN_ENUM_CONVERSION = YES; 420 | CLANG_WARN_INT_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 422 | CLANG_WARN_UNREACHABLE_CODE = YES; 423 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 424 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 425 | COPY_PHASE_STRIP = NO; 426 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 428 | ENABLE_TESTABILITY = YES; 429 | GCC_C_LANGUAGE_STANDARD = gnu99; 430 | GCC_DYNAMIC_NO_PIC = NO; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | GCC_OPTIMIZATION_LEVEL = 0; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "DEBUG=1", 435 | "$(inherited)", 436 | ); 437 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 440 | GCC_WARN_UNDECLARED_SELECTOR = YES; 441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 442 | GCC_WARN_UNUSED_FUNCTION = YES; 443 | GCC_WARN_UNUSED_VARIABLE = YES; 444 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 445 | MTL_ENABLE_DEBUG_INFO = YES; 446 | ONLY_ACTIVE_ARCH = YES; 447 | SDKROOT = iphoneos; 448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 449 | }; 450 | name = Debug; 451 | }; 452 | 607FACEE1AFB9204008FA782 /* Release */ = { 453 | isa = XCBuildConfiguration; 454 | buildSettings = { 455 | ALWAYS_SEARCH_USER_PATHS = NO; 456 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 457 | CLANG_CXX_LIBRARY = "libc++"; 458 | CLANG_ENABLE_MODULES = YES; 459 | CLANG_ENABLE_OBJC_ARC = YES; 460 | CLANG_WARN_BOOL_CONVERSION = YES; 461 | CLANG_WARN_CONSTANT_CONVERSION = YES; 462 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 463 | CLANG_WARN_EMPTY_BODY = YES; 464 | CLANG_WARN_ENUM_CONVERSION = YES; 465 | CLANG_WARN_INT_CONVERSION = YES; 466 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 467 | CLANG_WARN_UNREACHABLE_CODE = YES; 468 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 469 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 470 | COPY_PHASE_STRIP = NO; 471 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 472 | ENABLE_NS_ASSERTIONS = NO; 473 | ENABLE_STRICT_OBJC_MSGSEND = YES; 474 | GCC_C_LANGUAGE_STANDARD = gnu99; 475 | GCC_NO_COMMON_BLOCKS = YES; 476 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 477 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 478 | GCC_WARN_UNDECLARED_SELECTOR = YES; 479 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 480 | GCC_WARN_UNUSED_FUNCTION = YES; 481 | GCC_WARN_UNUSED_VARIABLE = YES; 482 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 483 | MTL_ENABLE_DEBUG_INFO = NO; 484 | SDKROOT = iphoneos; 485 | VALIDATE_PRODUCT = YES; 486 | }; 487 | name = Release; 488 | }; 489 | 607FACF01AFB9204008FA782 /* Debug */ = { 490 | isa = XCBuildConfiguration; 491 | baseConfigurationReference = 1719C667EAE148D217FBD101 /* Pods-CLabsImageSlider_Example.debug.xcconfig */; 492 | buildSettings = { 493 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 494 | INFOPLIST_FILE = CLabsImageSlider/Info.plist; 495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 496 | MODULE_NAME = ExampleApp; 497 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 498 | PRODUCT_NAME = "$(TARGET_NAME)"; 499 | SWIFT_VERSION = 3.0; 500 | }; 501 | name = Debug; 502 | }; 503 | 607FACF11AFB9204008FA782 /* Release */ = { 504 | isa = XCBuildConfiguration; 505 | baseConfigurationReference = 2A494CAD1C343634BE8391FD /* Pods-CLabsImageSlider_Example.release.xcconfig */; 506 | buildSettings = { 507 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 508 | INFOPLIST_FILE = CLabsImageSlider/Info.plist; 509 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 510 | MODULE_NAME = ExampleApp; 511 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | SWIFT_VERSION = 3.0; 514 | }; 515 | name = Release; 516 | }; 517 | 607FACF31AFB9204008FA782 /* Debug */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = 612ABB0556273615321DCF2C /* Pods-CLabsImageSlider_Tests.debug.xcconfig */; 520 | buildSettings = { 521 | FRAMEWORK_SEARCH_PATHS = ( 522 | "$(SDKROOT)/Developer/Library/Frameworks", 523 | "$(inherited)", 524 | ); 525 | GCC_PREPROCESSOR_DEFINITIONS = ( 526 | "DEBUG=1", 527 | "$(inherited)", 528 | ); 529 | INFOPLIST_FILE = Tests/Info.plist; 530 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 531 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 532 | PRODUCT_NAME = "$(TARGET_NAME)"; 533 | SWIFT_VERSION = 3.0; 534 | }; 535 | name = Debug; 536 | }; 537 | 607FACF41AFB9204008FA782 /* Release */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 726CF6BC0BF244AAEEE3EA08 /* Pods-CLabsImageSlider_Tests.release.xcconfig */; 540 | buildSettings = { 541 | FRAMEWORK_SEARCH_PATHS = ( 542 | "$(SDKROOT)/Developer/Library/Frameworks", 543 | "$(inherited)", 544 | ); 545 | INFOPLIST_FILE = Tests/Info.plist; 546 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 547 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | SWIFT_VERSION = 3.0; 550 | }; 551 | name = Release; 552 | }; 553 | /* End XCBuildConfiguration section */ 554 | 555 | /* Begin XCConfigurationList section */ 556 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CLabsImageSlider" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 607FACED1AFB9204008FA782 /* Debug */, 560 | 607FACEE1AFB9204008FA782 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CLabsImageSlider_Example" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 607FACF01AFB9204008FA782 /* Debug */, 569 | 607FACF11AFB9204008FA782 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CLabsImageSlider_Tests" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 607FACF31AFB9204008FA782 /* Debug */, 578 | 607FACF41AFB9204008FA782 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | /* End XCConfigurationList section */ 584 | }; 585 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 586 | } 587 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider.xcodeproj/xcshareddata/xcschemes/CLabsImageSlider-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CLabsImageSlider 4 | // 5 | // Created by ConfianceLabs on 09/18/2016. 6 | // Copyright (c) 2016 ConfianceLabs. 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/CLabsImageSlider/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/five.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "five.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/five.imageset/five.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/Example/CLabsImageSlider/Images.xcassets/five.imageset/five.png -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/four.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "four.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/four.imageset/four.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/Example/CLabsImageSlider/Images.xcassets/four.imageset/four.png -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/one.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "one.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/one.imageset/one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/Example/CLabsImageSlider/Images.xcassets/one.imageset/one.png -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/placeHolder.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "placeHolder.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/placeHolder.imageset/placeHolder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/Example/CLabsImageSlider/Images.xcassets/placeHolder.imageset/placeHolder.png -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/six.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "six.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/six.imageset/six.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/Example/CLabsImageSlider/Images.xcassets/six.imageset/six.png -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/three.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "three.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/three.imageset/three.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/Example/CLabsImageSlider/Images.xcassets/three.imageset/three.png -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/two.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "two.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Images.xcassets/two.imageset/two.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ConfianceLabs/CLabsImageSlider/39eb95b4d10032ca8afa632bb3656ed2835dd040/Example/CLabsImageSlider/Images.xcassets/two.imageset/two.png -------------------------------------------------------------------------------- /Example/CLabsImageSlider/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/CLabsImageSlider/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CLabsImageSlider 4 | // 5 | // Created by ConfianceLabs on 09/18/2016. 6 | // Copyright (c) 2016 ConfianceLabs. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CLabsImageSlider 11 | 12 | 13 | 14 | 15 | 16 | class ViewController: UIViewController,imageSliderDelegate { 17 | 18 | @IBOutlet weak var imgSlider: CLabsImageSlider! 19 | 20 | 21 | let urlImages = ["https://s26.postimg.org/3n85yisu1/one_5_51_58_PM.png","https://s26.postimg.org/65tuz7ek9/two_5_41_53_PM.png","https://s26.postimg.org/7ywrnizqx/three_5_41_53_PM.png","https://s26.postimg.org/6l54s80hl/four.png","https://s26.postimg.org/ioagfsbjt/five.png"] 22 | 23 | let localImages = ["one","two","three","four","five","six"] 24 | 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | // Do any additional setup after loading the view, typically from a nib. 28 | 29 | imgSlider.sliderDelegate = self 30 | 31 | 32 | } 33 | 34 | 35 | override func viewDidLayoutSubviews() { 36 | 37 | 38 | 39 | imgSlider.setUpView(imageSource: .Url(imageArray:urlImages,placeHolderImage:UIImage(named:"placeHolder")),slideType:.ManualSwipe,isArrowBtnEnabled: true) 40 | 41 | // imgSlider.setUpView(.Local(imageArray: localImages),slideType: .ManualSwipe,isArrowBtnEnabled: true) 42 | 43 | } 44 | 45 | 46 | func didMovedToIndex(index:Int) 47 | { 48 | print("did moved at Index : ",index) 49 | } 50 | 51 | override func didReceiveMemoryWarning() { 52 | super.didReceiveMemoryWarning() 53 | // Dispose of any resources that can be recreated. 54 | } 55 | 56 | } 57 | 58 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'CLabsImageSlider_Example' do 4 | pod 'CLabsImageSlider', :path => '../' 5 | 6 | target 'CLabsImageSlider_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CLabsImageSlider (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - CLabsImageSlider (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CLabsImageSlider: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | CLabsImageSlider: e2fc7d7b9494910c5786e8c3f369933af0c104ac 13 | 14 | PODFILE CHECKSUM: 8699cf2640d334154cf444f0ec300246c7455132 15 | 16 | COCOAPODS: 1.0.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/CLabsImageSlider.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CLabsImageSlider", 3 | "version": "0.1.0", 4 | "summary": "CLabsImageSlider is a image slider written in swift language.", 5 | "description": "CLabsImageSlider is a image slider written in swift language ,instead of implementing complex logics now you can create image slider with a single line of code. CLabsImageSlider loads local or remote images with multiple options like manual or auto slide etc. So save your time in writing code for page control by using CLabsImageSlider.", 6 | "homepage": "https://github.com/ConfianceLabs/CLabsImageSlider.git", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Dewanshu Sharma": "confiancelabs@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/ConfianceLabs/CLabsImageSlider.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "CLabsImageSlider/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CLabsImageSlider (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - CLabsImageSlider (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CLabsImageSlider: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | CLabsImageSlider: e2fc7d7b9494910c5786e8c3f369933af0c104ac 13 | 14 | PODFILE CHECKSUM: 8699cf2640d334154cf444f0ec300246c7455132 15 | 16 | COCOAPODS: 1.0.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 | 10C343FD2ABF4F1B644B4A8B22FC36ED /* Pods-CLabsImageSlider_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D878C3624F6684C980BB2BD60BA0339 /* Pods-CLabsImageSlider_Example-dummy.m */; }; 11 | 121B7432F1D656B9697F69469783633E /* Pods-CLabsImageSlider_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3C009655D3E666D9834B62DB6ACADC2D /* Pods-CLabsImageSlider_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 4C15EC58E4041D5D55BAFE055E67A105 /* CLabsImageSlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14769B8DAE3629B4D56364FC78260600 /* CLabsImageSlider.swift */; }; 13 | 79EF7AD31BF6C623752F1CD414EA1D8A /* Pods-CLabsImageSlider_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B8CE0AB882928618861E7EC0C7614A10 /* Pods-CLabsImageSlider_Tests-dummy.m */; }; 14 | 7B3D39370823F958928819FA490F5153 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 15 | 81C5F24CCC7282CDA579C6B2A1AAE890 /* CLabsImageSlider-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D4660B342C466BFCEA9380DF6BC11C5 /* CLabsImageSlider-dummy.m */; }; 16 | A2246E428350EEF11B4CC45FDA7116EF /* Pods-CLabsImageSlider_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D361BEFB8C36C9DF646DA089DF1335D /* Pods-CLabsImageSlider_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | AA5DD19E96F9C8ACF4C8CA9317C3DE4F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 18 | B2661CA0DECB7C2EC71894D4C6FDF46D /* CLabsImageSlider-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CF28C80D33F1EDC72A4ECD160855806D /* CLabsImageSlider-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | EDE43D10FE27789AB60A14138F4F74B4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 6AC8F4ED5A29D049E177BBCB75C29A51 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = B7104A965C56DB4DEB87A8B09B9CC96A; 28 | remoteInfo = CLabsImageSlider; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 0F1479A42CB08812E2B66B57AAD46E29 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 14769B8DAE3629B4D56364FC78260600 /* CLabsImageSlider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CLabsImageSlider.swift; sourceTree = ""; }; 35 | 1D4660B342C466BFCEA9380DF6BC11C5 /* CLabsImageSlider-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CLabsImageSlider-dummy.m"; sourceTree = ""; }; 36 | 21C2B6F3546BC421DAB5AF832B971B23 /* Pods_CLabsImageSlider_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CLabsImageSlider_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 24ACE0BE1A862DA6CD573C2E21A70E18 /* Pods-CLabsImageSlider_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CLabsImageSlider_Example.release.xcconfig"; sourceTree = ""; }; 38 | 2D878C3624F6684C980BB2BD60BA0339 /* Pods-CLabsImageSlider_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CLabsImageSlider_Example-dummy.m"; sourceTree = ""; }; 39 | 3C009655D3E666D9834B62DB6ACADC2D /* Pods-CLabsImageSlider_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CLabsImageSlider_Example-umbrella.h"; sourceTree = ""; }; 40 | 46066990F2197B76E55AEB8033896D98 /* CLabsImageSlider-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CLabsImageSlider-prefix.pch"; sourceTree = ""; }; 41 | 4C69D9D53C46075CF5544C7DF68CD0F9 /* CLabsImageSlider.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CLabsImageSlider.xcconfig; sourceTree = ""; }; 42 | 4C89A683A323C4E9628E823D9F482B1C /* Pods-CLabsImageSlider_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CLabsImageSlider_Tests-frameworks.sh"; sourceTree = ""; }; 43 | 4D361BEFB8C36C9DF646DA089DF1335D /* Pods-CLabsImageSlider_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CLabsImageSlider_Tests-umbrella.h"; sourceTree = ""; }; 44 | 550100B3BD093D14A7EE6D3357F554C1 /* Pods-CLabsImageSlider_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CLabsImageSlider_Tests-acknowledgements.markdown"; sourceTree = ""; }; 45 | 57BD7F1DB7B8EB036BC8955177765AFE /* Pods-CLabsImageSlider_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CLabsImageSlider_Tests-acknowledgements.plist"; sourceTree = ""; }; 46 | 5803719CDF096D46365AF597916241FD /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 8651CBBACFB845D6A975CFA4F2322273 /* Pods-CLabsImageSlider_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CLabsImageSlider_Example-frameworks.sh"; sourceTree = ""; }; 48 | 92E747183240A19A591599A463D69321 /* Pods-CLabsImageSlider_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CLabsImageSlider_Tests.release.xcconfig"; sourceTree = ""; }; 49 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 50 | 94E6BF764FF21127CFF4B76ADCAE1E87 /* Pods-CLabsImageSlider_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CLabsImageSlider_Example-resources.sh"; sourceTree = ""; }; 51 | 99BAE7B3BF16F169B82D0583CDAFEB5A /* Pods-CLabsImageSlider_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-CLabsImageSlider_Example.modulemap"; sourceTree = ""; }; 52 | B0898A6AD7E27F131440FE60E537AB46 /* Pods-CLabsImageSlider_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CLabsImageSlider_Example-acknowledgements.markdown"; sourceTree = ""; }; 53 | B0957CE30A751F1E47DD2551191C768D /* Pods-CLabsImageSlider_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CLabsImageSlider_Example-acknowledgements.plist"; sourceTree = ""; }; 54 | B15C0FD65DFD680315EC133268612D88 /* Pods-CLabsImageSlider_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CLabsImageSlider_Example.debug.xcconfig"; sourceTree = ""; }; 55 | B8CE0AB882928618861E7EC0C7614A10 /* Pods-CLabsImageSlider_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CLabsImageSlider_Tests-dummy.m"; sourceTree = ""; }; 56 | BA8D078395720D96A9BE2563D66CFE37 /* Pods-CLabsImageSlider_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CLabsImageSlider_Tests.debug.xcconfig"; sourceTree = ""; }; 57 | C23600CB6EE046892434D96F122184CF /* CLabsImageSlider.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CLabsImageSlider.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | C7923D51FCE14ABFF7E8D3D142E3AF98 /* Pods_CLabsImageSlider_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CLabsImageSlider_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 60 | CF28C80D33F1EDC72A4ECD160855806D /* CLabsImageSlider-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CLabsImageSlider-umbrella.h"; sourceTree = ""; }; 61 | D019EAD9C79EC4D5B12F56D08C00678E /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | D096EB42B0EA1237A7FC253AEC790B85 /* Pods-CLabsImageSlider_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-CLabsImageSlider_Tests.modulemap"; sourceTree = ""; }; 63 | DD016631B91915F80C174B7071565ED3 /* Pods-CLabsImageSlider_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CLabsImageSlider_Tests-resources.sh"; sourceTree = ""; }; 64 | DE20309E1207EABA151F1A0E09A9F69E /* CLabsImageSlider.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = CLabsImageSlider.modulemap; sourceTree = ""; }; 65 | /* End PBXFileReference section */ 66 | 67 | /* Begin PBXFrameworksBuildPhase section */ 68 | 9F3BEB0402A658F412E5BA795D1CABF9 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | EDE43D10FE27789AB60A14138F4F74B4 /* Foundation.framework in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | AB6F26DBA2B17BEA9CC59E920874FDD7 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | AA5DD19E96F9C8ACF4C8CA9317C3DE4F /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | B57043AA46D81BD68D4A004E468E14EB /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | 7B3D39370823F958928819FA490F5153 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 28889330BA36143AEB045C627D329F95 /* CLabsImageSlider */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | CAAE5B71AC09E44EBDA792A90D4B0A5E /* Classes */, 99 | ); 100 | path = CLabsImageSlider; 101 | sourceTree = ""; 102 | }; 103 | 39EAD56555DEA11AE36FC1B6FD938FD4 /* Support Files */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | DE20309E1207EABA151F1A0E09A9F69E /* CLabsImageSlider.modulemap */, 107 | 4C69D9D53C46075CF5544C7DF68CD0F9 /* CLabsImageSlider.xcconfig */, 108 | 1D4660B342C466BFCEA9380DF6BC11C5 /* CLabsImageSlider-dummy.m */, 109 | 46066990F2197B76E55AEB8033896D98 /* CLabsImageSlider-prefix.pch */, 110 | CF28C80D33F1EDC72A4ECD160855806D /* CLabsImageSlider-umbrella.h */, 111 | 0F1479A42CB08812E2B66B57AAD46E29 /* Info.plist */, 112 | ); 113 | name = "Support Files"; 114 | path = "Example/Pods/Target Support Files/CLabsImageSlider"; 115 | sourceTree = ""; 116 | }; 117 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */, 121 | ); 122 | name = iOS; 123 | sourceTree = ""; 124 | }; 125 | 7DB346D0F39D3F0E887471402A8071AB = { 126 | isa = PBXGroup; 127 | children = ( 128 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 129 | F1244809F010418AC6367D0ACAE8DC01 /* Development Pods */, 130 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 131 | C0B4EBDD47110AF7A8C2C829D278AB54 /* Products */, 132 | D8B81BBA34259AB9F5933878EE68EC22 /* Targets Support Files */, 133 | ); 134 | sourceTree = ""; 135 | }; 136 | 835E0AD0606A7794A85ACB4990C6ED5F /* CLabsImageSlider */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 28889330BA36143AEB045C627D329F95 /* CLabsImageSlider */, 140 | 39EAD56555DEA11AE36FC1B6FD938FD4 /* Support Files */, 141 | ); 142 | name = CLabsImageSlider; 143 | path = ../..; 144 | sourceTree = ""; 145 | }; 146 | 89A50999DAAFAFCCB2423296C1E2D93B /* Pods-CLabsImageSlider_Tests */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 5803719CDF096D46365AF597916241FD /* Info.plist */, 150 | D096EB42B0EA1237A7FC253AEC790B85 /* Pods-CLabsImageSlider_Tests.modulemap */, 151 | 550100B3BD093D14A7EE6D3357F554C1 /* Pods-CLabsImageSlider_Tests-acknowledgements.markdown */, 152 | 57BD7F1DB7B8EB036BC8955177765AFE /* Pods-CLabsImageSlider_Tests-acknowledgements.plist */, 153 | B8CE0AB882928618861E7EC0C7614A10 /* Pods-CLabsImageSlider_Tests-dummy.m */, 154 | 4C89A683A323C4E9628E823D9F482B1C /* Pods-CLabsImageSlider_Tests-frameworks.sh */, 155 | DD016631B91915F80C174B7071565ED3 /* Pods-CLabsImageSlider_Tests-resources.sh */, 156 | 4D361BEFB8C36C9DF646DA089DF1335D /* Pods-CLabsImageSlider_Tests-umbrella.h */, 157 | BA8D078395720D96A9BE2563D66CFE37 /* Pods-CLabsImageSlider_Tests.debug.xcconfig */, 158 | 92E747183240A19A591599A463D69321 /* Pods-CLabsImageSlider_Tests.release.xcconfig */, 159 | ); 160 | name = "Pods-CLabsImageSlider_Tests"; 161 | path = "Target Support Files/Pods-CLabsImageSlider_Tests"; 162 | sourceTree = ""; 163 | }; 164 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */, 168 | ); 169 | name = Frameworks; 170 | sourceTree = ""; 171 | }; 172 | C0B4EBDD47110AF7A8C2C829D278AB54 /* Products */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | C23600CB6EE046892434D96F122184CF /* CLabsImageSlider.framework */, 176 | C7923D51FCE14ABFF7E8D3D142E3AF98 /* Pods_CLabsImageSlider_Example.framework */, 177 | 21C2B6F3546BC421DAB5AF832B971B23 /* Pods_CLabsImageSlider_Tests.framework */, 178 | ); 179 | name = Products; 180 | sourceTree = ""; 181 | }; 182 | CAAE5B71AC09E44EBDA792A90D4B0A5E /* Classes */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | 14769B8DAE3629B4D56364FC78260600 /* CLabsImageSlider.swift */, 186 | ); 187 | path = Classes; 188 | sourceTree = ""; 189 | }; 190 | D84F209CF130730DD9E161C528AC2DCE /* Pods-CLabsImageSlider_Example */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | D019EAD9C79EC4D5B12F56D08C00678E /* Info.plist */, 194 | 99BAE7B3BF16F169B82D0583CDAFEB5A /* Pods-CLabsImageSlider_Example.modulemap */, 195 | B0898A6AD7E27F131440FE60E537AB46 /* Pods-CLabsImageSlider_Example-acknowledgements.markdown */, 196 | B0957CE30A751F1E47DD2551191C768D /* Pods-CLabsImageSlider_Example-acknowledgements.plist */, 197 | 2D878C3624F6684C980BB2BD60BA0339 /* Pods-CLabsImageSlider_Example-dummy.m */, 198 | 8651CBBACFB845D6A975CFA4F2322273 /* Pods-CLabsImageSlider_Example-frameworks.sh */, 199 | 94E6BF764FF21127CFF4B76ADCAE1E87 /* Pods-CLabsImageSlider_Example-resources.sh */, 200 | 3C009655D3E666D9834B62DB6ACADC2D /* Pods-CLabsImageSlider_Example-umbrella.h */, 201 | B15C0FD65DFD680315EC133268612D88 /* Pods-CLabsImageSlider_Example.debug.xcconfig */, 202 | 24ACE0BE1A862DA6CD573C2E21A70E18 /* Pods-CLabsImageSlider_Example.release.xcconfig */, 203 | ); 204 | name = "Pods-CLabsImageSlider_Example"; 205 | path = "Target Support Files/Pods-CLabsImageSlider_Example"; 206 | sourceTree = ""; 207 | }; 208 | D8B81BBA34259AB9F5933878EE68EC22 /* Targets Support Files */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | D84F209CF130730DD9E161C528AC2DCE /* Pods-CLabsImageSlider_Example */, 212 | 89A50999DAAFAFCCB2423296C1E2D93B /* Pods-CLabsImageSlider_Tests */, 213 | ); 214 | name = "Targets Support Files"; 215 | sourceTree = ""; 216 | }; 217 | F1244809F010418AC6367D0ACAE8DC01 /* Development Pods */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 835E0AD0606A7794A85ACB4990C6ED5F /* CLabsImageSlider */, 221 | ); 222 | name = "Development Pods"; 223 | sourceTree = ""; 224 | }; 225 | /* End PBXGroup section */ 226 | 227 | /* Begin PBXHeadersBuildPhase section */ 228 | 25DD15153376D682D2BC6BA5CC2C9EC7 /* Headers */ = { 229 | isa = PBXHeadersBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 121B7432F1D656B9697F69469783633E /* Pods-CLabsImageSlider_Example-umbrella.h in Headers */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | 269CE11827ED5F245E4630990ADC82C0 /* Headers */ = { 237 | isa = PBXHeadersBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | B2661CA0DECB7C2EC71894D4C6FDF46D /* CLabsImageSlider-umbrella.h in Headers */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | 7E0C2BEC424C7BE8B9569800F9F47C00 /* Headers */ = { 245 | isa = PBXHeadersBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | A2246E428350EEF11B4CC45FDA7116EF /* Pods-CLabsImageSlider_Tests-umbrella.h in Headers */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXHeadersBuildPhase section */ 253 | 254 | /* Begin PBXNativeTarget section */ 255 | 16583FE0BE491C1AB3A783A46FFC1422 /* Pods-CLabsImageSlider_Tests */ = { 256 | isa = PBXNativeTarget; 257 | buildConfigurationList = B63374F9AF4E46F939086048B4EC5DEC /* Build configuration list for PBXNativeTarget "Pods-CLabsImageSlider_Tests" */; 258 | buildPhases = ( 259 | ADE56A9B2DC6BA86575956684C1C82C8 /* Sources */, 260 | AB6F26DBA2B17BEA9CC59E920874FDD7 /* Frameworks */, 261 | 7E0C2BEC424C7BE8B9569800F9F47C00 /* Headers */, 262 | ); 263 | buildRules = ( 264 | ); 265 | dependencies = ( 266 | ); 267 | name = "Pods-CLabsImageSlider_Tests"; 268 | productName = "Pods-CLabsImageSlider_Tests"; 269 | productReference = 21C2B6F3546BC421DAB5AF832B971B23 /* Pods_CLabsImageSlider_Tests.framework */; 270 | productType = "com.apple.product-type.framework"; 271 | }; 272 | B7104A965C56DB4DEB87A8B09B9CC96A /* CLabsImageSlider */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = 17C7D590F308A7E7E05F19E1D97D38EA /* Build configuration list for PBXNativeTarget "CLabsImageSlider" */; 275 | buildPhases = ( 276 | D359DCFB04819D324A62145DD51EE403 /* Sources */, 277 | 9F3BEB0402A658F412E5BA795D1CABF9 /* Frameworks */, 278 | 269CE11827ED5F245E4630990ADC82C0 /* Headers */, 279 | ); 280 | buildRules = ( 281 | ); 282 | dependencies = ( 283 | ); 284 | name = CLabsImageSlider; 285 | productName = CLabsImageSlider; 286 | productReference = C23600CB6EE046892434D96F122184CF /* CLabsImageSlider.framework */; 287 | productType = "com.apple.product-type.framework"; 288 | }; 289 | DA2F79B020A510EE2A2AF493F098DD73 /* Pods-CLabsImageSlider_Example */ = { 290 | isa = PBXNativeTarget; 291 | buildConfigurationList = 58DDF7F59E272EC4B696ACF931A6747E /* Build configuration list for PBXNativeTarget "Pods-CLabsImageSlider_Example" */; 292 | buildPhases = ( 293 | 695C88B0405F7609B0D4B9DAF5CB7780 /* Sources */, 294 | B57043AA46D81BD68D4A004E468E14EB /* Frameworks */, 295 | 25DD15153376D682D2BC6BA5CC2C9EC7 /* Headers */, 296 | ); 297 | buildRules = ( 298 | ); 299 | dependencies = ( 300 | 69BCFA413AE3F375BEBAD74FF3845C1E /* PBXTargetDependency */, 301 | ); 302 | name = "Pods-CLabsImageSlider_Example"; 303 | productName = "Pods-CLabsImageSlider_Example"; 304 | productReference = C7923D51FCE14ABFF7E8D3D142E3AF98 /* Pods_CLabsImageSlider_Example.framework */; 305 | productType = "com.apple.product-type.framework"; 306 | }; 307 | /* End PBXNativeTarget section */ 308 | 309 | /* Begin PBXProject section */ 310 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 311 | isa = PBXProject; 312 | attributes = { 313 | LastSwiftUpdateCheck = 0730; 314 | LastUpgradeCheck = 0700; 315 | TargetAttributes = { 316 | B7104A965C56DB4DEB87A8B09B9CC96A = { 317 | LastSwiftMigration = 0800; 318 | }; 319 | DA2F79B020A510EE2A2AF493F098DD73 = { 320 | LastSwiftMigration = 0800; 321 | }; 322 | }; 323 | }; 324 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 325 | compatibilityVersion = "Xcode 3.2"; 326 | developmentRegion = English; 327 | hasScannedForEncodings = 0; 328 | knownRegions = ( 329 | en, 330 | ); 331 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 332 | productRefGroup = C0B4EBDD47110AF7A8C2C829D278AB54 /* Products */; 333 | projectDirPath = ""; 334 | projectRoot = ""; 335 | targets = ( 336 | B7104A965C56DB4DEB87A8B09B9CC96A /* CLabsImageSlider */, 337 | DA2F79B020A510EE2A2AF493F098DD73 /* Pods-CLabsImageSlider_Example */, 338 | 16583FE0BE491C1AB3A783A46FFC1422 /* Pods-CLabsImageSlider_Tests */, 339 | ); 340 | }; 341 | /* End PBXProject section */ 342 | 343 | /* Begin PBXSourcesBuildPhase section */ 344 | 695C88B0405F7609B0D4B9DAF5CB7780 /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 10C343FD2ABF4F1B644B4A8B22FC36ED /* Pods-CLabsImageSlider_Example-dummy.m in Sources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | ADE56A9B2DC6BA86575956684C1C82C8 /* Sources */ = { 353 | isa = PBXSourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | 79EF7AD31BF6C623752F1CD414EA1D8A /* Pods-CLabsImageSlider_Tests-dummy.m in Sources */, 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | D359DCFB04819D324A62145DD51EE403 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 81C5F24CCC7282CDA579C6B2A1AAE890 /* CLabsImageSlider-dummy.m in Sources */, 365 | 4C15EC58E4041D5D55BAFE055E67A105 /* CLabsImageSlider.swift in Sources */, 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | /* End PBXSourcesBuildPhase section */ 370 | 371 | /* Begin PBXTargetDependency section */ 372 | 69BCFA413AE3F375BEBAD74FF3845C1E /* PBXTargetDependency */ = { 373 | isa = PBXTargetDependency; 374 | name = CLabsImageSlider; 375 | target = B7104A965C56DB4DEB87A8B09B9CC96A /* CLabsImageSlider */; 376 | targetProxy = 6AC8F4ED5A29D049E177BBCB75C29A51 /* PBXContainerItemProxy */; 377 | }; 378 | /* End PBXTargetDependency section */ 379 | 380 | /* Begin XCBuildConfiguration section */ 381 | 0ACDCBCB0B6796575F46FFA2F5410C6B /* Release */ = { 382 | isa = XCBuildConfiguration; 383 | buildSettings = { 384 | ALWAYS_SEARCH_USER_PATHS = NO; 385 | CLANG_ANALYZER_NONNULL = YES; 386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 387 | CLANG_CXX_LIBRARY = "libc++"; 388 | CLANG_ENABLE_MODULES = YES; 389 | CLANG_ENABLE_OBJC_ARC = YES; 390 | CLANG_WARN_BOOL_CONVERSION = YES; 391 | CLANG_WARN_CONSTANT_CONVERSION = YES; 392 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 393 | CLANG_WARN_EMPTY_BODY = YES; 394 | CLANG_WARN_ENUM_CONVERSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 397 | CLANG_WARN_UNREACHABLE_CODE = YES; 398 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 399 | COPY_PHASE_STRIP = YES; 400 | ENABLE_NS_ASSERTIONS = NO; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_PREPROCESSOR_DEFINITIONS = ( 403 | "POD_CONFIGURATION_RELEASE=1", 404 | "$(inherited)", 405 | ); 406 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 407 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 408 | GCC_WARN_UNDECLARED_SELECTOR = YES; 409 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 410 | GCC_WARN_UNUSED_FUNCTION = YES; 411 | GCC_WARN_UNUSED_VARIABLE = YES; 412 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 413 | STRIP_INSTALLED_PRODUCT = NO; 414 | SYMROOT = "${SRCROOT}/../build"; 415 | VALIDATE_PRODUCT = YES; 416 | }; 417 | name = Release; 418 | }; 419 | 4D26782BE27552036612440396C1334A /* Debug */ = { 420 | isa = XCBuildConfiguration; 421 | baseConfigurationReference = BA8D078395720D96A9BE2563D66CFE37 /* Pods-CLabsImageSlider_Tests.debug.xcconfig */; 422 | buildSettings = { 423 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 424 | CURRENT_PROJECT_VERSION = 1; 425 | DEBUG_INFORMATION_FORMAT = dwarf; 426 | DEFINES_MODULE = YES; 427 | DYLIB_COMPATIBILITY_VERSION = 1; 428 | DYLIB_CURRENT_VERSION = 1; 429 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 430 | ENABLE_STRICT_OBJC_MSGSEND = YES; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | INFOPLIST_FILE = "Target Support Files/Pods-CLabsImageSlider_Tests/Info.plist"; 433 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 434 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 435 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 436 | MACH_O_TYPE = staticlib; 437 | MODULEMAP_FILE = "Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests.modulemap"; 438 | MTL_ENABLE_DEBUG_INFO = YES; 439 | OTHER_LDFLAGS = ""; 440 | OTHER_LIBTOOLFLAGS = ""; 441 | PODS_ROOT = "$(SRCROOT)"; 442 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 443 | PRODUCT_NAME = Pods_CLabsImageSlider_Tests; 444 | SDKROOT = iphoneos; 445 | SKIP_INSTALL = YES; 446 | TARGETED_DEVICE_FAMILY = "1,2"; 447 | VERSIONING_SYSTEM = "apple-generic"; 448 | VERSION_INFO_PREFIX = ""; 449 | }; 450 | name = Debug; 451 | }; 452 | 8D37AC7D089B36B67A78FEEBF094CABD /* Debug */ = { 453 | isa = XCBuildConfiguration; 454 | baseConfigurationReference = 4C69D9D53C46075CF5544C7DF68CD0F9 /* CLabsImageSlider.xcconfig */; 455 | buildSettings = { 456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 457 | CURRENT_PROJECT_VERSION = 1; 458 | DEBUG_INFORMATION_FORMAT = dwarf; 459 | DEFINES_MODULE = YES; 460 | DYLIB_COMPATIBILITY_VERSION = 1; 461 | DYLIB_CURRENT_VERSION = 1; 462 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 463 | ENABLE_STRICT_OBJC_MSGSEND = YES; 464 | GCC_NO_COMMON_BLOCKS = YES; 465 | GCC_PREFIX_HEADER = "Target Support Files/CLabsImageSlider/CLabsImageSlider-prefix.pch"; 466 | INFOPLIST_FILE = "Target Support Files/CLabsImageSlider/Info.plist"; 467 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 468 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 470 | MODULEMAP_FILE = "Target Support Files/CLabsImageSlider/CLabsImageSlider.modulemap"; 471 | MTL_ENABLE_DEBUG_INFO = YES; 472 | PRODUCT_NAME = CLabsImageSlider; 473 | SDKROOT = iphoneos; 474 | SKIP_INSTALL = YES; 475 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 476 | SWIFT_VERSION = 3.0; 477 | TARGETED_DEVICE_FAMILY = "1,2"; 478 | VERSIONING_SYSTEM = "apple-generic"; 479 | VERSION_INFO_PREFIX = ""; 480 | }; 481 | name = Debug; 482 | }; 483 | 95B85872662E9B2BCBF304DD142EA98B /* Release */ = { 484 | isa = XCBuildConfiguration; 485 | baseConfigurationReference = 24ACE0BE1A862DA6CD573C2E21A70E18 /* Pods-CLabsImageSlider_Example.release.xcconfig */; 486 | buildSettings = { 487 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 488 | CURRENT_PROJECT_VERSION = 1; 489 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 490 | DEFINES_MODULE = YES; 491 | DYLIB_COMPATIBILITY_VERSION = 1; 492 | DYLIB_CURRENT_VERSION = 1; 493 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 494 | ENABLE_STRICT_OBJC_MSGSEND = YES; 495 | GCC_NO_COMMON_BLOCKS = YES; 496 | INFOPLIST_FILE = "Target Support Files/Pods-CLabsImageSlider_Example/Info.plist"; 497 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 498 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 500 | MACH_O_TYPE = staticlib; 501 | MODULEMAP_FILE = "Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example.modulemap"; 502 | MTL_ENABLE_DEBUG_INFO = NO; 503 | OTHER_LDFLAGS = ""; 504 | OTHER_LIBTOOLFLAGS = ""; 505 | PODS_ROOT = "$(SRCROOT)"; 506 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 507 | PRODUCT_NAME = Pods_CLabsImageSlider_Example; 508 | SDKROOT = iphoneos; 509 | SKIP_INSTALL = YES; 510 | SWIFT_VERSION = 3.0; 511 | TARGETED_DEVICE_FAMILY = "1,2"; 512 | VERSIONING_SYSTEM = "apple-generic"; 513 | VERSION_INFO_PREFIX = ""; 514 | }; 515 | name = Release; 516 | }; 517 | A8DBB9E991F9783A0E57B2544965866B /* Release */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = 4C69D9D53C46075CF5544C7DF68CD0F9 /* CLabsImageSlider.xcconfig */; 520 | buildSettings = { 521 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 522 | CURRENT_PROJECT_VERSION = 1; 523 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 524 | DEFINES_MODULE = YES; 525 | DYLIB_COMPATIBILITY_VERSION = 1; 526 | DYLIB_CURRENT_VERSION = 1; 527 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 528 | ENABLE_STRICT_OBJC_MSGSEND = YES; 529 | GCC_NO_COMMON_BLOCKS = YES; 530 | GCC_PREFIX_HEADER = "Target Support Files/CLabsImageSlider/CLabsImageSlider-prefix.pch"; 531 | INFOPLIST_FILE = "Target Support Files/CLabsImageSlider/Info.plist"; 532 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 533 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 534 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 535 | MODULEMAP_FILE = "Target Support Files/CLabsImageSlider/CLabsImageSlider.modulemap"; 536 | MTL_ENABLE_DEBUG_INFO = NO; 537 | PRODUCT_NAME = CLabsImageSlider; 538 | SDKROOT = iphoneos; 539 | SKIP_INSTALL = YES; 540 | SWIFT_VERSION = 3.0; 541 | TARGETED_DEVICE_FAMILY = "1,2"; 542 | VERSIONING_SYSTEM = "apple-generic"; 543 | VERSION_INFO_PREFIX = ""; 544 | }; 545 | name = Release; 546 | }; 547 | CD72E5253E14E8FA0AF6F3445912E33D /* Release */ = { 548 | isa = XCBuildConfiguration; 549 | baseConfigurationReference = 92E747183240A19A591599A463D69321 /* Pods-CLabsImageSlider_Tests.release.xcconfig */; 550 | buildSettings = { 551 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 552 | CURRENT_PROJECT_VERSION = 1; 553 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 554 | DEFINES_MODULE = YES; 555 | DYLIB_COMPATIBILITY_VERSION = 1; 556 | DYLIB_CURRENT_VERSION = 1; 557 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 558 | ENABLE_STRICT_OBJC_MSGSEND = YES; 559 | GCC_NO_COMMON_BLOCKS = YES; 560 | INFOPLIST_FILE = "Target Support Files/Pods-CLabsImageSlider_Tests/Info.plist"; 561 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 562 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 563 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 564 | MACH_O_TYPE = staticlib; 565 | MODULEMAP_FILE = "Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests.modulemap"; 566 | MTL_ENABLE_DEBUG_INFO = NO; 567 | OTHER_LDFLAGS = ""; 568 | OTHER_LIBTOOLFLAGS = ""; 569 | PODS_ROOT = "$(SRCROOT)"; 570 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 571 | PRODUCT_NAME = Pods_CLabsImageSlider_Tests; 572 | SDKROOT = iphoneos; 573 | SKIP_INSTALL = YES; 574 | TARGETED_DEVICE_FAMILY = "1,2"; 575 | VERSIONING_SYSTEM = "apple-generic"; 576 | VERSION_INFO_PREFIX = ""; 577 | }; 578 | name = Release; 579 | }; 580 | D3E3D092A3FF7311A98E44BBA36FFD12 /* Debug */ = { 581 | isa = XCBuildConfiguration; 582 | buildSettings = { 583 | ALWAYS_SEARCH_USER_PATHS = NO; 584 | CLANG_ANALYZER_NONNULL = YES; 585 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 586 | CLANG_CXX_LIBRARY = "libc++"; 587 | CLANG_ENABLE_MODULES = YES; 588 | CLANG_ENABLE_OBJC_ARC = YES; 589 | CLANG_WARN_BOOL_CONVERSION = YES; 590 | CLANG_WARN_CONSTANT_CONVERSION = YES; 591 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 592 | CLANG_WARN_EMPTY_BODY = YES; 593 | CLANG_WARN_ENUM_CONVERSION = YES; 594 | CLANG_WARN_INT_CONVERSION = YES; 595 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 596 | CLANG_WARN_UNREACHABLE_CODE = YES; 597 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 598 | COPY_PHASE_STRIP = NO; 599 | ENABLE_TESTABILITY = YES; 600 | GCC_C_LANGUAGE_STANDARD = gnu99; 601 | GCC_DYNAMIC_NO_PIC = NO; 602 | GCC_OPTIMIZATION_LEVEL = 0; 603 | GCC_PREPROCESSOR_DEFINITIONS = ( 604 | "POD_CONFIGURATION_DEBUG=1", 605 | "DEBUG=1", 606 | "$(inherited)", 607 | ); 608 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 609 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 610 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 611 | GCC_WARN_UNDECLARED_SELECTOR = YES; 612 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 613 | GCC_WARN_UNUSED_FUNCTION = YES; 614 | GCC_WARN_UNUSED_VARIABLE = YES; 615 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 616 | ONLY_ACTIVE_ARCH = YES; 617 | STRIP_INSTALLED_PRODUCT = NO; 618 | SYMROOT = "${SRCROOT}/../build"; 619 | }; 620 | name = Debug; 621 | }; 622 | EE45549EAA3719FF056958233B5D680C /* Debug */ = { 623 | isa = XCBuildConfiguration; 624 | baseConfigurationReference = B15C0FD65DFD680315EC133268612D88 /* Pods-CLabsImageSlider_Example.debug.xcconfig */; 625 | buildSettings = { 626 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 627 | CURRENT_PROJECT_VERSION = 1; 628 | DEBUG_INFORMATION_FORMAT = dwarf; 629 | DEFINES_MODULE = YES; 630 | DYLIB_COMPATIBILITY_VERSION = 1; 631 | DYLIB_CURRENT_VERSION = 1; 632 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 633 | ENABLE_STRICT_OBJC_MSGSEND = YES; 634 | GCC_NO_COMMON_BLOCKS = YES; 635 | INFOPLIST_FILE = "Target Support Files/Pods-CLabsImageSlider_Example/Info.plist"; 636 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 637 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 638 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 639 | MACH_O_TYPE = staticlib; 640 | MODULEMAP_FILE = "Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example.modulemap"; 641 | MTL_ENABLE_DEBUG_INFO = YES; 642 | OTHER_LDFLAGS = ""; 643 | OTHER_LIBTOOLFLAGS = ""; 644 | PODS_ROOT = "$(SRCROOT)"; 645 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 646 | PRODUCT_NAME = Pods_CLabsImageSlider_Example; 647 | SDKROOT = iphoneos; 648 | SKIP_INSTALL = YES; 649 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 650 | SWIFT_VERSION = 3.0; 651 | TARGETED_DEVICE_FAMILY = "1,2"; 652 | VERSIONING_SYSTEM = "apple-generic"; 653 | VERSION_INFO_PREFIX = ""; 654 | }; 655 | name = Debug; 656 | }; 657 | /* End XCBuildConfiguration section */ 658 | 659 | /* Begin XCConfigurationList section */ 660 | 17C7D590F308A7E7E05F19E1D97D38EA /* Build configuration list for PBXNativeTarget "CLabsImageSlider" */ = { 661 | isa = XCConfigurationList; 662 | buildConfigurations = ( 663 | 8D37AC7D089B36B67A78FEEBF094CABD /* Debug */, 664 | A8DBB9E991F9783A0E57B2544965866B /* Release */, 665 | ); 666 | defaultConfigurationIsVisible = 0; 667 | defaultConfigurationName = Release; 668 | }; 669 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 670 | isa = XCConfigurationList; 671 | buildConfigurations = ( 672 | D3E3D092A3FF7311A98E44BBA36FFD12 /* Debug */, 673 | 0ACDCBCB0B6796575F46FFA2F5410C6B /* Release */, 674 | ); 675 | defaultConfigurationIsVisible = 0; 676 | defaultConfigurationName = Release; 677 | }; 678 | 58DDF7F59E272EC4B696ACF931A6747E /* Build configuration list for PBXNativeTarget "Pods-CLabsImageSlider_Example" */ = { 679 | isa = XCConfigurationList; 680 | buildConfigurations = ( 681 | EE45549EAA3719FF056958233B5D680C /* Debug */, 682 | 95B85872662E9B2BCBF304DD142EA98B /* Release */, 683 | ); 684 | defaultConfigurationIsVisible = 0; 685 | defaultConfigurationName = Release; 686 | }; 687 | B63374F9AF4E46F939086048B4EC5DEC /* Build configuration list for PBXNativeTarget "Pods-CLabsImageSlider_Tests" */ = { 688 | isa = XCConfigurationList; 689 | buildConfigurations = ( 690 | 4D26782BE27552036612440396C1334A /* Debug */, 691 | CD72E5253E14E8FA0AF6F3445912E33D /* Release */, 692 | ); 693 | defaultConfigurationIsVisible = 0; 694 | defaultConfigurationName = Release; 695 | }; 696 | /* End XCConfigurationList section */ 697 | }; 698 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 699 | } 700 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CLabsImageSlider/CLabsImageSlider-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_CLabsImageSlider : NSObject 3 | @end 4 | @implementation PodsDummy_CLabsImageSlider 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CLabsImageSlider/CLabsImageSlider-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CLabsImageSlider/CLabsImageSlider-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double CLabsImageSliderVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char CLabsImageSliderVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CLabsImageSlider/CLabsImageSlider.modulemap: -------------------------------------------------------------------------------- 1 | framework module CLabsImageSlider { 2 | umbrella header "CLabsImageSlider-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CLabsImageSlider/CLabsImageSlider.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/CLabsImageSlider 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 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CLabsImageSlider/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-CLabsImageSlider_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-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## CLabsImageSlider 5 | 6 | Copyright (c) 2016 ConfianceLabs 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-CLabsImageSlider_Example/Pods-CLabsImageSlider_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) 2016 ConfianceLabs <confiancelabs@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | CLabsImageSlider 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - https://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CLabsImageSlider_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CLabsImageSlider_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_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 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/CLabsImageSlider/CLabsImageSlider.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/CLabsImageSlider/CLabsImageSlider.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_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 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | 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}" 48 | 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} 49 | ;; 50 | *.xib) 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\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}" 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\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | 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}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_CLabsImageSlider_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_CLabsImageSlider_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/CLabsImageSlider" 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/CLabsImageSlider/CLabsImageSlider.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "CLabsImageSlider" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CLabsImageSlider_Example { 2 | umbrella header "Pods-CLabsImageSlider_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Example/Pods-CLabsImageSlider_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/CLabsImageSlider" 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/CLabsImageSlider/CLabsImageSlider.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "CLabsImageSlider" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_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-CLabsImageSlider_Tests/Pods-CLabsImageSlider_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-CLabsImageSlider_Tests/Pods-CLabsImageSlider_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-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CLabsImageSlider_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CLabsImageSlider_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_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 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_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 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | 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}" 48 | 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} 49 | ;; 50 | *.xib) 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\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}" 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\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | 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}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_CLabsImageSlider_TestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_CLabsImageSlider_TestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/CLabsImageSlider" 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/CLabsImageSlider/CLabsImageSlider.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CLabsImageSlider_Tests { 2 | umbrella header "Pods-CLabsImageSlider_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CLabsImageSlider_Tests/Pods-CLabsImageSlider_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/CLabsImageSlider" 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/CLabsImageSlider/CLabsImageSlider.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /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 UIKit 2 | import XCTest 3 | import CLabsImageSlider 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 ConfianceLabs 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CLabsImageSlider 2 | 3 | [![CI Status](http://img.shields.io/travis/ConfianceLabs/CLabsImageSlider.svg?style=flat)](https://travis-ci.org/ConfianceLabs/CLabsImageSlider) 4 | [![Version](https://img.shields.io/cocoapods/v/CLabsImageSlider.svg?style=flat)](http://cocoapods.org/pods/CLabsImageSlider) 5 | [![License](https://img.shields.io/cocoapods/l/CLabsImageSlider.svg?style=flat)](http://cocoapods.org/pods/CLabsImageSlider) 6 | [![Platform](https://img.shields.io/cocoapods/p/CLabsImageSlider.svg?style=flat)](http://cocoapods.org/pods/CLabsImageSlider) 7 | 8 | 9 | ![Alt text](https://s26.postimg.org/igwgu4wah/giphy.gif) 10 | 11 | ## Example 12 | 13 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 14 | 15 | ## Requirements 16 | 17 | Swift 3.0 18 | 19 | ## Summary 20 | 21 | CLabsImageSlider is a image slider written in swift language ,instead of implementing complex logics now you can create image slider with a single line of code. CLabsImageSlider loads local or remote images with multiple options like manual or auto slide etc. So save your time in writing code for page control by using CLabsImageSlider. 22 | 23 | ## Installation 24 | 25 | CLabsImageSlider is available through [CocoaPods](http://cocoapods.org). To install 26 | it, simply add the following line to your Podfile: 27 | 28 | ```ruby 29 | pod "CLabsImageSlider", '~> 0.1.2' 30 | ``` 31 | 32 | ## Note :- 33 | pod "CLabsImageSlider", '~> 0.1.2' supports Swift 3.0 34 | 35 | pod "CLabsImageSlider", '~> 0.1.1' supports Swift 2.2 36 | 37 | before executing pod install please verify your pods are updated or execute 38 | pod repo update command. 39 | 40 | ## Step 1 41 | 42 | From identity inspector replace UIView class of your UIView with CLabsImageSlider class in your xib or StoryBoard. 43 | 44 | ![Alt text](https://s26.postimg.org/519g4onsp/giphy_W.gif) 45 | 46 | 47 | ## Step 2 48 | 49 | Create its Outlet. 50 | 51 | ```swift 52 | @IBOutlet weak var imgSlider: CLabsImageSlider! 53 | ``` 54 | 55 | ## Step 3 To show slider Images from Url 56 | 57 | From viewDidLayoutSubviews function call "SetUpView" function of CLabsImageSlider 58 | 59 | ```swift 60 | 61 | let urlImages = ["https://s26.postimg.org/3n85yisu1/one_5_51_58_PM.png","https://s26.postimg.org/65tuz7ek9/two_5_41_53_PM.png","https://s26.postimg.org/7ywrnizqx/three_5_41_53_PM.png","https://s26.postimg.org/6l54s80hl/four.png","https://s26.postimg.org/ioagfsbjt/five.png"] 62 | 63 | override func viewDidLayoutSubviews() { 64 | 65 | imgSlider.setUpView(imageSource: .Url(imageArray:urlImages,placeHolderImage:UIImage(named:"placeHolder")),slideType:.ManualSwipe,isArrowBtnEnabled: true) 66 | 67 | } 68 | ``` 69 | 70 | 71 | ## To Show Local Images 72 | 73 | ```swift 74 | let localImages = ["one.jpg","two.jpg","three.jpg","four.jpg","five.jpg","six.jpg"] 75 | 76 | override func viewDidLayoutSubviews() { 77 | 78 | imgSlider.setUpView(imageSource: .Local(imageArray: localImages),slideType: .ManualSwipe,isArrowBtnEnabled: true) 79 | 80 | } 81 | 82 | ``` 83 | ## Optional Step 84 | 85 | - Apply imageSliderDelegate 86 | 87 | ```swift 88 | class ViewController: UIViewController,imageSliderDelegate 89 | 90 | override func viewDidLoad() { 91 | super.viewDidLoad() 92 | 93 | imgSlider.sliderDelegate = self 94 | 95 | 96 | } 97 | 98 | ``` 99 | 100 | - Use its Delegate function 101 | 102 | ```swift 103 | func didMovedToIndex(index:Int) 104 | { 105 | print("did moved at Index : ",index) 106 | } 107 | ``` 108 | 109 | # YouTube Link 110 | 111 | https://www.youtube.com/channel/UCwYjZ3vXQYhJaRwUm6u9-bA 112 | 113 | 114 | ## Author 115 | 116 | ConfianceLabs, confiancelabs@gmail.com 117 | 118 | ## License 119 | 120 | CLabsImageSlider is available under the MIT license. See the LICENSE file for more info. 121 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------