Swiftpack.co - vincent-k-sm/MKUtils as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vincent-k-sm.
vincent-k-sm/MKUtils 1.3.1
Common Extensions
⭐️ 0
πŸ•“ 39 weeks ago
iOS macOS
.package(url: "https://github.com/vincent-k-sm/MKUtils.git", from: "1.3.1")

MKTUtils

μ†Œκ°œ

  • 곡톡 μœ ν‹Έμ„± ν”„λ ˆμž„μ›Œν¬



Requirements

Platform Minimum Swift Version Installation Status
iOS 13.0+ 5.0 Swift Package Manager, Manual Need Test



Installation

Swift Package Manager

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"))
]

Manually

If you prefer not to use any of the aforementioned dependency managers, you can integrate MKTUtils into your project manually.

Embedded Framework

  • 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!



Features

Debug Print

Configuration

DebugOption

  • For set up appearance Debug.print
    struct DebugOption {
        var prefix: String?
        var ignoreDeinit: Bool = false
        var indent: Int = 2
    }

HOW TO USE

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)

Output

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"
)



Swift Lint

Configuration

Follow guide doc.

README

LocalizeKit

Configuration

Follow guide doc.

README

GitHub

link
Stars: 0
Last commit: 39 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics