38
Make your own OpenSource Transition with CocoaPods

Make your own Open Source transition with CocoaPods

  • Upload
    itnig

  • View
    299

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Make your own Open Source transition with CocoaPods

Make your own OpenSource

Transition with CocoaPods

Page 3: Make your own Open Source transition with CocoaPods
Page 4: Make your own Open Source transition with CocoaPods

MEWANNA

DEVELOPERS

Page 5: Make your own Open Source transition with CocoaPods

Animations

Page 6: Make your own Open Source transition with CocoaPods

Animations

Cool effects

Good sensations for the user

Page 7: Make your own Open Source transition with CocoaPods

TOGUAPO

LOCO

Page 8: Make your own Open Source transition with CocoaPods

Added functionalityGives a context to

the user

Page 9: Make your own Open Source transition with CocoaPods

A matter of time

Page 10: Make your own Open Source transition with CocoaPods

A matter of time

Never do what’s already done, take it & improve it

Page 11: Make your own Open Source transition with CocoaPods

Open Source

A matter of time

Never do what’s already done, take it & improve it

Page 12: Make your own Open Source transition with CocoaPods

AFNetworking

SVProgressHUD

AFIncrementalStoreDRModalView

WTFViewControllerDGWShakeView

DTHarlemShake

SVPullToRefresh

Orbital

Page 13: Make your own Open Source transition with CocoaPods

CocoaPods

Page 14: Make your own Open Source transition with CocoaPods

CocoaPods

Library Manager

Like Rubygems

Page 15: Make your own Open Source transition with CocoaPods

CocoaPods

ARC

Dependencies

Page 16: Make your own Open Source transition with CocoaPods

CocoaPods

./Podfile

platform :ios, ‘6.0’

pod 'AFNetworking', '~> 1.2.1'

Page 17: Make your own Open Source transition with CocoaPods

CocoaPods

./Podfile

$ ~/(project-folder) pod install

Page 18: Make your own Open Source transition with CocoaPods

Custom Transition

ITFScaleModalSegue

A custom segue for modal transitions with a

scale’n’fade effect.

Page 19: Make your own Open Source transition with CocoaPods

ITFScaleModalSegue

A Bmodal

Page 20: Make your own Open Source transition with CocoaPods

ITFScaleModalSegue

A Bmodal host

viewmodal

segue

Page 21: Make your own Open Source transition with CocoaPods

Perform Modal

host view

Page 22: Make your own Open Source transition with CocoaPods

Perform Modal

host view

Add A screenshot

Page 23: Make your own Open Source transition with CocoaPods

Perform Modal

host view

Add A screenshot

Add B screenshot

Page 24: Make your own Open Source transition with CocoaPods

Perform Modal

host view

Add A screenshot

Add B screenshot

Perform animations with this two layers

Page 25: Make your own Open Source transition with CocoaPods

Perform Modal

host view

Add A screenshot

Add B screenshot

Perform animations with this two layers

Present B modal without animation

Page 26: Make your own Open Source transition with CocoaPods

Dismiss modal

host view

Page 27: Make your own Open Source transition with CocoaPods

Dismiss modal

host view

Dismiss B modal without animation

Page 28: Make your own Open Source transition with CocoaPods

Dismiss modal

host view

Dismiss B modal without animation

Animate A and B screenshot layers

Page 29: Make your own Open Source transition with CocoaPods

Dismiss modal

host view

Dismiss B modal without animation

Animate A and B screenshot layers

Dismiss host view modal without animation

Page 30: Make your own Open Source transition with CocoaPods

Get hands dirty

Page 31: Make your own Open Source transition with CocoaPods
Page 32: Make your own Open Source transition with CocoaPods

Creating a podspec

Page 33: Make your own Open Source transition with CocoaPods

Podspec

$ ~/ pod spec create <pod_name>

Page 34: Make your own Open Source transition with CocoaPods

CocoaPodsChange the authors

Point to the component github repository

Tag a commit and reference it

Add a LICENSE

Page 35: Make your own Open Source transition with CocoaPods

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 = 'MIT' s.author = { "Arol" => "[email protected]", "David Cortés" => "[email protected]" } s.source = { :git => "https://github.com/lafosca/ITFScaleModalSegue.git", :tag => "0.0.1" } s.platform = :ios, '6.0' s.source_files = "ITFScaleModalSegue/ITFScaleModalSegue/*.{h,m}" s.exclude_files = 'Classes/Exclude' s.framework = 'QuartzCore' s.requires_arc = trueend

Page 36: Make your own Open Source transition with CocoaPods

Check

$ ~/ pod spec lint <pod_name>.podspec

Page 37: Make your own Open Source transition with CocoaPods

Submit to CocoaPodsFork the specs respository [https://github.com/CocoaPods/Specs]

Add your podspec in /<pod_name>/<tag>/

And then make the pull request!

Page 38: Make your own Open Source transition with CocoaPods

Thank you!