WWAppInstallSource

Swift-5.6 iOS-14.0 Swift Package Manager-SUCCESS LICENSE

Introduction - 简介

WWAppInstallSource

Installation with Swift Package Manager

dependencies: [
    .package(url: "https://github.com/William-Weng/WWAppInstallSource.git", .upToNextMajor(from: "1.0.4"))
]

Function - 可用函数

函数 功能
detect(bundle:) 检测App是从哪里安装的

Example

import UIKit
import WWPrint
import WWAppInstallSource

final class ViewController: UIViewController {

    @IBOutlet weak var myLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        myLabel.text = WWAppInstallSource.shared.detect()?.rawValue
    }
}