POD_SPM_lib
Mini library to test a Lib which install from Cocoapods and SPM.
Installation
Cocoapods
POD_SPM_lib is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'POD_SPM_lib', :git => 'https://github.com/IbrahimHosseini/POD_SPM_lib.git', :branch => 'master'
Swift Package Manager
- File > Swift Packages > Add Package Dependency
- Add
https://github.com/IbrahimHosseini/POD_SPM_lib.git
OR
Update dependencies
in Package.swift
dependencies: [
.package(url: "https://github.com/IbrahimHosseini/POD_SPM_lib.git", .upToNextMajor(from: "1.0.0"))
]
Usage
import UIKit
import POD_SPM_lib
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let unixTime = DateTime(timestamp: 1_342_543_543)
print("Time-> ", unixTime.getTime(), "Date-> ", unixTime.getDate())
}
}
POD_SPM_lib
Mini library to test a Lib which install from Cocoapods and SPM.
Installation
Cocoapods
POD_SPM_lib is available through CocoaPods. To install it, simply add the following line to your Podfile:
Swift Package Manager
https://github.com/IbrahimHosseini/POD_SPM_lib.git
OR
Update
dependencies
inPackage.swift
Usage