Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reers/reerkit
Swift 基础库. A collection of Swift extensions and utilities.
https://github.com/reers/reerkit
cocoapods extensions foundation ios ipados macos reer reerkit swift swift-extensions swift-library swift-package-manager swifterswift swiftui tvos uikit util utility watchos yykit
Last synced: about 2 months ago
JSON representation
Swift 基础库. A collection of Swift extensions and utilities.
- Host: GitHub
- URL: https://github.com/reers/reerkit
- Owner: reers
- License: mit
- Created: 2022-06-11T16:46:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T08:32:41.000Z (9 months ago)
- Last Synced: 2024-04-12T15:32:48.946Z (8 months ago)
- Topics: cocoapods, extensions, foundation, ios, ipados, macos, reer, reerkit, swift, swift-extensions, swift-library, swift-package-manager, swifterswift, swiftui, tvos, uikit, util, utility, watchos, yykit
- Language: Swift
- Homepage:
- Size: 2.39 MB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ReerKit
ReerKit is a collection of native Swift extensions that provide convenient methods, syntactic sugar, and performance improvements for various native data types, UIKit, and Cocoa classes for iOS, macOS, tvOS, watchOS, and Linux platforms.
Some of the source code is gathered from various sources on the internet for utility classes or extension methods, with some code optimization and bug fixes. The remaining content is developed by myself. All system type extensions in the framework have the `re` infix added to avoid ambiguity issues when calling the same name extension, such as `"SGVsbG\n8gV29ybGQh".re.base64Decoded`, `"123".re.md5String`.[简体中文](README_CN.md)
## Requirements
iOS 12.0+ / tvOS 12.0+ / watchOS 4.0+ / macOS 10.13+ / visionOS 1.0+ / Ubuntu 14.04+
Swift 5.9+
XCode 15.2+## Installation
CocoaPods
To integrate ReerKit into your Xcode project using CocoaPods, specify it in your `Podfile`:
- Integrate all extensions (recommended):
pod 'ReerKit'
Carthage
To integrate ReerKit into your Xcode project using Carthage, specify it in your `Cartfile`:
github "ReerKit/ReerKit" ~> 1.0.39
Swift Package Manager
You can use Swift Package Manager to install ReerKit by adding the proper description in your `Package.swift` file:
import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.package(url: "https://github.com/reers/ReerKit.git", from: "1.0.39")
]
)Next, add `ReerKit` to your targets dependencies as shown below:
.target(
name: "YOUR_TARGET_NAME",
dependencies: [
"ReerKit",
]
),Then run `swift package update`.
Please note that Swift Package Manager does not support building for iOS/tvOS/macOS/watchOS applications.
Manual
Add the ReerKit folder to your Xcode project to use all extensions or specific extensions.