Swiftpack.co - Package - Moximillian/ProtoKit

ProtoKit

license MIT Platform

ProtoKit is a collection of protocols and extensions that make prototyping faster and easier with Swift programming language

Package

ProtoKit is structured as a Package (Swift Package Manager), each swift file contains a specific feature / functionality. Because Swift Package Manager currently lacks support for iOS, a build.sh -script is provided to facilitate use of this framework.

Current features are:

  • Extensions
    • Bundle
    • CGRect
    • UIApplication
    • UICollectionView
    • UIColor
    • UIImage
    • UIImageView
    • UILabel
    • UIStoryboard
    • UITableView
  • Closurable (UIControl, UIButton, UIBarButtonItem, UIPageControl, UIGestureRecognizer)
  • SourcedError (Custom ErrorType)
  • Injectable
  • SegueHandlerType
  • Unified Collection (factory and related methods for creating UITableViewDataSources and UICollectionViewDataSources)

Requirements

ProtoKit version 2.0 and later requires:

  • iOS 11+ or tvOS 11+
  • Swift 4.0
  • Xcode 9
  • may work also for MacOS 10.11+, does not have support for Unified Collection
  • watchOS is not supported

Protocol naming conventions

Protocol types and naming conventions used in this framework:

  1. Can do => -able => Hashable, RawRepresentable, Equatable
  2. Is a => -Type => CollectionType, SequenceType, ErrorType
  3. Can be => -Convertible => FloatLiteralConvertible, CustomStringConvertible

Credits

Created and maintained by @moximillian.

Unified Collection inspired by

License

ProtoKit is released under an MIT License. See LICENSE for details.

Copyright © 2017-present Mox Soini.

Please provide attribution, it is greatly appreciated.

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Releases

2.3.0 - Nov 7, 2017

2.3-beta - Oct 16, 2017

Requires pre-9.1 Xcode Swift compiler with conditional conformance support

2.2.3 - Oct 16, 2017

2.2.2 - Oct 15, 2017

2.2.1 - Oct 4, 2017