Swiftpack.co -  Moximillian/ProtoKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Moximillian/ProtoKit
ProtoKit is a collection of protocols and extensions that make prototyping faster and easier with Swift programming language.
.package(url: "https://github.com/Moximillian/ProtoKit.git", from: "v2.0")

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, SPM), each swift file contains a specific feature / functionality.

Current features are:

  • SwiftUI Views
    • Arrow
    • Line
    • CircleShape (can be animated)
    • ProgressText (can be animated)
  • SwiftUI Extensions
    • uiHostingController
    • uiView
    • anyView
  • UIKit Extensions
    • Bundle
    • CGRect
    • UIApplication
    • UICollectionView
    • UIColor
    • UIImage
    • UIImageView
    • UILabel
    • UIStoryboard
    • UITableView
  • Closurable (UIControl, UIButton, UIBarButtonItem, UIPageControl, UIGestureRecognizer)
  • Configurable
  • CoreDataStack
  • SourcedError (Custom ErrorType)
  • KVO
  • NotificationService / TypedNotification (way to pass data via observing/notifying)
  • SegueHandlerType
  • SelfPresentable (casting as Self)
  • Unified Collection (factory and related methods for creating UITableViewDataSources and UICollectionViewDataSources)

Requirements

ProtoKit version 6.0 and later requires:

  • iOS 13+ or tvOS 13+ or MacOS 10.15+
  • Xcode 11.2 (Swift 5.1)
  • 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 © 2019-present Mox Soini.

Please provide attribution, it is greatly appreciated.

GitHub

link
Stars: 2
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Xcode 11.4 updates
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API