{"id":16426255,"url":"https://github.com/reers/reerkit","last_synced_at":"2026-01-28T08:36:07.393Z","repository":{"id":37213202,"uuid":"502404323","full_name":"reers/ReerKit","owner":"reers","description":"Swift 基础库. A collection of Swift extensions and utilities.","archived":false,"fork":false,"pushed_at":"2025-09-19T16:26:49.000Z","size":2800,"stargazers_count":113,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-19T17:00:23.515Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"https://deepwiki.com/reers/ReerKit","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-11T16:46:29.000Z","updated_at":"2025-09-19T16:25:12.000Z","dependencies_parsed_at":"2023-02-10T10:31:14.461Z","dependency_job_id":"602b72c7-c7a4-44b5-ac91-af435a31fa74","html_url":"https://github.com/reers/ReerKit","commit_stats":null,"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/reers/ReerKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reers%2FReerKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reers%2FReerKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reers%2FReerKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reers%2FReerKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reers","download_url":"https://codeload.github.com/reers/ReerKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reers%2FReerKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014646,"owners_count":26085555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","extensions","foundation","ios","ipados","macos","reer","reerkit","swift","swift-extensions","swift-library","swift-package-manager","swifterswift","swiftui","tvos","uikit","util","utility","watchos","yykit"],"created_at":"2024-10-11T08:07:54.196Z","updated_at":"2026-01-28T08:36:07.380Z","avatar_url":"https://github.com/reers.png","language":"Swift","readme":"[简体中文](README_CN.md)\n\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/reers/ReerKit)\n\n# ReerKit\nReerKit 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.\nAll system type extensions in the framework have the `re` infix added to avoid ambiguity issues when calling the same name extension, such as \n```swift\nSGVsbG\\n8gV29ybGQh\".re.base64Decoded\n\n\"123\".re.md5String\n\nview.re.addSwiftUIView(Color.red)\n```\n\nThere are also a of other convenient features available.\n```swift\n// Access dictionary contents using dot notation implemented by dynamic member lookup\nlet dict: [String: Any] = ...\ndict.dml.user_name.re.string \u003c=\u003e dict[\"user_name\"] as? String\n\n// Weak reference container, automatically removes elements when they are destroyed.\nWeakSet, WeakMap\n\n// Set grayscale mode for UIView\nview.re.isGrayModeEnabled = true\n\n// Data Structure Encapsulation\nBinaryTree, Tree, LinkedList, Queue, BoundedQueue, Stack, OrderedSet, OrderDictionary\n\n// Lock Encapsulation\nMutexLock, ReadWriteLock, Synchronizing, UnfaireLock\n\n// PropertyWrappers\nClamped, Locked, Rounded, RWLocked, Trimmed\n\n// Other Utility\nRSA, AES, CountdownTimer, Debouncer, Throttler, DeinitObserver, KeyboardManager, Keychain, Reachability, NanoID, MulticastDelegate\n\n// Additionally, it provides a large number of extension methods and vars for frameworks such as the standard library, UIKit, and Foundation.\nString+REExtensions\nUIView+REExtensions\nArray+REExtensions\nDate+REExtensions\n...\n```\n\n## Usage\n[Link of Documents build by DocC](https://swiftpackageindex.com/reers/ReerKit/1.2.5/documentation/reerkit)\n\n[Or click here to download the doccarchive file](https://gitee.com/phoenix19/cdn/raw/master/ReerKit.doccarchive.zip)\n\n## Requirements\niOS 12.0+\n\nmacOS 10.13+\n\ntvOS 12.0+\n\nwatchOS 4.0+\n\nvisionOS 1.0+\n\nUbuntu 14.04+\n\nSwift 5.9+\n\nXCode 15.4+\n\n## Installation\n\n\u003cdetails\u003e\n\u003csummary\u003eCocoaPods\u003c/summary\u003e\n\u003c/br\u003e\n\u003cp\u003eTo integrate ReerKit into your Xcode project using \u003ca href=\"http://cocoapods.org\"\u003eCocoaPods\u003c/a\u003e, specify it in your `Podfile`:\u003c/p\u003e\n\u003ch4\u003e- Integrate all extensions (recommended):\u003c/h4\u003e\n\u003cpre\u003e\u003ccode class=\"ruby language-ruby\"\u003epod 'ReerKit'\u003c/code\u003e\u003c/pre\u003e\n\u003c/code\u003e\u003c/pre\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eCarthage\u003c/summary\u003e\n\u003c/br\u003e\n\u003cp\u003eTo integrate ReerKit into your Xcode project using \u003ca href=\"https://github.com/Carthage/Carthage\"\u003eCarthage\u003c/a\u003e, specify it in your `Cartfile`:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"ogdl language-ogdl\"\u003egithub \"ReerKit/ReerKit\" ~\u003e 1.2.5\n\u003c/code\u003e\u003c/pre\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eSwift Package Manager\u003c/summary\u003e\n\u003c/br\u003e\n\u003cp\u003eYou can use \u003ca href=\"https://swift.org/package-manager\"\u003eSwift Package Manager\u003c/a\u003e to install ReerKit by adding the proper description in your `Package.swift` file:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"swift language-swift\"\u003eimport PackageDescription\nlet package = Package(\n    name: \"YOUR_PROJECT_NAME\",\n    targets: [],\n    dependencies: [\n        .package(url: \"https://github.com/reers/ReerKit.git\", from: \"1.2.5\")\n    ]\n)\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eNext, add `ReerKit` to your targets dependencies as shown below:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"swift language-swift\"\u003e.target(\n    name: \"YOUR_TARGET_NAME\",\n    dependencies: [\n        \"ReerKit\",\n    ]\n),\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThen run `swift package update`.\u003c/p\u003e\n\u003cp\u003ePlease note that \u003ca href=\"https://swift.org/package-manager\"\u003eSwift Package Manager\u003c/a\u003e does not support building for iOS/tvOS/macOS/watchOS applications.\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eManual\u003c/summary\u003e\n\u003c/br\u003e\n\u003cp\u003eAdd the \u003ca href=\"https://github.com/reers/ReerKit/tree/main/Sources\"\u003eReerKit\u003c/a\u003e folder to your Xcode project to use all extensions or specific extensions.\u003c/p\u003e\n\u003c/details\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freers%2Freerkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freers%2Freerkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freers%2Freerkit/lists"}