Giter VIP home page Giter VIP logo

commonunit's Introduction

CommonUnit

该工具封装了一些通用的Swift工具

一、基本扩展

一些常用类型的扩展,通用函数,以及模型转换工具等。

二、一些基础工具

一些基础的工具类,比如:

  1. TKLog:日志打印
  2. WeakArray:弱引用数组封装
  3. OCMacro:一些Objecitve-C语言中的宏定义在Swift中的相似定义
  4. Synchronized:模拟OC中相同关键之的线程锁。

三、网络工具

  1. AFNetworkTool:Alamofire框架的封装
  2. VaporNetworkTool:AsyncHTTPClient框架的封装,如果应用需要再Linux下运行,推荐使用该工具,因为URLSession在Linux下有系统级的bug
  3. URLNetworkTool:对URLSession的简单封装
  4. SwiftCurl:对curl工具调用的Swift封装,⚠️注意:在与Vapor框架混合使用时,会出现无法编译Release版本的二进制文件,并且该

commonunit's People

Contributors

ransaa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.