GSBasis
Others
GSNetwork
A simple network components. simple and clear API usage.
Support diverse data structure returns while guaranteeing type checking.
Unified error types and standard error handling.
Features
- Category, SPM installation
- Logger store
- etc..
Requirements
- iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+
- Xcode 10.2+
- Swift 5+
Usage
GSBasis is basic components of the GS series components which can add into a new project or existing project. Provide some methods and logic that I use most.
Hope can help everyone who likes and enjoys swift
GSBasis/Common
- 'Compatible' support a namespace for use
- 'Error' defined suggested error protocol and error cause protocol
- 'Extensions' a few extension for which i think need to placed
- 'GSDefaults' a simple, easy use tool for using UserDefaults
- 'Logger' a canonical log output that supports simple log grading and supports Cocoapod module differentiation
- 'Notifier' use enum for define Notification.Name, and extension methods for monitor notification Simply
- 'Time' a way to streamline time calculations
- 'Async' a simple way to GCD
- 'Typealiases' alias used by multiple platforms
GSBasis/UIKit
- 'Localize' a simple solution for implement multiple languages support
- 'UICompatible' define some methods about UI by Compatible
- 'UITypealiases' alias used by multiple platforms abount UI
- 'UIExtensions' a few extension about UI
GSBasis/FatModel
Reduce the controller's code in this way, and reduce coupling. Specification of where to initialize, where to set data. Support other GS modules for easy expansion and use
- 'Protocols' just protocol define
- 'TemplateClass' just protocol implementation base class
Installation
Cocoapods
GSBasis is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'GSBasis'
Document
More detail is here, document created by jazzy:
License
GSBasis is available under the MIT license. See the LICENSE file for more info.