Skip to content

Commit

Permalink
test x3
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed Jun 8, 2024
1 parent 9831e63 commit 868bd1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion AnimeGen/Buttons func/Refresh-API-Button.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ extension ViewController {
self.loadImageAndTagsFromSelectedAPI()
}
if index < choiceIcons.count, let icon = UIImage(named: choiceIcons[index]) {
let resizedIcon = icon.resized(to: CGSize(width: 30, height: 30))
let resizedIcon = icon.resized(to: CGSize(width: 35, height: 35))
action.setValue(resizedIcon.withRenderingMode(.alwaysOriginal), forKey: "image")
}
alertController.addAction(action)
Expand Down
6 changes: 3 additions & 3 deletions AnimeGen/Settings/AppPref.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ 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", "nekos.life"]
let choiceIcons = ["waifu.im", "pic-re", "waifu.pics", "waifu.it", "nekos.best", "nekosapi", "nekos.moe", "NekoBot", "n-sfw", "Purr", "nekos.life"]
let choices = ["Purr", "n-sfw.com", "nekos.life", "NekoBot", "nekos.moe", "Nekos api", "nekos.best", "waifu.pics", "waifu.im", "pic.re"]
let choiceIcons = ["Purr", "n-sfw", "nekos.life", "NekoBot", "nekos.moe", "nekosapi", "nekos.best", "waifu.pics", "waifu.im", "pic-re"]

@IBOutlet weak var LoadImageSwitch: UISwitch!
@IBOutlet weak var DisplayTags: UISwitch!
Expand Down Expand Up @@ -59,7 +59,7 @@ class AppPref: UITableViewController {
self.updateSelectedChoiceIndex(index)
})
if let icon = UIImage(named: choiceIcons[index]) {
let resizedIcon = icon.resized(to: CGSize(width: 30, height: 30))
let resizedIcon = icon.resized(to: CGSize(width: 35, height: 35))
action.setValue(resizedIcon.withRenderingMode(.alwaysOriginal), forKey: "image")
}
actionSheet.addAction(action)
Expand Down
4 changes: 2 additions & 2 deletions AnimeGen/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class ViewController: UIViewController {
var parentsModeLoL = UserDefaults.standard.bool(forKey: "parentsModeLoL")

// 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", "nekos.life"]
var counter: Int = 9
let choices = ["Purr", "n-sfw.com", "nekos.life", "NekoBot", "nekos.moe", "Nekos api", "nekos.best", "waifu.pics", "waifu.im", "pic.re"]

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

0 comments on commit 868bd1e

Please sign in to comment.