안녕하세요.
overlay와 matchedGeometryEffect 수식어를 잘 활용해서 SwiftUI에서 Hero Animation과 비슷하게 만드는 방법을 가볍게 공부했고 기록 목적으로 글을 쓰려고 합니다ㅎㅎ
matchedGeometryEffect 에 대해선 정리해 둔 글이 있으니 참고해 주세요!
matchedGeometryEffect
안녕하세요. 이번에는 matchedGeometryEffect에 대해 공부해 볼게요. # matchedGeometryEffect matchedGeometryEffect는 SwiftUI의 수식어 중 하나입니다. Defines a group of views with synchronized geometry using an identifier and namesp
phillip5094.tistory.com
이번 글은 아래 글을 토대로 작성하였습니다.
https://swiftwithmajid.com/2023/05/03/the-power-of-overlays-in-swiftui/
The power of overlays in SwiftUI
An overlay is a view drawing on top of another view. And today, we will talk about two interesting use cases of using overlays in SwiftUI. One of them allows us to keep the structural identity of the view, and another one becomes very handy whenever you bu
swiftwithmajid.com
## Hero Animation?
전 이번에 처음 알게 된 내용인데요.
Hero transition이란 모듈이 있더라구요.
그중 Match transition을 유사하게 만드는 만드는 방법을 공유할게요.
## 코드
좋네요ㅎㅎ...

# 참고
https://swiftwithmajid.com/2023/05/03/the-power-of-overlays-in-swiftui/
The power of overlays in SwiftUI
An overlay is a view drawing on top of another view. And today, we will talk about two interesting use cases of using overlays in SwiftUI. One of them allows us to keep the structural identity of the view, and another one becomes very handy whenever you bu
swiftwithmajid.com
이번 글은 여기서 마무리.
'SwiftUI' 카테고리의 다른 글
TCA(0) : The Composable Architecture 개요 (0) | 2023.06.07 |
---|---|
SwiftUI View Lifecycle에 대해 알아보자. (0) | 2023.05.28 |
커스텀 LabelStyle (0) | 2023.03.28 |
RoundedCornerStyle (0) | 2023.03.26 |
컨텐츠 영역 높이에 따른 스크롤 가능 여부 설정 (0) | 2023.03.26 |