{"id":3002,"url":"https://github.com/FabrizioBrancati/BFKit-Swift","last_synced_at":"2025-08-06T13:32:57.663Z","repository":{"id":29728866,"uuid":"33272115","full_name":"FabrizioBrancati/BFKit-Swift","owner":"FabrizioBrancati","description":"BFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster.","archived":false,"fork":false,"pushed_at":"2020-11-01T16:48:14.000Z","size":25468,"stargazers_count":1003,"open_issues_count":1,"forks_count":106,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-12-01T05:05:17.508Z","etag":null,"topics":["appkit","bfkit","bfkit-swift","carthage","cocoapods","codebeat","codecov","foundation","ios","linux","macos","swift","swift-3","swift-extensions","swift-package-manager","uikit","watchkit","xcode"],"latest_commit_sha":null,"homepage":"https://www.fabriziobrancati.com","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/FabrizioBrancati.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-01T20:46:51.000Z","updated_at":"2024-10-20T13:08:57.000Z","dependencies_parsed_at":"2022-07-24T16:31:56.911Z","dependency_job_id":null,"html_url":"https://github.com/FabrizioBrancati/BFKit-Swift","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioBrancati%2FBFKit-Swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioBrancati%2FBFKit-Swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioBrancati%2FBFKit-Swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioBrancati%2FBFKit-Swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FabrizioBrancati","download_url":"https://codeload.github.com/FabrizioBrancati/BFKit-Swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228694170,"owners_count":17958191,"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","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":["appkit","bfkit","bfkit-swift","carthage","cocoapods","codebeat","codecov","foundation","ios","linux","macos","swift","swift-3","swift-extensions","swift-package-manager","uikit","watchkit","xcode"],"created_at":"2024-01-05T20:16:28.655Z","updated_at":"2024-12-09T14:31:06.836Z","avatar_url":"https://github.com/FabrizioBrancati.png","language":"Swift","funding_links":[],"categories":["Utility","Libs","Swift","Extensions","Kit [🔝](#readme)"],"sub_categories":["Web View","Kit","Other free courses"],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"Resources/Banner.png\" alt=\"BFKit-Swift Banner\"\u003e\n\u003c/p\u003e\n\n[![Build Status](https://travis-ci.com/FabrizioBrancati/BFKit-Swift.svg?branch=master)](https://travis-ci.com/FabrizioBrancati/BFKit-Swift)\n[![Coverage Status](https://coveralls.io/repos/github/FabrizioBrancati/BFKit-Swift/badge.svg?branch=master)](https://coveralls.io/github/FabrizioBrancati/BFKit-Swift?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/60359bcef632cb10685b/maintainability)](https://codeclimate.com/github/FabrizioBrancati/BFKit-Swift/maintainability)\n[![Codebeat Badge](https://codebeat.co/badges/b8c2fc8c-73f4-4faf-b95b-85209eeaecbe)](https://codebeat.co/projects/github-com-fabriziobrancati-bfkit-swift-master)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e414ec81c78244038cd4a26078553a00)](https://www.codacy.com/manual/FabrizioBrancati/BFKit-Swift)\n\u003cbr\u003e\n[![Documentation](https://github.fabriziobrancati.com/documentation/Queuer/badge.svg)](https://github.fabriziobrancati.com/documentation/BFKit-Swift/)\n[![Swift Package Manager Compatible](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\u003cbr\u003e\n[![Version](https://img.shields.io/cocoapods/v/BFKit-Swift.svg?style=flat)][Documentation]\n[![Language](https://img.shields.io/badge/language-Swift%205.1-orange.svg)](https://swift.org/)\n[![Platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20watchOS%20%7C%20Linux-cc9c00.svg)][Documentation]\n[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/FabrizioBrancati/BFKit-Swift/blob/master/LICENSE)\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#classes-and-extensions-compatibility\"\u003eClasses and Extensions Compatibility\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#requirements\"\u003eRequirements\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#communication\"\u003eCommunication\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#installing-and-usage\"\u003eInstalling and Usage\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#documentation\"\u003eDocumentation\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#changelog\"\u003eChangelog\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#example\"\u003eExample\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#todo\"\u003eTodo\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#author\"\u003eAuthor\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nFeatures\n========\n\nBFKit-Swift is a collection of useful classes, structs and extensions to **develop Apps faster**.\u003cbr\u003e\nFor example you can use every **iOS font with just an enum!**\u003cbr\u003e\nIt also adds some useful functions with **Custom** classes and extends **Foundation**, **UIKit**, **AppKit** and **WatchKit** classes.\n\nClasses and Extensions Compatibility\n====================================\n\n### BFKit\n|                 | **iOS** | **macOS** | **watchOS** | **Linux** |\n|-----------------|---------|-----------|-------------|-----------|\n| [BFApp](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/BFApp.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [BFBiometric](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/BFBiometric.html) | ![✓] | | | |\n| [BFButton](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Classes/BFButton.html) | ![✓] | | | |\n| BFDataStructures\u003cbr\u003e([List](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/List.html) - [Queue](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/Queue.html) - [Stack](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/Stack.html)) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [BFLog](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/BFLog.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [BFPassword](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/BFPassword.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [BFSystemSound](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Classes/BFSystemSound.html) | ![✓] | | | |\n| [BFTextField](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Classes/BFTextField.html) | ![✓] | | | |\n| [BFTouchID](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Structs/BFTouchID.html) | ![✓] | | | \u0026nbsp; |\n\n### Foundation\n|                 | **iOS** | **macOS** | **watchOS** | **Linux** |\n|-----------------|---------|-----------|-------------|-----------|\n| [Array](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/Array.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [Collection](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/Collection.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [Data](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/Data.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [Date](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/Date.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [FileManager](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/FileManager.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [Number](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Functions.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [NSObject](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/NSObject.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [NSAttributedString](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/NSAttributedString.html) | ![✓] | ![✓] | ![✓] | |\n| [NSPointerArray](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/NSPointerArray.html) | ![✓] | ![✓] | ![✓] | |\n| [ProcessInfo](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/ProcessInfo.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [Set](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/Set.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [String](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/String.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n| [Thread](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Functions.html) | ![✓] | ![✓] | ![✓] | ![✓] |\n\n### Core Graphics\n|                 | **iOS** | **macOS** | **watchOS** | **Linux** |\n|-----------------|---------|-----------|-------------|-----------|\n| CGPoint         | ![✓]    | ![✓]      | ![✓]        | \u0026nbsp;    |\n\n### UIKit / AppKit\n|                 | **iOS** | **macOS** | **watchOS** | **Linux** |\n|-----------------|---------|-----------|-------------|-----------|\n| [UIBarButtonItem](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIBarButtonItem.html) | ![✓] | | | |\n| [UIButton](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIButton.html) | ![✓] | | | |\n| [UIColor](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIColor.html) | ![✓] | ![✓] | ![✓] | |\n| [UIDevice](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIDevice.html) | ![✓] | | | |\n| [UIFont](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIFont.html) | ![✓] | | ![✓] | |\n| [UIImage](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIImage.html) | ![✓] | | ![✓] | |\n| [UIImageView](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIImageView.html) | ![✓] | | | |\n| [UILabel](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UILabel.html) | ![✓] | | | |\n| [UINavigationBar](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UINavigationBar.html) | ![✓] | | |           |\n| [UIPasteboard](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIPasteboard.html) | ![✓] | | | |\n| [UIScreen](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIScreen.html) | ![✓] | | | |\n| [UIScrollView](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIScrollView.html) | ![✓] | | | |\n| [UITableView](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UITableView.html) | ![✓] | | | |\n| [UITextField](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UITextField.html) | ![✓] | | | |\n| [UITextView](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UITextView.html) | ![✓] | | | |\n| [UIToolbar](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIToolbar.html) | ![✓] | | | |\n| [UIView](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIView.html) | ![✓] | | | |\n| [UIViewController](https://github.com/FabrizioBrancati/BFKit-Swift/blob/master/Sources/BFKit/iOS/UIKit/UIViewControllerExtension.swift) | ![✓] | | | |\n| [UIWindow](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIWindow.html) | ![✓] | | | \u0026nbsp; |\n\n### WebKit\n|                 | **iOS** | **macOS** | **watchOS** | **Linux** |\n|-----------------|---------|-----------|-------------|-----------|\n| [UIWebView](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/UIWebView.html) | ![✓] | ![✓] | | \u0026nbsp; |\n\n### WatchKit\n|                 | **iOS** | **macOS** | **watchOS** | **Linux** |\n|-----------------|---------|-----------|-------------|-----------|\n| [WKInterfaceController](https://github.fabriziobrancati.com/documentation/BFKit-Swift/Extensions/WKInterfaceController.html) | | | ![✓] | \u0026nbsp; |\n\nRequirements\n============\n\n| **Swift** | **Xcode**   | **BFKit-Swift** | **iOS**  | **macOS**  | **watchOS** | **Linux** |\n|-----------|-------------|-----------------|----------|------------|-------------|-----------|\n| 1.2       | 6.3         | 1.0.0...1.4.1   | 7.0+     |            |             |           |\n| 2.0...2.1 | 7.0         | 1.5.0...1.6.2   | 7.0+     |            |             |           |\n| 2.2       | 7.3         | 1.6.3...1.7.0   | 7.0+     |            |             |           |\n| 2.3       | 8.0         | 1.8.0           | 7.0+     |            |             |           |\n| 3.0...3.1 | 8.0...8.3   | 2.0.0...2.3.0   | 8.0+     |            |             | ![✓]      |\n| 3.0...3.1 | 8.0...8.3   | 2.4.0...2.5.0   | 8.0+     |            | 2.0+        | ![✓]      |\n| 3.0...3.2 | 8.0...9.0   | 2.6.0           | 8.0+     | 10.10+     | 2.0+        | ![✓]      |\n| 4.0       | 9.0...9.2   | 3.0.0...3.1.1   | 8.0+ `*` | 10.10+ `*` | 3.0+ `*`    | ![✓]      |\n| 4.1       | 9.3...9.4   | 3.1.2...3.2.1   | 8.0+ `*` | 10.10+ `*` | 3.0+ `*`    | ![✓]      |\n| 4.2       | 10.0        | 4.0.0...4.1.0   | 8.0+ `*` | 10.10+ `*` | 3.0+ `*`    | ![✓]      |\n| 5.0       | 10.2...10.3 | 5.0.0           | 8.0+ `*` | 10.10+ `*` | 3.0+ `*`    | ![✓]      |\n| 5.1       | 11.2        | 6.0.0...6.0.1   | 8.0+ `*` | 10.10+ `*` | 3.0+ `*`    | ![✓]      |\n\n\u003e `*` With App Extension Support\n\nCommunication\n=============\n\n- If you need help, open an issue\n- If you found a bug, open an issue.\n- If you have a feature request, open an issue.\n- If you want to contribute, see [Contributing](https://github.com/FabrizioBrancati/BFKit-Swift#contributing) section.\n\nContributing\n============\n\nSee [CONTRIBUTING.md](https://github.com/FabrizioBrancati/BFKit-Swift/blob/master/.github/CONTRIBUTING.md) file.\n\nInstalling and Usage\n====================\n\nSee [Requirements](https://github.com/FabrizioBrancati/BFKit-Swift#requirements) section to check Swift, Xcode, BFKit-Swift and OS versions.\n\n### Manual\n- Open and build the framework from the project (**BFKit.xcodeproj**)\n- Import BFKit.framework into your project\n- Import the framework with ```import BFKit```\n- Enjoy!\n\n### CocoaPods\n- Create a **Podfile** in your **project directory** and write into:\n\n    ```ruby\n    platform :ios, '8.0'\n    xcodeproj 'Project.xcodeproj'\n    use_frameworks!\n\n    pod 'BFKit-Swift'\n    ```\n- Change **\"Project\"**  with your **real project name**\n- Open **Terminal**, go to your **project directory** and type: ```pod install```\n- Import the framework with ```import BFKit```\n- Enjoy!\n\n### Carthage\n- Create a **Cartfile** in your **project directory** and write into:\n\n    ```ruby\n    github \"FabrizioBrancati/BFKit-Swift\"\n    ```\n- Open **Terminal**, go to **project directory** and type: ```carthage update```\n- **Include the created Framework** in your project\n- **Add Build Phase** with the following contents:\n\n    ```sh\n    /usr/local/bin/carthage copy-frameworks\n    ```\n\n    Add the paths to the BFKit-Swift framework under **Input Files**\n\n    ```sh\n    $(SRCROOT)/Carthage/Build/iOS/BFKit.framework\n    ```\n\n    Add the paths to the copied frameworks to the **Output Files**\n\n    ```sh\n    $(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/BFKit.framework\n    ```\n\n    This script works around an [App Store submission bug](http://www.openradar.me/radar?id=6409498411401216) triggered by universal binaries and ensures that necessary bitcode-related files are copied when archiving\n- **(Optional)** Add Build Phase with the following contents\n\n    ```sh\n    /usr/local/bin/carthage outdated --xcode-warnings\n    ```\n\n    To automatically warn you when one of your dependencies is out of date\n- Import the framework with ```import BFKit```\n- Enjoy!\n\n### Swift Package Manager\n- Create a **Package.swift** file in your **project directory** and write into:\n\n    ```swift\n    // swift-tools-version:5.1\n    import PackageDescription\n\n    let package = Package(\n        name: \"Project\",\n        products: [\n            .executable(name: \"Project\", targets: [\"Project\"])\n        ],\n        dependencies: [\n            .package(url: \"https://github.com/FabrizioBrancati/BFKit-Swift.git\", .upToNextMajor(from: \"4.0.0\"))\n        ],\n        targets: [\n            .target(name: \"Project\", dependencies: [\"BFKit\"])\n        ]\n    )\n    ```\n- Change **\"Project\"**  with your **real project name**\n- Open **Terminal**, go to **project directory** and type: ```swift build```\n- Import the framework with ```import BFKit```\n- Enjoy!\n\nDocumentation\n=============\n\n### [Documentation]\nJazzy generated documentation - 100% Documented\n\nChangelog\n=========\n\nTo see what has changed in recent versions of BFKit-Swift, see the **[CHANGELOG.md](https://github.com/FabrizioBrancati/BFKit-Swift/blob/master/CHANGELOG.md)** file.\n\nExample\n=======\n\nOpen and run the BFKitExample project in Example folder in this repo with Xcode and see BFKit-Swift in action!\n\nTodo\n====\n\n- [ ] Add tvOS support\n- [ ] Create a new Example App that shows all the functionalities of BFKit-Swift\n- [ ] ~100% of code coverage with Unit Tests\n- [ ] Improve code to get an _A_ from codebeat\n- [x] Add macOS support\n- [x] Add watchOS support\n- [x] Create Unit Tests and add Codecov badge\n- [x] Add Linux support (Foundation extensions only)\n- [x] Add Carthage support\n- [x] Add to CocoaPods\n- [x] Create a great documentation\n\nAuthor\n======\n\n**Fabrizio Brancati**\n\n[Website: https://www.fabriziobrancati.com](https://www.fabriziobrancati.com)\n\u003cbr\u003e\n[Email: fabrizio.brancati@gmail.com](mailto:fabrizio.brancati@gmail.com)\n\nLicense\n=======\n\nBFKit-Swift is available under the MIT license. See the **[LICENSE](https://github.com/FabrizioBrancati/BFKit-Swift/blob/master/LICENSE)** file for more info.\n\n[Documentation]: https://github.fabriziobrancati.com/documentation/BFKit-Swift/\n[✓]: Resources/Check.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFabrizioBrancati%2FBFKit-Swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFabrizioBrancati%2FBFKit-Swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFabrizioBrancati%2FBFKit-Swift/lists"}