Seivan Heidari

27pods

SHAccountManager

SHAccountManager is currently unmaintained and abanonded, please use 'pod SHOmniAuthTwitter' instead. More information at https://github.com/SHOmniAuth/SHomniauthtwitter Get in touch if you need some help.

License: MIT

  • Objective C

SHActionSheetBlocks

UIActionSheet buttons with blocks. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone.

  • Swizzle and junk free
  • No need to clean up after - The control blocks are self maintained.
  • UIActionSheet are referenced in a map with weak properties
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHAlert

Allows you to style multiple custom Alerts via Storyboard, and assing them as controls to use through blocks. You can set Pixate style class to customize the look and feel for the buttons, background and the alert window.

License: MIT

  • Objective C

SHAlertViewBlocks

UIAlertView buttons with blocks. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone.

  • Swizzle and junk free
  • No need to clean up after - The control blocks are self maintained.
  • UIAlertView are referenced in a map with weak properties
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHBarButtonItemBlocks

UIBarButtonItem events with blocks. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone.

  • Swizzle and junk free
  • No need to clean up after - The control blocks are self maintained.
  • UIBarButtonItems are referenced in a map with weak properties
  • Auto remove control from outlets and all actions when removing all the blocks
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHControlBlocks

UIControl events with blocks. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone.

  • Swizzle and junk free
  • No need to clean up after - The control blocks are self maintained.
  • Controls are referenced in a map with weak properties
  • Auto remove control from outlets and all actions when removing all the blocks
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHFastEnumerationProtocols

NSFastEnumeration helpers and enumeration blocks through a protocol on foundation collection classes. Helpers for both keyed, index and unordered collection objects. Converting to other collection classes through dot notation. Block based callers for enumeration. Tested and ready.

  • NSArray and NSMutableArray
  • NSOrderedSet and NSMutableOrderedSet
  • NSSet, NSMutableSet and NSCountedset
  • NSHashTable
  • NSDictionary and NSMutableDictionary
  • NSMapTable

TODO: NSIndexSet, NSMutableIndexSet and NSEnumerator.

License: MIT

  • Objective C

SHFoundationAdditions

Additional prefixed categories for Foundation framework without libffi with optional Swizzling (for KVO). Blocks are hold with a weak reference so you don't have to cleanup when your object is gone. Comes with tests.

Contains: * SHKeyValueObserverBlocks * SHFastEnumerationProtocols * SHObjectUserInfo * SHInvocation

Summary: * For Mac OSX >=8 and iOS >= 6. * Swizzle and junk free * No need to clean up after - The blocks are self maintained. * Blocks are referenced in a map with weak properties * Prefixed selectors. * Minimum clutter on top of the public interface. * No external dependencies * Lightweight * NO libffi

License: MIT

  • Objective C

SHGameCenter

Making GKTurnBasedEventHandlerDelegate and authentication block based. New properties (as categories) for:

  • GKPlayer
  • GKLocalPlayer
  • GKTurnBasedMatch
  • GKTurnBasedParticipant

  • Auto loads images in a queue

  • Always fetches names and caches them before callback (can persist the cache)

  • Properties for most common scenarios

Making Game Center easier to work with.

License: MIT

  • Objective C

SHGestureRecognizerBlocks

Gesture Recognizers with blocks. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone.

  • Swizzle and junk free
  • No need to clean up after - Blocks and observers are self maintained.
  • Gestures are referenced in a hash with weak properties
  • Auto remove gestures from view and all actions when removing all the blocks
  • Prefixed selectors.
  • Works with existing codebase that uses old fashioned observing delegate calls.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHInvocation

SHInvocation is a category on top of NSInvocation to allow executing selectors with multiple arguments.

  • No swizzling or hacks.
  • Name-scoped selectors.

License: MIT

  • Objective C

SHKeyValueObserverBlocks

Data-Bindings & Key Value Observing with blocks on top of NSObject. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone. Optional Swizzling for automatic removal of blocks

  • Bi- and uni-directional data-bindings.
  • Blocks and observers are self maintained.
  • Weak referenced blocks.
  • Prefixed selectors.
  • Works with existing codebase that uses old fashioned observing delegate calls.
  • Configurable to remove the swizzled auto cleanup
  • Remove blocks by keypaths or identifiers
  • Remove blocks by keypaths and identifiers
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHMessageUIBlocks

  • Swizzle and junk free
  • No need to clean up after - The control blocks are self maintained.
  • The controllers are referenced in a map with weak properties
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHNavigationControllerBlocks

  • Swizzle and junk free
  • No need to clean up after - The blocks are self maintained.
  • UINavigationController is referenced in a map with weak properties
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHObjectUserInfo

