diff --git a/AnimeGen.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate b/AnimeGen.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate index 41a095e6..192f084a 100644 Binary files a/AnimeGen.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate and b/AnimeGen.xcodeproj/project.xcworkspace/xcuserdata/Francesco.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/AnimeGen/AnimeGen.entitlements b/AnimeGen/AnimeGen.entitlements new file mode 100644 index 00000000..8f330422 --- /dev/null +++ b/AnimeGen/AnimeGen.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.network.client + + com.apple.security.personal-information.photos-library + + + diff --git a/AnimeGen/ViewController.swift b/AnimeGen/ViewController.swift index 5d36ca12..386aacd3 100644 --- a/AnimeGen/ViewController.swift +++ b/AnimeGen/ViewController.swift @@ -91,11 +91,13 @@ class ViewController: UIViewController { view.addSubview(apiButton) + // History Button historyButton = UIButton(type: .system) let historyIcon = UIImage(systemName: "clock.arrow.circlepath")? .withConfiguration(UIImage.SymbolConfiguration(pointSize: 20, weight: .regular)) historyButton.setImage(historyIcon, for: .normal) historyButton.tintColor = .systemGray + historyButton.setTitleColor(.white, for: .normal) historyButton.addTarget(self, action: #selector(historyButtonTapped), for: .touchUpInside) historyButton.translatesAutoresizingMaskIntoConstraints = false view.addSubview(historyButton) @@ -217,7 +219,7 @@ class ViewController: UIViewController { apiButton.heightAnchor.constraint(equalToConstant: 40), apiButton.widthAnchor.constraint(equalToConstant: 120), - historyButton.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 5), + historyButton.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 10), historyButton.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -10), settingsButton.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 5),