Latest 2.0.0
Homepage https://github.com/MZC0829/SwiftyCommon
License MIT
Platforms ios 8.0, requires ARC
Authors
Swift common function

Cocoapods

1. Add the following line to your Podfile:

platform :ios, '8.0'

target 'YourIosApps' do

  use_frameworks!

  pod 'SwiftyCommon'

end

2. Then, run the following command:

$ pod install

Carthage

1、run the following command:

$ touch Cartfile

2、Add the following line to your Cartfile:

github "MZC0829/SwiftyCommon"

3、run the following command:

$ carthage update

Requirements

  • iOS 8.0+
  • swift 3+ and swift 4

Usage

– 获取当前时间的时间戳

getTimeStamp()

– 把秒数转换成时分秒(00:00:00)格式

transToHourMinSec(second: 3600)

– 把秒数转换成分秒(00:00)格式

transToMinSec(second: 3600)

Latest podspec

{
    "name": "SwiftyCommon",
    "version": "2.0.0",
    "summary": "Swifty Common.",
    "description": "Swift common function.",
    "homepage": "https://github.com/MZC0829/SwiftyCommon",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "maizhichao": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/MZC0829/SwiftyCommon.git",
        "tag": "2.0.0"
    },
    "source_files": "SwiftyCommon/Common.swift",
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This