Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- iOS16
- Archive
- geofencing
- IOS
- MacOS
- FLUTTER
- 이미지
- Swift
- UIButton
- 한글
- error
- 개발자
- github
- Session
- appstore
- Git
- rxswift
- mac
- view
- window
- Apple
- Notification
- Realm
- Code
- SwiftUI
- Xcode
- JPA
- darkmode
- 웹뷰
- Firebase
Archives
- Today
- Total
목록iOS, Swift/Tip, Bug, Swift Error (33)
EEYatHo 앱 깎는 이야기

디자인팀의 요구사항은, 올라왔다가 내려가는 Toast. Frame으로 Animate하는거야 뭐 아주 쉽다. 그런데 Label의 줄 수에 따라 동적으로 높이가 변하는 Toast. 때문에 FrameBasedLayout이 아닌, AutoLayout을 사용한다. AutoLayout Animate로 리서칭을 하였는데, animate 밖에서 Constraint 수정하고, animate 안에서 layoutIfNeeded() 하기? 잘 안되면 setNeedsUpdateConstraints() 하기? 다 필요없다 animate 함수 안에 아래처럼만 해주면 된다. 갓갓 SnapKit.. ( 진작에 SnapKit Animate로 검색할걸 ㅇㄴㅁㄹㄴㅁㅇㅁㄹㅁㄴ ) UIView.animate(withDuration: 1.0, ..
iOS, Swift/Tip, Bug, Swift Error
2021. 2. 18. 23:55