Make your own Open Source transition with CocoaPods

594 views

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
594
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Make your own Open Source transition with CocoaPods

  1. 1. Make your ownOpenSourceTransition withCocoaPods
  2. 2. @aroletarol@lafosca.cat
  3. 3. MEWANNADEVELOPERS
  4. 4. Animations
  5. 5. AnimationsCool effectsGood sensationsfor the user
  6. 6. TOGUAPOLOCO
  7. 7. Added functionalityGives a context tothe user
  8. 8. A matter of time
  9. 9. A matter of timeNever do what’s alreadydone, take it & improve it
  10. 10. Open SourceA matter of timeNever do what’s alreadydone, take it & improve it
  11. 11. AFNetworkingSVProgressHUDAFIncrementalStoreDRModalViewWTFViewControllerDGWShakeViewDTHarlemShakeSVPullToRefreshOrbital
  12. 12. CocoaPods
  13. 13. CocoaPodsLibrary ManagerLike Rubygems
  14. 14. CocoaPodsARCDependencies
  15. 15. CocoaPods./Podfileplatform :ios, ‘6.0’pod AFNetworking, ~> 1.2.1
  16. 16. CocoaPods./Podfile$ ~/(project-folder) pod install
  17. 17. Custom TransitionITFScaleModalSegueA custom segue formodal transitions with ascale’n’fade effect.
  18. 18. ITFScaleModalSegueA Bmodal
  19. 19. ITFScaleModalSegueA Bmodal hostviewmodalsegue
  20. 20. Perform Modalhostview
  21. 21. Perform ModalhostviewAdd A screenshot
  22. 22. Perform ModalhostviewAdd A screenshotAdd B screenshot
  23. 23. Perform ModalhostviewAdd A screenshotAdd B screenshotPerform animations with this twolayers
  24. 24. Perform ModalhostviewAdd A screenshotAdd B screenshotPerform animations with this twolayersPresent B modal withoutanimation
  25. 25. Dismiss modalhostview
  26. 26. Dismiss modalhostviewDismiss B modal withoutanimation
  27. 27. Dismiss modalhostviewDismiss B modal withoutanimationAnimate A and B screenshotlayers
  28. 28. Dismiss modalhostviewDismiss B modal withoutanimationAnimate A and B screenshotlayersDismiss host view modal withoutanimation
  29. 29. Get hands dirty
  30. 30. Creating apodspec
  31. 31. Podspec$ ~/ pod spec create <pod_name>
  32. 32. CocoaPodsChange the authorsPoint to the component github repositoryTag a commit and reference itAdd a LICENSE
  33. 33. PodspecPod::Spec.new do |s|s.name = "ITFScaleModalSegue"s.version = "0.0.1"s.summary = "A custom modal segue with a scale n fade effect."s.homepage = "https://github.com/lafosca/ITFScaleModalSegue"s.license = MITs.author = { "Arol" => "arol@lafosca.cat","David Cortés" => "david@lafosca.cat" }s.source = { :git => "https://github.com/lafosca/ITFScaleModalSegue.git",:tag => "0.0.1" }s.platform = :ios, 6.0s.source_files = "ITFScaleModalSegue/ITFScaleModalSegue/*.{h,m}"s.exclude_files = Classes/Excludes.framework = QuartzCores.requires_arc = trueend
  34. 34. Check$ ~/ pod spec lint <pod_name>.podspec
  35. 35. Submit to CocoaPodsFork the specs respository[https://github.com/CocoaPods/Specs]Add your podspec in /<pod_name>/<tag>/And then make the pull request!
  36. 36. Thank you!

×