Platform | Minimum Swift Version | Installation | Status |
---|---|---|---|
iOS 13.0+ | 5.0 | Swift Package Manager, Manual | Need Test |
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding MKTUtils as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/vincent-k-sm/MKUtils", .upToNextMajor(from: "1.0.0"))
]
If you prefer not to use any of the aforementioned dependency managers, you can integrate MKTUtils into your project manually.
Open up Terminal, cd
into your top-level project directory, and run the following command "if" your project is not initialized as a git repository:
$ git init
Add MKTUtils as a git submodule by running the following command:
$ git submodule add https://github.com/vincent-k-sm/MKUtils
Click on the +
button under th Frameworks, Libraries, and Embedded Content
Click on the Add Other
and Select in MKUtils
Directory
Drag the MKUtils
Directory into the Project Navigator of your application's Xcode project.
It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.
And that's it!
struct DebugOption {
var prefix: String?
var ignoreDeinit: Bool = false
var indent: Int = 2
}
let options: Debug.DebugOption(
prefix: #what/you/wan't/setup/prefix'#,
ignoreDeinit: #ignore/`deinit`print/for/debug#,
indent: #indent/in/console#
)
Debug.configure(options: options)
DebugOption(prefix: "TEST")
> π [TEST] [MKTUtilsTests.swift](https://raw.github.com/vincent-k-sm/MKUtils/main/21)
Debug.configure(options: .init(indent: 2))
π [MKTUtilsTests.swift](https://raw.github.com/vincent-k-sm/MKUtils/main/22) | βοΈ Function: testExample() | β± TimeStamp: 14:57:17.9950
Code(
title: "TEST",
desc: "ddesc"
)
Debug.configure(options: .init(indent: 4))
π [MKTUtilsTests.swift](https://raw.github.com/vincent-k-sm/MKUtils/main/22) | βοΈ Function: testExample() | β± TimeStamp: 14:57:17.9950
Code(
title: "TEST",
desc: "ddesc"
)
Follow guide doc.
Follow guide doc.
link |
Stars: 0 |
Last commit: 1 week ago |
Full Changelog: https://github.com/vincent-k-sm/MKUtils/compare/1.1.1...1.1.2
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics