Latest 0.4.0
Homepage https://github.com/inacioferrarini/York
License MIT Copyright (c) 2016 Inácio Ferrarini
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Platforms ios 8.0, requires ARC
Dependencies JLRoutes, VMaskTextField
Frameworks UIKit, CoreData
Authors

Version
Swift 3.0
License
codecov.io

CI Status
Platform

What is it?

York is a set of classes, that can be used together or not.
Every class has one responsibility and one responsibility only, being fully adherent to S.O.L.I.D. principles.

Goals

  • Eliminate Singleton usage (you don’t need it)
  • Dramatically reduce ViewControllers’ size.
  • Provide a block-based approach to common situations.
  • Provide an easy project startup and reduce project startup time.
  • Through the usage of a well designed base classes, provide a standard that will keep the project as standardized as possible.

Structure

In order to make easier to understand every class role, they were grouped together:

  • Context: Essentially, a way I found to avoid Singleton usage by injecting the App’s Context.
  • DataSyncRules: A basic time rule engine used to handle data synchronization gracefully and without hassle.
  • DeepLinkingNavigation: Abstracts JLRoutes’s usage for scheme-based navigation.
  • Extensions: Basic extensions for common usage of UIKit and other classes.
  • Logging: Abstracts CocoaLumberJack’s usage for logging.
  • Persistence: Contains the CoreDataStack, which handles boiler-plate code for CoreData, and a UITableViewDataSource based on CoreData and NSFetchedResultsController, which avoids NSFetchedResultsController boiler-plate code to be placed at the TableViewController.
  • Presenter: Classes used to handle how TableViewCells will be presented.
  • TableViewDelegate: UITableViewDelegate alternative implementations, using blocks to handle used interaction events.
  • ViewController: View Controllers implementations, supporting internationalization out of the box, data synchronization and Table View Implementations.
    • BaseViewController: The simplest UIViewController supporting internationalization out of the box.
    • BaseDataBasedViewController: Adds data synchronization capabilities to BaseViewController.
    • BaseTableViewController: Adds TableViewController capabilities to BaseDataBasedViewController. Allows the ViewController itself to be the Delegate or/and DataSource of the TableView, or, using the proper method, return the Delegate or/and DataSource to be used.
  • ViewController: Basic class for Xib-based view components.

Requirements

  • iOS 8.0+

Backwards Compatibility

  • York version 0.4.0 for Swift 3.0
  • York version 0.3.6 for Swift 2.2

Last Version (0.4.0) Release Notes:

  • Migrated to Swift 3.

All release notes are grouped here: (https://github.com/inacioferrarini/York/blob/master/ReleaseNotes.md)

Installation

York is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "York"

Author

Inácio Ferrarini, [email protected]

License

The MIT License (MIT)

Copyright (c) 2016 Inácio Ferrarini

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Latest podspec

{
    "name": "York",
    "version": "0.4.0",
    "summary": "Foundation classes used to eliminate boiler-plate code and provide an accelerated startup time.",
    "homepage": "https://github.com/inacioferrarini/York",
    "license": {
        "type": "MIT",
        "text": "Copyright (c) 2016 Inu00e1cio FerrarininPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.n"
    },
    "authors": {
        "Inu00e1cio Ferrarini": "[email protected]"
    },
    "source": {
        "git": "https://github.com/inacioferrarini/York.git",
        "tag": "0.4.0"
    },
    "frameworks": [
        "UIKit",
        "CoreData"
    ],
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "dependencies": {
        "JLRoutes": [
            "1.6"
        ],
        "VMaskTextField": [
            "1.0.8"
        ]
    },
    "resources": "Classes/**/*.xcdatamodeld",
    "pushed_with_swift_version": "3.0n",
    "subspecs": [
        {
            "name": "Collections",
            "source_files": "Classes/Collections/**/*.swift"
        },
        {
            "name": "Context",
            "source_files": "Classes/Context/**/*.swift",
            "dependencies": {
                "York/Logging": [],
                "York/Persistence": [],
                "York/DataSyncRules": [],
                "York/DeepLinkingNavigation": []
            }
        },
        {
            "name": "DataSource",
            "source_files": "Classes/DataSource/**/*.swift",
            "dependencies": {
                "York/Extensions": [],
                "York/Presenter": [],
                "York/Logging": []
            }
        },
        {
            "name": "DataSyncRules",
            "source_files": "Classes/DataSyncRules/**/*.swift",
            "dependencies": {
                "York/Extensions": [],
                "York/Persistence": []
            }
        },
        {
            "name": "DeepLinkingNavigation",
            "source_files": "Classes/DeepLinkingNavigation/**/*.swift",
            "dependencies": {
                "York/Logging": [],
                "York/Extensions": []
            }
        },
        {
            "name": "Extensions",
            "source_files": "Classes/Extensions/**/*.swift"
        },
        {
            "name": "FlowCoordinator",
            "source_files": "Classes/FlowCoordinator/**/*.swift"
        },
        {
            "name": "Logging",
            "source_files": "Classes/Logging/**/*.swift"
        },
        {
            "name": "Networking",
            "source_files": "Classes/Networking/**/*.swift"
        },
        {
            "name": "Persistence",
            "source_files": "Classes/Persistence/**/*.swift",
            "dependencies": {
                "York/Logging": []
            }
        },
        {
            "name": "Presenter",
            "source_files": "Classes/Presenter/**/*.swift"
        },
        {
            "name": "StaticContent",
            "source_files": "Classes/StaticContent/**/*.swift"
        },
        {
            "name": "Transformer",
            "source_files": "Classes/Transformer/**/*.swift"
        },
        {
            "name": "ViewDelegates",
            "source_files": "Classes/ViewDelegates/**/*.swift"
        },
        {
            "name": "ViewController",
            "source_files": "Classes/ViewController/**/*.swift",
            "dependencies": {
                "York/Context": []
            }
        },
        {
            "name": "Views",
            "source_files": "Classes/Views/**/*.swift",
            "dependencies": {
                "York/Presenter": [],
                "York/Extensions": []
            }
        },
        {
            "name": "ViewComponents",
            "source_files": "Classes/ViewComponents/**/*.swift",
            "resources": "Classes/ViewComponents/Assets/*.png",
            "dependencies": {
                "York/Extensions": []
            }
        }
    ]
}

Pin It on Pinterest

Share This