-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Sendeky/iPad-Layout
added iPad layout!
- Loading branch information
Showing
22 changed files
with
2,091 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
programmatic-ui-weather-app/iPad Version/Rocket Utils/LaunchRocket.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// LaunchRocket.swift | ||
// weatherkit-weather-app | ||
// | ||
// Created by Ruslan Spirkin on 11/4/23. | ||
// | ||
import UIKit | ||
import Foundation | ||
|
||
|
||
extension iPadMainViewController { | ||
@objc func launchRocket() { | ||
// rocketView.transform = CGAffineTransform(scaleX: 1.5, y: 1.5) | ||
UIImageView.animate(withDuration: 4.4, animations: { | ||
[weak self] in | ||
self!.rocketView.transform = CGAffineTransform(scaleX: 1.1, y: 1.1) | ||
self!.rocketView.frame.origin.y -= 1000 | ||
}) { (done) in | ||
UIImageView.animate(withDuration: 2.0, delay: 8.0, options: [.curveEaseOut], animations: { | ||
[weak self] in | ||
self!.rocketView.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) | ||
self!.rocketView.frame.origin.y += 1000 | ||
}) | ||
} | ||
} | ||
} |
Oops, something went wrong.