Swiftpack.co - mobven/MBVersion as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mobven.
mobven/MBVersion 1.0.4
Swift package for adding version tag on bottom of the screen.
⭐️ 1
🕓 14 weeks ago
iOS
.package(url: "https://github.com/mobven/MBVersion.git", from: "1.0.4")

MBVersion

MBVersion adds customizable tag to your application about the app version.

SwiftPM compatible codebeat badge

MBVersion MBVersion

Requirements

  • iOS 10.0+
  • Xcode 11+
  • Swift 5.3+

Installation

MBVersion is distributed with Swift Package Manager which is the only official distribution tool by Apple. You can add MBVersion to your project from Xcode's File > Swift Packages > Add Package Dependency menu with its github URL:

https://github.com/mobven/MBVersion.git

Usage

MBVersion can be initialized and customized by accessing MBVersion.shared.

import UIKit
import MBVersion

struct VersionConfig {
    
    static func show() {
        // We're using Xcode configuration files to decide to show app label.
        // Implementation is up to app's logic.
        guard Bundle.main.boolForKey("VERSION_LABEL_ENABLED") else { return }
        MBVersion.shared.show()
    }
    
}

What's Next

  • ☐ Add documentation & screenshots for DEBUG screens
  • ☐ Swizzle or use URL protocols to show network logs in DEBUG screens.

Developed with 🖤 at Mobven

GitHub

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

Release Notes

v1.0.4
14 weeks ago
  • Added DEBUG screen for snapshot and network logs.

Contributors: @Pessevmeyen

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