Status: Stable
Version: 1.1.2
Build: 11
IBSKit is an Open Source Xcode Fat Framework written in Swift 5.
- About the framework
- How to add a dependency?
- IBSKit Features Set
- Availability
- Other
- License
Name: IBSKit
Environment: Xcode IDE | Xcode CLT
Target Platform: 🍏 Platforms
Binary format: The framework comes as a binary file, which simplifies the assembly of projects in which it is used, as well as provides support for the necessary set of architectures, both for real devices and for simulators for the Apple and Intel platform
What is it created for? The framework is designed to solve everyday tasks that any iOS developer faces when developing a new project. The framework provides a set of features that simplify and accelerate the development of new products based on it
UIKit | CoreGraphics | CoreAnimation | NSLayoutConstaints / Frames
The framework follows Semantic Versioning.
You can install the framework using SPM by simply specifying a stable version of the release at the time of download.
You can also add a framework to the project by uploading the project from the github, transferring IBSKit.xcframework to the sidebar of the Xcode project.
To get information about a device, use the IBSDevice class. For example:
let specification = IBSDevice.current.specification
print(specification)
The framework implements Canvas / Hot Reload support for UIKit. In order to use this functionality, you need to add the following code to the end of the file with the successor to UIViewController or UIView:
// MARK: - Live Preview
#if DEBUG && canImport(SwiftUI)
import SwiftUI
@available(iOS 15.0, *)
struct ClassName_Preview: PreviewProvider {
static var previews: some View {
ClassName()
.livePreview()
}
}
#endif
Where ClassName
is the name of your UIViewController or UIView class successor. Calling the livePreview() method translates the view of your class into the View protocol view.
To get information about the version and build of the application or framework, use:
let appVersion = IBSApp.info.version
print(appVersion)
let appBuild = IBSApp.info.build
print(appBuild)
or
let sdkVersion = IBSSDK.info.version
print(sdkVersion)
let sdkBuild = IBSSDK.info.build
print(sdkBuild)
Allows you to use the Taptic Engine without using wrappers to reconciliate the device type, and also supports multithreading by default. To implement taptic feedback, it is enough to refer to the execute(with: IBSHaptic.FeedbackType)
method. For example:
IBSHaptic.feedback.execute(with: .success)
Where IBSHaptic.FeedbackType
is an enumeration that provides haptic feedback types.
public enum IBSHaptic.FeedbackType: String, CaseIterable {
case error = "Error feedback type"
case warning = "Warning feedback type"
case success = "Success feedback type"
case soft = "Soft feedback type"
case light = "Light feedback type"
case meduim = "Medium feedback type"
case heavy = "Heavy feedback type"
case rigid = "Rigid feedback type"
case selection = "Selection feedback type"
}
iPod touch (7th generation)
﹒or above
iPhone SE (1st generation)
﹒or above
iPad mini (4th generation)
﹒or above
iPad (5th generation)
﹒or above
iPad Air (2nd generation)
﹒or above
iPad Pro 9.7-inch
iPad Pro 10.5-inch
iPad Pro 11-inch (1st generation)
﹒or above
iPad Pro 12.9-inch (1st generation)
﹒or above
iOS 13.0
﹒and higher
iPadOS 13.0
﹒and higher