Skip to content

Commit

Permalink
cool stuffs
Browse files Browse the repository at this point in the history
New image for Hmtai api, and added swipe down gesture to open the settings + resized the api images in the ApiPage
  • Loading branch information
cranci1 committed Feb 27, 2024
1 parent f6d3857 commit 3e6f741
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "pngtree-no-image-available-icon-flatvector-illustration-pic-design-profile-vector-png-image_40966566.jpg",
"filename" : "0754DB9D-0AAA-4AB2-8F94-D34DBBF58ADF.png",
"idiom" : "universal",
"scale" : "1x"
},
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion AnimeGen/Settings/ApiPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct ApiPage: View {
Image(data.imageName)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: 80)
.frame(height: 100)
.cornerRadius(10)

Text(data.apiName)
Expand Down
4 changes: 4 additions & 0 deletions AnimeGen/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ class ViewController: UIViewController {
let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(rewindButtonTapped))
swipeRight.direction = .right
view.addGestureRecognizer(swipeRight)

let swipeDown = UISwipeGestureRecognizer(target: self, action: #selector(settingsButtonTapped))
swipeDown.direction = .down
view.addGestureRecognizer(swipeDown)

view.backgroundColor = UIColor(red: 0.125, green: 0.125, blue: 0.125, alpha: 1.0)

Expand Down

0 comments on commit 3e6f741

Please sign in to comment.