Swiftpack.co - StefaniOSApps/BIASystemKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by StefaniOSApps.
StefaniOSApps/BIASystemKit 2.1
iOS System Services
⭐️ 1
🕓 1 year ago
iOS
.package(url: "https://github.com/StefaniOSApps/BIASystemKit.git", from: "2.1")

Swift Cocoapods Carthage codebeat badge iOS License

BIASystemKit is a Framework for iOS to getting simply the device name!

Installation

Requirements

Language Branch Pod version Xcode version iOS version
Swift 5.3 master >= 2.0.x Xcode 12.0+ iOS 9.0+

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate BIASystemKit into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'BIASystemKit'
end

Then, run the following command:

$ pod install

Example

print(BIAInfo.device(for: .current).modelName)
// String: x86_64

print(BIAInfo.device(for: .current).formattedName)
// String?: iPhone 11 Pro Max

print(BIAInfo.device(for: .current).version)
// String: 13.0.1

print(BIAInfo.system.upTime(unitsStyle: .short))
// String?: 2 days, 18 hr, 14 min, 3 sec

print(BIAInfo.system.upTime)
// TimeInterval: 238443.2

print(BIAInfo.secure.isJailBroken)
// Bool: false

print(BIAInfo.processor.count)
// Int: 6

print(BIAInfo.processor.activeCount)
// Int: 4

GitHub

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

Release Notes

3 years ago

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