A repo for small utilities we use in Cocoa Development. Conveniently broken up into small subspecs for à la carte use.
pod 'TWTToast/CoreAnimation'
A subspec for Core Animation-level classes and categories.
pod TWTToast/CoreAnimation/EasingFunctions
CAMediaTimingFunction+TWTEasingFunctionsprovides factory methods for conveniently creating common easing timing functions.
pod TWTToast/Foundation
A subspec for Foundation-level classes and categories.
pod TWTToast/Foundation/AsynchronousOperation
TWTAsynchronousOperationprovides an NSOperation subclass with support for asynchronous execution during an operation's lifespan.
pod TWTToast/Foundation/BlockEnumeration
TWTBlockEnumerationexposes methods on NSArray, NSDictionary, NSEnumerator, NSOrderedSet, and NSSet for block based enumeration. These methods include functionality forCollect,Inject,Detect,Reject,Flatten, andSelect.
pod TWTToast/Foundation/ConcurrentAccessor
TWTConcurrentAccessorprovides a mechanism for efficiently accessing an object across multiple threads. Internally, it uses Dispatch Barriers to allow multiple simultaneous readers and one writer, though this complexity is hidden behind a simple interface.
pod TWTToast/Foundation/DateRange
TWTDateRangemodels closed date ranges to easily determine if a date falls within a certain range.
pod TWTToast/Foundation/ErrorUtilities
TWTErrorUtilitiesdefines utility functions for creating assertions and exception messages.
pod TWTToast/Foundation/KVO
TWTKeyValueObserverexposes a method for encapsulating a KVO-based observation such that it can be more easily released.
pod TWTToast/Foundation/NSArrayIndexPathAdditions
NSArray+TWTIndexPathprovides methods for working with arrays (or hierarchically organized arrays) by index path.
pod TWTToast/Foundation/SubclassResponsibility
NSException+TWTSubclassResponsibilityprovides a convenience factory method for creating exceptions when implementing a given method is a subclass's responsibility.
pod TWTToast/Foundation/TreeNode
TWTTreeNodeis a simple tree implementation with a node object and a flag for whether the node is expanded. Nodes can be looked up by index paths, which they compute themselves. We used this model to build a tree view with expadable groups.
pod 'TWTToast/UIKit'
A subspec containing our humble extensions to UIKit.
pod 'TWTToast/UIKit/AutoLayout'
UIView+TWTConvenientConstraintAdditionprovides methods for adding constraints for several visual format strings with a single message send.
pod 'TWTToast/UIKit/Blocks'
UIActionSheet+TWTBlocksestablishes a block-based means of handling UIActionSheets.UIAlertView+TWTBlocksdoes the same for UIAlertView, enabling easy block-based handling of UIAlertView input.
pod 'TWTToast/UIKit/Color'
UIColor+TWTColorHelpersis a collection of convenience methods for creating UIColors, e.g. from hexadecimal values.
pod 'TWTToast/UIKit/Device'
UIDevice+TWTSystemVersionprovides convenient methods of retrieving and comparing iOS version information in a more performant way, using NSIntegers rather than string comparison.
pod 'TWTToast/UIKit/NibBackedView'
TWTNibBackedViewis an abstract class that makes it easy to create a view that is primarily laid out and configured using a nib. It is built to work correctly whether the view is instantiated in code or in a nib.
pod 'TWTToast/UIKit/PrepareForSegue'
UIViewController+TWTPrepareForSegueadds-twt_prepareFor«Identifier»Segue:sender:to view controllers, where «Identifier» is the capitalized form of the segue’s identifier.
pod 'TWTToast/UIKit/SnapshotImage'
UIView+TWTSnapshotImageprovides a convenient method for getting a snapshot image of a view’s hierarchy.
pod 'TWTToast/UIKit/TextStyle'
TWTTextStyleis a convenient way to package fonts and colors together as a style and apply them to different views. Keep a set of them as singletons or make class factory methods.
pod 'TWTToast/UIKit/ViewControllerCompletion'
UIViewController+TWTCompletionadds a completion block and corresponding finish and cancel methods to view controllers, to provide an easy way for a presented view controller to signal to the presenting view controller when it is done.
pod 'TWTToast/UIKit/ViewControllerTransitions'
TWTNavigationControllerDelegateconforms to theUINavigationControllerDelegateprotocol and adds properties to UIViewController for specifying push and pop animation controllers.TWTSimpleAnimationControllerconforms to theUIViewControllerAnimatedTransitioningprotocol and wraps+[UIView transitionFromView:toView:duration:options:completion:]to facilitate using built-in transitions provided by UIKit.
pod 'TWTToast/Mantle'
A subspec containing various Mantle extensions used by Two Toasters.
pod 'TWTToast/Mantle/MantleModel'
TWTMantleModelcontains basic extensions toMTLModel. For now, it simply adds the ability to exclude property keys from archiving, description, and equality checking.
pod 'TWTToast/Mantle/ModelClassDeserialization'
TWTModelClassDeserializationunifies deserialization of JSON objects into Mantle model objects.
pod 'TWTToast/Mantle/SelectiveJSONAdapter'
TWTSelectiveJSONAdapterextendsMTLJSONAdapterto serialize only a subset of a model object’s property keys.
@jnjosh, @prachigauriar, @macdrevx, and @dfowj currently act as the owners of Toast. Mention us in issues or pull requests for questions about features, project direction, or to request code review.
Typically, a pull request should receive a code review and a 👍 from at least 2 project owners before being merged. In cases where a pull request review needs to be expedited a single 👍 from an owner will suffice, though this should be the exception, not the rule.
TWTToast was created by developers at Two Toasters(@twotoasters) in order to collect our reusable code into one common repository, easily accessible via CocoaPods subspecs.
All code in TWTToast is released under the MIT License. See the LICENSE file for more info.
