Skip to content

Commit

Permalink
fiexd stufffs
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed Mar 26, 2024
1 parent 423140e commit bc028be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Binary file not shown.
12 changes: 12 additions & 0 deletions AnimeGen/AnimeGen.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.personal-information.photos-library</key>
<true/>
</dict>
</plist>
4 changes: 3 additions & 1 deletion AnimeGen/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit bc028be

Please sign in to comment.