Swiftpack.co -  APUtils/BaseClasses as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
APUtils/BaseClasses
Default configuration for some UI classes through inheritance
.package(url: "https://github.com/APUtils/BaseClasses.git", from: "5.0.0")

BaseClasses

Carthage compatible Swift Package Manager compatible Version License Platform CI Status

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

Please check official guide

Cartfile:

github "APUtils/BaseClasses" ~> 5.0

CocoaPods

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

pod 'BaseClasses', '~> 5.0'

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, anton.plebanovich@gmail.com

License

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

GitHub

link
Stars: 3
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.

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