Skip to content

Commit

Permalink
Storyboard recode!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed May 7, 2024
1 parent 94c36d7 commit f7aafae
Show file tree
Hide file tree
Showing 84 changed files with 2,438 additions and 1,512 deletions.
Binary file modified .DS_Store
Binary file not shown.
531 changes: 242 additions & 289 deletions AnimeGen.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/SDWebImage/SDWebImage",
"state": {
"branch": "master",
"revision": "80c8b2023a5efb4415a2c615acfec075e5c243d2",
"revision": "e55cb041d05fc20a8b32c56249ab7e4b907c1dcb",
"version": null
}
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "F794EE07-4BB3-4C6A-95AB-0C0581DD0FA9"
uuid = "8A7504BD-311F-490F-BCC5-F6F6C8832865"
type = "1"
version = "2.0">
</Bucket>
Binary file modified AnimeGen/.DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ extension ViewController {
} else {
if let newImage = UIImage(data: imageData) {
self.imageView.image = newImage
self.animateImageChange(with: newImage)
self.addToHistory(image: newImage)
self.animateImageChange(with: newImage)
} else {
print("Failed to load image data.")
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ extension ViewController {
if let data = try? Data(contentsOf: imageUrl), let newImage = UIImage(data: data) {
self.imageView.image = newImage
self.animateImageChange(with: newImage)
self.tagsLabel.isHidden = false
self.addToHistory(image: newImage)
self.tagsLabel.isHidden = false
self.updateUIWithTags(tags)
self.stopLoadingIndicator()
} else {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,14 @@ extension ViewController {
print("Image loading error: \(imageError)")
} else if let imageData = imageData, let newImage = UIImage(data: imageData) {
self.imageView.image = newImage
self.animateImageChange(with: newImage)
self.addToHistory(image: newImage)
self.tagsLabel.isHidden = true
self.animateImageChange(with: newImage)

if self.moetags {
self.tagsLabel.isHidden = false
} else {
self.tagsLabel.isHidden = true
}
} else {
print("Failed to load image data.")
}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ extension ViewController {
if let data = try? Data(contentsOf: imageUrl), let newImage = UIImage(data: data) {
DispatchQueue.main.async {
self.imageView.image = newImage
self.addToHistory(image: newImage)
self.animateImageChange(with: newImage)
self.tagsLabel.isHidden = false
self.addToHistory(image: newImage)
self.updateUIWithTags(tags)
self.stopLoadingIndicator()
}
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions AnimeGen/AnimeGen.entitlements

This file was deleted.

28 changes: 8 additions & 20 deletions AnimeGen/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,27 @@
// AppDelegate.swift
// AnimeGen
//
// Created by cranci on 11/02/24.
// Created by Francesco on 04/05/24.
//

import UIKit
import SwiftUI

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.

UserDefaults.standard.register(defaults: ["enableAnimations": true])
UserDefaults.standard.register(defaults: ["enableTags": true])
UserDefaults.standard.register(defaults: ["enableGestures": true])
UserDefaults.standard.register(defaults: ["enableKyokobanner": true])
UserDefaults.standard.register(defaults: ["enableImageStartup": true])
UserDefaults.standard.register(defaults: ["enableHistoryOvertime": true])


// Tutorial View Prompt
let isFirstLaunch = !UserDefaults.standard.bool(forKey: "hasLaunchedBefore")
if isFirstLaunch {
UserDefaults.standard.set(true, forKey: "hasLaunchedBefore")

let tutorialView = TutorialView()
.edgesIgnoringSafeArea(.all)
let hostingController = UIHostingController(rootView: tutorialView)

window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = hostingController
window?.makeKeyAndVisible()
}
UserDefaults.standard.register(defaults: ["enableTime": true])
UserDefaults.standard.register(defaults: ["enableHistory": true])

// Override point for customization after application launch.
return true
}

Expand All @@ -54,4 +39,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


}

Binary file modified AnimeGen/Assets.xcassets/.DS_Store
Binary file not shown.
33 changes: 0 additions & 33 deletions AnimeGen/Base.lproj/Main.storyboard

This file was deleted.

182 changes: 0 additions & 182 deletions AnimeGen/Boarding/Main-onboard.swift

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//
// HearthButton.swift
// HeartButton.swift
// AnimeGen
//
// Created by cranci on 20/03/24.
// Created by cranci on 05/05/24.
//

import UIKit
Expand All @@ -11,7 +11,7 @@ import MobileCoreServices

extension ViewController {

@objc func heartButtonTapped() {
@IBAction func heartButtonTapped() {
guard let image = imageView.image else {
return
}
Expand Down Expand Up @@ -56,5 +56,4 @@ extension ViewController {
print("Image saved successfully")
}
}

}
Loading

0 comments on commit f7aafae

Please sign in to comment.