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
- collectionview
- uiscrollview
- uitableview
- 리펙터링
- UITextView
- Protocol
- MVVM
- Observable
- combine
- HIG
- 리펙토링
- ios
- Clean Code
- 클린 코드
- clean architecture
- RxCocoa
- Xcode
- UICollectionView
- swiftUI
- map
- rxswift
- tableView
- SWIFT
- 리팩토링
- Human interface guide
- 스위프트
- swift documentation
- Refactoring
- ribs
- 애니메이션
Archives
- Today
- Total
목록뷰 드래그 방법 (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bUw6XG/btrMktoou9j/x8hEfkpD1FWyH9SdNjSeT1/img.gif)
DragGesture drag 관련 액션 이벤트를 생성할때 사용 View 프로토콜을 따르고 있는 모든 곳에 .gesture()를 추가할 수 있는데, 이 gesture안에 들어가는 인스턴스가 DragGesture DragGesture()인스턴스에 onChanged, onEnded를 사용하여 드래그 이벤트 처리 var body: some View { Button("SomeButton") { print("tap button") } .gesture( DragGesture() .onChanged { gesture in } .onEnded { gesture in } ) } 뷰 드래그 구현 방법 프로퍼티 정의 draggedOffset: 드래그한 만큼 뷰가 움직이도록 binding에 사용될 프로퍼티 accumlated..
iOS 응용 (SwiftUI)
2022. 9. 29. 23:21