Latest 0.0.1
Homepage https://github.com/xt-input/XTKit
License MIT
Platforms ios 9.0, requires ARC
Authors

README

XTKit是一套swift版的代码集,暂时有:

  • XTLoger

    打印日志工具,在debug模式下会在终端窗口打印,release模式下返回构造的好的日志,可以将其保存在指定的文件上传到自己的服务器做数据分析

    示例:

    • 
      var log = XTLoger.default   //如果需要修改默认的日志等级不要直接使用XTLoger.default
      log.debugLogLevel = .debug  //debug模式的日志等级
      log.releaseLogLevel = .warning  //release模式的日志等级,在release模式下只会构造日志不会打印在控制台,可以自己保存到本地

    log.info(format: "%@%@", args: self, self)
    log.debug(format: "%@%@", args: self, self)
    log.warning(format: "%@%@", args: self, self)
    log.error(format: "%@%@", args: self, self)

    XTLoger.default.info(1231)
    XTLoger.default.debug(1231)
    XTLoger.default.warning(1231)
    XTLoger.default.error(1231)

    
    
    >后续会加入写入本地文件的功能
  • XTMacros

    整合一些常用的值,例如:

    ​ 取屏幕宽度:XTMacros.SCREEN_WIDTH

    ​ 取屏幕高度:XTMacros.SCREEN_HEIGHT

    ​ 判断是否是iPhone x:XTMacros.isIphoneX

    ···等等的

Latest podspec

{
    "name": "XTKit",
    "version": "0.0.1",
    "summary": "u4e00u4e9bu5e38u7528u7684iOSu5f00u53d1u4ee3u7801u96c6u5408",
    "description": "u5e73u65f6u5f00u53d1u79efu7d2fu7684u4ee3u7801u6574u5408u8d77u6765u7684u3002",
    "homepage": "https://github.com/xt-input/XTKit",
    "license": "MIT",
    "authors": {
        "input": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/xt-input/XTKit.git",
        "tag": "0.0.1"
    },
    "source_files": "Source/XTKit-ObjC.h",
    "requires_arc": true,
    "subspecs": [
        {
            "name": "ObjC",
            "source_files": "Source/ObjC/*.{h,m}"
        },
        {
            "name": "XTLoger",
            "source_files": "Source/XTLoger/*.swift",
            "pod_target_xcconfig": {
                "SWIFT_VERSION": "4.0"
            }
        },
        {
            "name": "SWIFT",
            "source_files": "Source/{Class,Extension}/**/*.swift",
            "pod_target_xcconfig": {
                "SWIFT_VERSION": "4.0"
            },
            "dependencies": {
                "XTKit/ObjC": []
            }
        }
    ]
}

Pin It on Pinterest

Share This