일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Protocol
- swiftUI
- 리펙토링
- Refactoring
- ios
- RxCocoa
- rxswift
- combine
- Xcode
- SWIFT
- collectionview
- ribs
- Human interface guide
- 리팩토링
- 리펙터링
- map
- UICollectionView
- 애니메이션
- HIG
- Observable
- clean architecture
- uiscrollview
- 스위프트
- swift documentation
- Clean Code
- 클린 코드
- uitableview
- UITextView
- tableView
- MVVM
- Today
- Total
목록Hugging (5)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bissti/btsvNzjIs5e/XueNceu1PvCOUXyEH1kU9K/img.png)
setContentHuggingPriority 개념 뷰가 고유 크기보다 커지는 것을 방지하기위해 우선 순위를 설정하는것 cf) setContentCompressionResistancePriority: 뷰가 고유 크기보다 작게 되는것을 방지하기위해 우선 순위를 설정하는것 * 구체적인 개념은 이전 포스팅 글 참고 setContentHuggingPriority 주의사항 containerView와 이 안에 있는 label이 있을 때, containerView의 hugging 값을 높게해주어도 안에 있는 label의 hugging값을 조절해주지 않는이상 적용되지 않으므로 주의 ex) 왼쪽, 중앙, 오른쪽 세 개의 뷰가 있을때, 중간에 있는 뷰의 hugging값을 높여서 길어지지 않도록 하고 싶은 경우? 중간에 있..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/3KwPl/btrr3nbiTKP/1bV92YmF6sHtY56FncPqHk/img.gif)
1. Autolayout 고급 (with SnapKit) - Hugging, Compression, priority 개념 2. Autolayout 고급 (with SnapKit) - remakeConstraints, multipliedBy, dividedBy 3. Autolayout 고급 (with SnapKit) - Constraint 프로퍼티를 사용한 단순한 animation 구현 4. Autolayout 고급 (with SnapKit) - Stretchy 레이아웃 구현 미리 알아야하는 개념 코드로 UI 구현 시, SnapKit 기본 사용 방법 snapKit의 remakeConstraints() 기존에 입력되었던 constraints를 삭제하고 다시 constraints를 설정하는 메소드 multip..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cg2SuR/btrr2SIFQLn/DFtwBlXfzwxCfnhA1huLzK/img.png)
1. Autolayout 고급 (with SnapKit) - Hugging, Compression, priority 개념 2. Autolayout 고급 (with SnapKit) - remakeConstraints, multipliedBy, dividedBy 3. Autolayout 고급 (with SnapKit) - Constraint 프로퍼티를 사용한 단순한 animation 구현 4. Autolayout 고급 (with SnapKit) - Stretchy 레이아웃 구현 미리 알아야하는 내용 intrinsicContentSize 개념: https://ios-development.tistory.com/647 (코드로 UI 구현 시) SnapKit 프레임워크 사용: https://ios-developme..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/1axIu/btq3UHcERfP/WPS3sGquDzQA6xhfdkuNk0/img.png)
StackView에서 사용할 것 distribution은 axis 방향 alignment는 axis 반대 방향 속성 axis alignment distribution 내부 뷰들의 auto layout 설정 StackView 속성 stackView.axis = .horizontal (default) horizontal vertical stackView.alignment = .fill (default) fill: 내부 view들을 stackView.axis의 반대 방향으로 stretch stackView.distribution = .fill (default) fill: 스택뷰 방향쪽으로 남은 공간에 stretch되는 형태 Fill Proportionally: 내부 view들이 intrinsic content..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/d92ySj/btqMgsi4Kcx/Y6KdvBWJeKrw2XRBXkycK1/img.png)
Custom Cell 셀에 들어갈 Model생성 (용도 - bind할 때 인수로 넘길 객체) // // TitleModel.swift // Testtes // // Created by 김종권 on 2020/11/01. // Copyright © 2020 jongkwon kim. All rights reserved. // import Foundation struct TitleModel { let title: String let subTitle: String } cocoa touch class -> "Also create XIB file"체크 후 넥스트 각 UI배치 및 hugging, compression 설정 (Description이 길어질 수 있으므로, Title의 hugging, compression모..