An open API service indexing awesome lists of open source software.

https://github.com/azurlane-api/azurlane-swift

Wrapper for the unofficial azur lane json api in Swift
https://github.com/azurlane-api/azurlane-swift

Last synced: 9 months ago
JSON representation

Wrapper for the unofficial azur lane json api in Swift

Awesome Lists containing this project

README

          

# azurlane-swift
Wrapper for the unofficial azur lane json api in Swift

## Install
Import the library into your Package.swift \
`.package(url: "https://github.com/azurlane-api/azurlane-swift.git", from: "")`

## Example
```swift
import Foundation
import AzurLane

let azurlane = AzurLane()

azurlane.getShips(from: .RARITY, with: "Super Rare") { (result: Result) in
switch result {
case .failure(let error):
print(error)
case .success(let response):
for ship in response.ships {
print("[\(ship.id)]: (\(ship.name))")
}
}
}

RunLoop.main.run()
```

## Support
![discord](https://discordapp.com/api/v6/guilds/240059867744698368/widget.png?style=banner2)