{"id":2248,"url":"https://github.com/pkluz/PKHUD","last_synced_at":"2025-08-06T16:31:21.491Z","repository":{"id":17961634,"uuid":"20951559","full_name":"pkluz/PKHUD","owner":"pkluz","description":"A Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8.","archived":false,"fork":false,"pushed_at":"2023-02-16T17:26:12.000Z","size":25595,"stargazers_count":3790,"open_issues_count":65,"forks_count":494,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-10-25T09:45:50.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cultive/sw-kata-impl-morreu-","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkluz.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}},"created_at":"2014-06-18T06:20:51.000Z","updated_at":"2024-10-22T16:36:36.000Z","dependencies_parsed_at":"2022-07-14T08:31:27.857Z","dependency_job_id":"aabbe326-86fb-4d33-850e-872c75da5c71","html_url":"https://github.com/pkluz/PKHUD","commit_stats":{"total_commits":205,"total_committers":52,"mean_commits":"3.9423076923076925","dds":0.7219512195121951,"last_synced_commit":"8fd26f23057c6bebd6695524b1c3e05e93aba571"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkluz%2FPKHUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkluz%2FPKHUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkluz%2FPKHUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkluz%2FPKHUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkluz","download_url":"https://codeload.github.com/pkluz/PKHUD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228682330,"owners_count":17956492,"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":[],"created_at":"2024-01-05T20:16:08.806Z","updated_at":"2024-12-09T16:31:01.933Z","avatar_url":"https://github.com/pkluz.png","language":"Swift","readme":"[![Build Status](https://travis-ci.org/pkluz/PKHUD.svg?branch=master)](https://travis-ci.org/pkluz/PKHUD)\n[![License](https://img.shields.io/cocoapods/l/PKHUD.svg?style=flat)](https://cocoapods.org/pods/PKHUD) \n[![Platform](https://img.shields.io/cocoapods/p/PKHUD.svg?style=flat)](http://cocoadocs.org/docsets/PKHUD/3.2.1/) \n[![CocoaPod](https://img.shields.io/cocoapods/v/PKHUD.svg?style=flat)](https://cocoapods.org/pods/PKHUD)\n[![SPM compatible](https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager/)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n![PKHUD - Swift and easy](https://raw.githubusercontent.com/pkluz/PKHUD/master/README_hero.png)\n\nA **Swift** based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) **for iOS 8** and up.\n\n## Features\n- Official iOS 8 blur effect via **UIVisualEffectsView**.\n- Proper **rotation support**.\n- Size / **Device agnostic**.\n- Works on top of presented view controllers, alerts,...\n- Comes with several *free* resources - Checkmark, Cross, Progress Indicator,…\n- …as well as **animated** ones.\n- Builds as an **iOS 8 framework**.\n\n![PKHUD.gif](https://cloud.githubusercontent.com/assets/1275218/10124182/09f4c406-654f-11e5-9cab-0f2e6f470887.gif)\n\n## Installation\n**The recommended way is to use CocoaPods.**\n\n### CocoaPods\n\nTo install PKHUD for Swift 2 using CocoaPods, include the following in your Podfile\n\n```ruby\npod 'PKHUD', '~\u003e 3.0'\n```\n\nTo install PKHUD for Swift 3.x using CocoaPods, include the following in your Podfile\n\n```ruby\npod 'PKHUD', '~\u003e 4.0'\n```\n\nTo install PKHUD for Swift 4.x, include the following in your Podfile\n\n```ruby\npod 'PKHUD', '~\u003e 5.0'\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate PKHUD into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"pkluz/PKHUD\" ~\u003e 4.0\n```\n\nRun `carthage update` to build the framework and drag the built `PKHUD.framework` into your Xcode project.\n\n### Swift Package Manager\n\nTo install using Swift Package Manager, add this to the `dependencies:` section in your Package.swift file:\n```swift\n.package(url: \"https://github.com/pkluz/PKHUD.git\", .upToNextMinor(from: \"5.4.0\")),\n```\n\n## How To\n\nAfter adding the framework to your project, you need to import the module\n```swift\nimport PKHUD\n```\n\nNow, you can proceed to show an arbitrary HUD (and have it automatically disappear a second later) like this:\n```swift\nHUD.flash(.success, delay: 1.0)\n```\n\n_or_ with a completion handler:\n\n```swift\nHUD.flash(.success, delay: 1.0) { finished in \n    // Completion Handler\n}\n```\n\nalternatively, you can use the more verbose and flexible “plumbing” API:\n\n```swift\nPKHUD.sharedHUD.contentView = PKHUDSuccessView()\nPKHUD.sharedHUD.show()\nPKHUD.sharedHUD.hide(afterDelay: 1.0) { success in \n    // Completion Handler\n}\n```\n\nYou can also hot-swap content views - this can prove useful if you want to display a progress HUD first and transform it into a success or error HUD after an asynchronous operation has finished.\n```swift\nHUD.show(.progress)\n        \n// Now some long running task starts...\nDispatchQueue.main.asyncAfter(deadline: .now() + 2) {\n    // ...and once it finishes we flash the HUD for a second.\n   HUD.flash(.success, delay: 1.0)\n}\n```\n\nPlease note that there are _multiple_ types of content views that ship with PKHUD. You can find them as separate files in the project folder as well as in the `ContentViews` group in Xcode.\n\n## Communication _(Hat Tip AlamoFire)_\n\n- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/pkhud). (Tag 'pkhud')\n- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/pkhud).\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**, submit a pull request.\n\n\n## Customization\n\nThere are two properties at your disposal to customize general behavior.\n\n- `PKHUD.sharedHUD.dimsBackground: Bool` defines whether the background is slightly dimmed when the HUD is shown.\n\n- `PKHUD.sharedHUD.userInteractionOnUnderlyingViewsEnabled: Bool` defines whether the underlying views respond to touches while the HUD is shown.\n\nAdditionally you are free to create you own custom content views. They can descend from any `UIView` type or the predefined base classes `PKHUDSquareBaseView` and `PKHUDWideBaseView`.\n\n**Note**: It's neither possible to customize the general look and feel, nor do I plan to add that feature. You are free to provide any content views you wish but the blurring, corner radius and shading will remain the same.\n\n## Credits\n\nPKHUD is owned and maintained by Philip Kluz. Other mantainers are:\n\n- Piergiuseppe Longo [twitter](https://twitter.com/pglongo)\n\n## Xamarin\n\nIf you are Xamarin developer you can use this [port](https://github.com/Prin53/Xamarin.iOS.PKHUD).\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Philip Kluz (Philip.Kluz@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":["UI","Libs","Notification","Swift","UI [🔝](#readme)","etc"],"sub_categories":["Activity Indicator","UI","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkluz%2FPKHUD","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkluz%2FPKHUD","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkluz%2FPKHUD/lists"}