Device.swift alternatives and similar libraries
Based on the "Utility" category.
Alternatively, view Device.swift alternatives based on common mentions on social networks and blogs.
-
SwifterSwift
A handy collection of more than 500 native Swift extensions to boost your productivity. -
SwiftGen-Storyboard
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
SwiftLinkPreview
DISCONTINUED. It makes a preview from an URL, grabbing all the information such as title, relevant texts and images. -
Playbook
📘A library for isolated developing UI components and automatically taking snapshots of them. -
SwiftPlantUML
A command-line tool and Swift Package for generating class diagrams powered by PlantUML -
BetterSafariView
A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI. -
Pythonic.swift
DISCONTINUED. Pythonic tool-belt for Swift – a Swift implementation of selected parts of Python standard library.
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Device.swift or a related project?
README
Device.swift
Super-lightweight library to detect used device
Device.swift extends the UIDevice class by adding a property:
var deviceType: DeviceType
Install
Carthage
Add the following to your Cartfile and follow these instructions
github "schickling/Device.swift"
CocoaPods
To integrate Device into your project add the following to your Podfile:
platform :ios, '8.0'
use_frameworks!
pod 'Device.swift'
Usage
import Device
// Use import Device_swift if you're using Cocoapods
let deviceType = UIDevice.current.deviceType
switch deviceType {
case .iPhone6SPlus: print("Do stuff for iPhone6S Plus")
case .iPadMini: print("Do stuff for iPad mini")
default: print("Check other available cases of DeviceType")
}
How to make release
- Update pod version in podspec
- Add tag
- Add validate pod
pod trunk push Device.swift.podspec --allow-warnings - Push to CocoaPods
- Create release in github for with attached file for carthage
carthage build --no-skip-current
carthage archive Device
Also, check out our Documentation
*Note that all licence references and agreements mentioned in the Device.swift README section above
are relevant to that project's source code only.