GSBasis 1.0.0

GSBasis 1.0.0

Maintained by Gloomy Meng.

GSBasis 1.0.0


CI Status Version License Platform



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.


  • Category, SPM installation
  • Logger store
  • etc..


  • iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+
  • Xcode 10.2+
  • Swift 5+


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


  • '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


  • '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


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



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

pod 'GSBasis'


More detail is here, document created by jazzy:



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