Skip to content

Commit

Permalink
added nekos.life to the default api selector 💀
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed Jun 2, 2024
1 parent 8b76113 commit 5929d50
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 20 deletions.
Binary file not shown.
15 changes: 0 additions & 15 deletions AnimeGen/Extension/ImageExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@ import UIKit
import SDWebImage

extension UIImage {
class func gifData(data: Data) -> [UIImage]? {
guard let source = CGImageSourceCreateWithData(data as CFData, nil) else { return nil }

let count = CGImageSourceGetCount(source)
var images: [UIImage] = []

for i in 0..<count {
guard let cgImage = CGImageSourceCreateImageAtIndex(source, i, nil) else { continue }
images.append(UIImage(cgImage: cgImage))
}

return images
}

var imageData: Data? {
return self.sd_imageData()
}
Expand All @@ -35,4 +21,3 @@ extension UIImageView {
}
}
}

9 changes: 6 additions & 3 deletions AnimeGen/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GC3-Eg-0Yb" userLabel="apiButton">
<rect key="frame" x="135" y="51.666666666666657" width="105" height="35"/>
<rect key="frame" x="132.66666666666666" y="51.666666666666657" width="110" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="YWu-D4-VsU"/>
<constraint firstAttribute="width" constant="105" id="puP-Le-4w6"/>
<constraint firstAttribute="width" constant="110" id="puP-Le-4w6"/>
</constraints>
<color key="tintColor" name="AccentColor"/>
<color key="tintColor" systemColor="labelColor"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="gray" title="pic.re" cornerStyle="medium"/>
<connections>
Expand Down Expand Up @@ -2309,6 +2309,9 @@ Also Thanks to all the active users of the TestFlight beta which are always help
<namedColor name="AccentColor">
<color red="0.3449999988079071" green="0.33700001239776611" blue="0.83899998664855957" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="labelColor">
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="secondaryLabelColor">
<color red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
Expand Down
2 changes: 1 addition & 1 deletion AnimeGen/Settings/AppPref.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AppPref: UITableViewController {

var isPresentingActionSheet = false
var selectedChoiceIndex = 0
let choices = ["waifu.im", "pic.re", "waifu.pics", "waifu.it", "nekos.best", "Nekos api", "nekos.moe", "NekoBot", "n-sfw.com", "Purr"]
let choices = ["waifu.im", "pic.re", "waifu.pics", "waifu.it", "nekos.best", "Nekos api", "nekos.moe", "NekoBot", "n-sfw.com", "Purr", "nekos.life"]

@IBOutlet weak var LoadImageSwitch: UISwitch!
@IBOutlet weak var DisplayTags: UISwitch!
Expand Down
2 changes: 1 addition & 1 deletion AnimeGen/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ViewController: UIViewController {

// Choice Properties
var counter: Int = 0
let choices = ["waifu.im", "pic.re", "waifu.pics", "waifu.it", "nekos.best", "Nekos api", "nekos.moe", "NekoBot", "n-sfw.com", "Purr"]
let choices = ["waifu.im", "pic.re", "waifu.pics", "waifu.it", "nekos.best", "Nekos api", "nekos.moe", "NekoBot", "n-sfw.com", "Purr", "nekos.life"]

override func viewDidLoad() {
super.viewDidLoad()
Expand Down

0 comments on commit 5929d50

Please sign in to comment.