BIASystemKit 2.1

BIASystemKit 2.1

Maintained by Stefan Nebel.



  • By
  • Stefan Nebel

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