오늘부터 팀 프로젝트 명.노.운 앱 개발을 시작한다.
계획은 오늘 내로 UI 개발을 완료하는 것!

UIView 를 사용해서 극복했다!!

import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = scene as? UIWindowScene else { return }
let window = UIWindow(windowScene: windowScene)
//window.rootViewController = ViewController()
// 시작화면을 LaunchScreen 스플래시 화면으로 설정
window.rootViewController = UIStoryboard(name: "LaunchScreen", bundle: nil).instantiateInitialViewController()
window.makeKeyAndVisible()
// 스플래시 화면을 1초 유지
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1.0) {
animateFadeOutAndSwitchToMain()
}
// 스플래시 화면 애니매이션 효과 설정
func animateFadeOutAndSwitchToMain() {
// 1초 동안 흐려지게
UIView.animate(withDuration: 1.0, animations: {
window.alpha = 0
}) { _ in
// 애니매이션 효과가 끝나면 ViewController() 가 루트 뷰로 설정
window.rootViewController = ViewController()
window.makeKeyAndVisible()
UIView.animate(withDuration: 1.0, animations: {
window.alpha = 1
})
}
}
self.window = window
}
}
내가 맡은 화면을 일찍 끝내서 다른 팀원의 화면을 도와줬다.
같이 도우면서 하는게 바로 팀 프로젝트!!

