-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Image.swift | ||
// TradingView | ||
// | ||
// Created by Юрий Демиденко on 18.10.2023. | ||
// | ||
|
||
import UIKit | ||
|
||
enum Images { | ||
static let launchScreen = UIImage(named: "LaunchScreen") | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// SplashViewController.swift | ||
// TradingView | ||
// | ||
// Created by Юрий Демиденко on 18.10.2023. | ||
// | ||
|
||
import UIKit | ||
|
||
final class SplashViewController: UIViewController { | ||
|
||
private lazy var backgroundImageView: UIImageView = { | ||
let imageView = UIImageView() | ||
imageView.translatesAutoresizingMaskIntoConstraints = false | ||
imageView.image = Images.launchScreen | ||
imageView.contentMode = .scaleAspectFill | ||
return imageView | ||
}() | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
setupConstraints() | ||
} | ||
|
||
private func setupConstraints() { | ||
[backgroundImageView].forEach { view.addSubview($0) } | ||
NSLayoutConstraint.activate([ | ||
backgroundImageView.topAnchor.constraint(equalTo: view.topAnchor), | ||
backgroundImageView.leadingAnchor.constraint(equalTo: view.leadingAnchor), | ||
backgroundImageView.bottomAnchor.constraint(equalTo: view.bottomAnchor), | ||
backgroundImageView.trailingAnchor.constraint(equalTo: view.trailingAnchor) | ||
]) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.