Latest 1.2.1
Homepage https://github.com/APUtils/BaseClasses
License MIT
Platforms ios 8.0
Frameworks Foundation, UIKit
Authors

CI Status
Version
License
Platform

Default configuration for some UI classes through inheritance.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

CocoaPods

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

pod 'BaseClasses'

Usage

See example project for more details.

Just set your class in storyboard and you are done.

Alternatively you could inherit your custom class from BaseClasses class:

import UIKit
import BaseClasses

class NavigationController: BaseClasses.NavigationController {}

ScrollView, TableView, CollectionView

Those classes provide decreased button highlight animation

FullSizeCollectionView

Collection view that resizes it’s cells to be the same size as collection view

Example usage together with StretchScrollView:

NavigationBar

Makes touches go through. Useful when it’s transparent so user could interact through it.

NavigationController

Allows child viewControllers specific status bar configuration. UINavigationController doesn’t pay attention to its childs setting.

Just override preferredStatusBarStyle in your custom view controller to configure status bar style for your screen:

override var preferredStatusBarStyle: UIStatusBarStyle {
    return .default
}

TableViewCell

Preventing backgroud color change for views in selected and highlighted state

TextField

TextField with Done default button and close keyboard when tap

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author

Anton Plebanovich, [email protected]

License

BaseClasses is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BaseClasses",
    "version": "1.2.1",
    "summary": "Default configuration for some UI classes through inheritance",
    "description": "Default configuration for some UI classes through inheritance.",
    "homepage": "https://github.com/APUtils/BaseClasses",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anton Plebanovich": "[email protected]"
    },
    "source": {
        "git": "https://github.com/APUtils/BaseClasses.git",
        "tag": "1.2.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BaseClasses/Classes/**/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This