-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SafeAreaSize, FaceView, SceneView #14
- SafeAreaSize: safeArea 값 전역으로 사용할 수 있도록 Store에 값 추가 - FaceView: 애니메이션 테스트, 상수 데이터 구조체 작성 - SceneView: SequenceView 분리, FaceView 애니메이션을 위한 상태 추가
- Loading branch information
Showing
6 changed files
with
159 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,8 @@ | |
|
||
import Foundation | ||
|
||
struct FACE_VIEW_INFO { | ||
let size = CGSize(width: 150, height: 200) | ||
let srcRoot = "Face" | ||
} | ||
|
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,22 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by Yun Dongbeom on 2023/03/28. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
typealias SafeAreaSize = (CGFloat, CGFloat) | ||
|
||
func getSafeAreaSize() -> SafeAreaSize { | ||
var safeAreaSize: SafeAreaSize = (0, 0) | ||
|
||
let windowScene = UIApplication.self.shared.connectedScenes.first as? UIWindowScene | ||
|
||
safeAreaSize.0 = windowScene?.windows.first?.safeAreaInsets.top ?? 0 | ||
safeAreaSize.1 = windowScene?.windows.first?.safeAreaInsets.bottom ?? 0 | ||
|
||
return safeAreaSize | ||
} |
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