AI prompts
base on ProgressHUD is a lightweight and easy-to-use HUD for iOS. Over 5000+ animations. ‼️ <img src="https://rel.codes/hud/101.gif" width="80"> <img src="https://rel.codes/hud/001.gif" width="80"> <img src="https://rel.codes/hud/002.gif" width="80"> <img src="https://rel.codes/hud/003.gif" width="80"> <img src="https://rel.codes/hud/004.gif" width="80"> <img src="https://rel.codes/hud/005.gif" width="80"> <img src="https://rel.codes/hud/006.gif" width="80"> <img src="https://rel.codes/hud/007.gif" width="80"> <img src="https://rel.codes/hud/008.gif" width="80"> <img src="https://rel.codes/hud/009.gif" width="80"> <img src="https://rel.codes/hud/010.gif" width="80"> <img src="https://rel.codes/hud/011.gif" width="80"> <img src="https://rel.codes/hud/012.gif" width="80"> <img src="https://rel.codes/hud/013.gif" width="80"> <img src="https://rel.codes/hud/014.gif" width="80"> <img src="https://rel.codes/hud/015.gif" width="80"> <img src="https://rel.codes/hud/016.gif" width="80"> <img src="https://rel.codes/hud/017.gif" width="80"> <img src="https://rel.codes/hud/018.gif" width="80"> <img src="https://rel.codes/hud/019.gif" width="80"> <img src="https://rel.codes/hud/020.gif" width="80"> <img src="https://rel.codes/hud/021.gif" width="80"> <img src="https://rel.codes/hud/102.gif" width="80"> <img src="https://rel.codes/hud/103.gif" width="80"> <img src="https://rel.codes/hud/104.gif" width="80"> <img src="https://rel.codes/hud/202.gif" width="80"> <img src="https://rel.codes/hud/203.gif" width="80"> <img src="https://rel.codes/hud/204.gif" width="80"> <img src="https://rel.codes/hud/205.gif" width="80"> <img src="https://rel.codes/hud/206.gif" width="80"> <img src="https://rel.codes/hud/207.gif" width="80"> <img src="https://rel.codes/hud/208.gif" width="80"> <img src="https://rel.codes/hud/209.gif" width="80"> <img src="https://rel.codes/hud/210.gif" width="80"> <img src="https://rel.codes/hud/211.gif" width="80">
## WHAT'S NEW
For detailed changes, please refer to the [Change log](CHANGELOG.md).
## OVERVIEW
**ProgressHUD** is a convenient and intuitive HUD tool designed specifically for iOS. It enables seamless presentation of concise alerts or notifications to users of your app in a simple and non-disruptive way.
## INSTALLATION
‼️ In case you're using Xcode 14.3.1 or an earlier version, stick with [13.8.6](https://github.com/relatedcode/ProgressHUD/releases/tag/13.8.6) ‼️
### CocoaPods
[CocoaPods](https://cocoapods.org) is a dependency manager for Swift and Objective-C Cocoa projects.
To incorporate the **ProgressHUD** library into your Xcode project utilizing CocoaPods, please reference it within your `Podfile` as shown below:
```ruby
pod 'ProgressHUD'
```
### Swift Package Manager
[Swift Package Manager](https://swift.org/package-manager) is a tool for managing the distribution of Swift code.
To add **ProgressHUD** as a dependency to your project, follow these steps:
1. Open your Swift project in Xcode.
2. Navigate to `File` -> `Add Package Dependencies...`.
3. Paste `https://github.com/relatedcode/ProgressHUD.git` into the search bar.
4. Choose the version you want to use and click `Add Package`.
### Manually
If you prefer not to use any of the dependency managers above, you can integrate **ProgressHUD** into your project manually. Just copy all the `*.swift` files from the `ProgressHUD/Sources` folder into your Xcode project.
## QUICK START
```swift
ProgressHUD.banner("Banner title", "Banner message to display.")
```
```swift
ProgressHUD.banner("Banner title", "Message to display.", delay: 2.0)
```
```swift
ProgressHUD.bannerHide()
```
```swift
ProgressHUD.animate("Some text...")
```
```swift
ProgressHUD.animate("Some text...", interaction: false)
```
```swift
ProgressHUD.animate("Please wait...", .ballVerticalBounce)
```
```swift
ProgressHUD.succeed()
```
```swift
ProgressHUD.succeed("Some text...", delay: 1.5)
```
```swift
ProgressHUD.failed()
```
```swift
ProgressHUD.failed("Some text...")
```
```swift
ProgressHUD.progress(0.15)
```
```swift
ProgressHUD.progress("Loading...", 0.42)
```
```swift
ProgressHUD.symbol(name: "box.truck")
```
```swift
ProgressHUD.symbol("Some text...", name: "sun.max")
```
```swift
ProgressHUD.dismiss()
```
```swift
ProgressHUD.remove()
```
## REQUIREMENTS
- iOS 13.0+
- Xcode 15.0+
## CUSTOMIZATION
You can customize attributes like color, font, image, animation type, size, and more by using these methods:
```swift
ProgressHUD.animationType = .circleStrokeSpin
```
```swift
ProgressHUD.colorHUD = .systemGray
```
```swift
ProgressHUD.colorBackground = .lightGray
```
```swift
ProgressHUD.colorAnimation = .systemBlue
```
```swift
ProgressHUD.colorProgress = .systemBlue
```
```swift
ProgressHUD.colorStatus = .label
```
```swift
ProgressHUD.mediaSize = 100
ProgressHUD.marginSize = 50
```
```swift
ProgressHUD.fontStatus = .boldSystemFont(ofSize: 24)
```
```swift
ProgressHUD.imageSuccess = UIImage(named: "success.png")
ProgressHUD.imageError = UIImage(named: "error.png")
```
A comprehensive list of the predefined enums:
```swift
public enum AnimationType: CaseIterable {
case none
case activityIndicator
case ballVerticalBounce
case barSweepToggle
case circleArcDotSpin
case circleBarSpinFade
case circleDotSpinFade
case circlePulseMultiple
case circlePulseSingle
case circleRippleMultiple
case circleRippleSingle
case circleRotateChase
case circleStrokeSpin
case dualDotSidestep
case horizontalBarScaling
case horizontalDotScaling
case pacmanProgress
case quintupleDotDance
case semiRingRotation
case sfSymbolBounce
case squareCircuitSnake
case triangleDotShift
}
```
```swift
public enum LiveIcon {
case succeed
case failed
case added
}
```
## LICENSE
MIT License
Copyright (c) 2024 Related Code
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
", Assign "at most 3 tags" to the expected json: {"id":"11130","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"