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
- 네이티브
- AWS
- 감사일기
- hybrid
- 안드로이드
- Android
- 도메인
- fanzeel
- nextjs
- node
- beanstalk
- JavaScript
- S3
- node.js
- TypeScript
- Elastic Beanstalk
- 웹뷰
- 카카오톡
- NeXT
- swift
- 페이스북
- angular
- https
- 알려줌
- ios
- cors
- angular4
- php
- react
- Route53
Archives
- Today
- Total
쪼렙 as! 풀스택
Swift 5.4 - 키보드 올라올라올 때 애니메이션 정확히 동일한 curve 알기. 본문
NotificationCenter.default.publisher(for: UIResponder.keyboardWillHideNotification)
.receive(on: RunLoop.main)
.sink { [weak self] (notification) in
let curve = notification.userInfo?[UIResponder.keyboardAnimationCurveUserInfoKey] as! UInt
let duration = notification.userInfo?[UIResponder.keyboardAnimationDurationUserInfoKey] as! Double;
let curveOpt = UIView.AnimationOptions(rawValue: curve << 16)
UIView.animate(withDuration: duration, delay: 0, options: [curveOpt]) {
self?.constBottom.constant = 0;
self!.layoutIfNeeded()
}
}
'개발 일지 > iOS & Android' 카테고리의 다른 글
Android Webview 에서 javascript window 객체에 접근해, 네이티브 기능 실행하기 (0) | 2021.01.31 |
---|---|
iOS - Storyboard 에서 UILabel 에 Padding 설정하기 (0) | 2020.03.19 |
iOS - XIB 에서 가져온 TableViewCell의 Dynamic Height (self-sizing height) (0) | 2020.03.16 |
iOS 하이브리드앱, Javascript 로 웹뷰에 메세지 보내기 (네이티브 코드 사용할 수 있도록) (0) | 2019.12.28 |
iOS13 - 카카오 로그인, 페이스북 로그인등 application: openURL() 이 안불러질때;; (0) | 2019.12.05 |
Comments