SHObjectUserInfo is a category on top of NSObject to allow userInfo dictionary without the swizzling. It's built on top of NSMapTable that works with weakToWeak references between an object and its userInfo.

  • No need to clean up after - userInfo are self maintained.
  • Weak referenced blocks.
  • No swizzling or hacks.
  • Name-scoped selectors.
  • Works with existing codebase that uses userInfo dictionaries on them.

License: MIT

  • Objective C

SHPopoverControllerBlocks

  • Swizzle and junk free
  • No need to clean up after - The blocks are self maintained.
  • SHPopoverControllerBlocks is referenced in a map with weak properties
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHSegueBlocks

Do segueus with blocks without any swizzling or leaks. Blocks are hold with a weak reference so you don't have to cleanup when your vc is gone. Also implements userInfo mutableDictionary on UIViewController

  • No need to clean up after - Blocks are self maintained.
  • Handles uninemplemented unwind segues
  • Weak referenced blocks.
  • No swizzling or hacks.
  • Name-scoped selectors.
  • Implements userInfo on controllers without a bullshit hack.
  • Works with existing codebase that uses old fashioned segues.

License: MIT

  • Objective C

SHTabBarControllerBlocks

  • Swizzle and junk free
  • No need to clean up after - The blocks are self maintained.
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.
  • Replacing delegate calls with blocks instead.

License: MIT

  • Objective C

SHTestCaseAdditions

SHTestCaseAdditions contains asynchronous helpers (as a prefixed category) to write tests in SentTest and/or XCTest for delayed callbacks, like network calls or alert views, action sheets. Prefixed category on SenTestCase and XCTestCase

              * Swizzle and junk free
              * Prefixed selectors.
              * Works with both SentTest and/or XCTest
              * For iOS and Mac OS
              * Comes with tests and example. 

License: MIT

  • Objective C

SHTextFieldBlocks

Delegate callbacks via blocks. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone.

  • Swizzle and junk free
  • No need to clean up after - The blocks are self maintained.
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHTextViewBlocks

Delegate callbacks via blocks. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone.

  • Swizzle and junk free
  • No need to clean up after - The blocks are self maintained.
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

SHTransitionBlocks

  • Create transition animation via blocks
  • Create transition interaction via blocks
  • Manage gestures for interaction view blocks
  • Easier to prototype and extract/refactor out when the blocks get heavy.
  • Works great with SHUIKitBlocks & SHNavigationControllerBlocks
  • Well-tested and light weight
  • Easy selectors to get started quickly.

License: MIT

  • Objective C

SHUIKitBlocks

Prefixed Blocks for UIKit on categories without libffi and swizzling. Blocks are hold with a weak reference so you don't have to cleanup when your object is gone. Comes with tests.

Contains: * SHAlertViewBlocks => UIAlertView * SHControlBlocks => UIControl * SHSegueBlocks => UIViewController * SHNavigationControllerBlocks => UINavigationController * SHWebViewBlocks => UIWebView * SHPopoverControllerBlocks => UIPopoverController * SHBarButtonItemBlocks => UIBarButtonItem * SHActionSheetBlocks => UIActionSheet * SHGestureRecognizerBlocks => UIGestureRecognizer * SHTextFieldBlocks => UITextField * SHTextViewBlocks => UITextView * SHTabBarControllerBlocks => UITabBarController * SHTransitionBlocks => UIViewController

Summary: * Swizzle and junk free * No need to clean up after - The blocks are self maintained. * Blocks are referenced in a map with weak properties * Prefixed selectors. * Minimum clutter on top of the public interface. * No external dependencies * Lightweight * NO libffi

License: MIT

  • Objective C

SHWebViewBlocks

  • Swizzle and junk free
  • No need to clean up after - The blocks are self maintained.
  • The UIWebView is referenced in a map with weak properties
  • Prefixed selectors.
  • Minimum clutter on top of the public interface.

License: MIT

  • Objective C

TWReverseAuth

I don't recomend using TWReverseAuth, please use 'pod SHOmniAuthTwitter' instead. More information at https://github.com/SHOmniAuth/SHOmniAuthTwitter Get in touch if you need some help.

License: MIT

  • Objective C

VectorArithmetic

  • Using generics to unify the three different structs
  • Add the protocol easily on top of your own similar structs
  • Namespaced generic functions to use with other structs if necessary.
  • Perform operations on two different generic types CGPoint - CGVector -> CGPoint (always returns lhs)
  • Well-tested & documented and lightweight
  • Easy selectors to get started quickly.

License: MIT

  • Swift

Yaml

YamlSwift parses a string of YAML document(s) (or a JSON document) and returns a Yaml enum value representing that string.

License: MIT

  • Swift