![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/cxR5wN/btrU2KPzig2/uTkHkFBUeM3kx2h1iyX8s0/img.png)
언제 한번 꼭 정리해보고 싶었던 Git, Github 사용법. https://www.udemy.com/course/best-git-github/ 강의를 들으면서 정리한 내용이다. Git을 처음 접해보는 분들은 이 강의를 꼭 들어봤으면 좋겠다. 그럼 스타트~! Git은 가장 인기 있는 버전 관리 시스템 (VSC: Version Control System)이다. 버전 관리 시스템은 파일의 변화를 시간에 따라 추적하고 관리하는데 도움을 주는 소프트웨어로 작업 파일을 로컬 저장소뿐만 아니라 원격 저장소에도 배포해 저장할 수 있으며, 작업 이력을 관리하고 분기하여 원하는 시점으로 파일을 복원하거나 통합할 수 있다. 이전 버전의 파일을 다시 볼 수 있게 해 주고 버전들 간의 또는 파일들 간의 변화를 비교하고 되돌리..
Super sweet systactic sugar for Swift initializers 인 Then을 사용해보자. GitHub - devxoul/Then: ✨ Super sweet syntactic sugar for Swift initializers ✨ Super sweet syntactic sugar for Swift initializers - GitHub - devxoul/Then: ✨ Super sweet syntactic sugar for Swift initializers github.com CocoaPods과 SPM으로 추가 가능하다. 사용법은 매우 간단하다. 원래 이런 식으로 초기화했던 것을 let label: UILabel = { let label = UILabel() label.text..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/b12oR3/btrOQpcEfbF/DGxhbwS7H3hKNdivZKcOf1/img.png)
iOS) Error - Add Transport Security has blocked a cleartext HTTP connection to { ~ } since it is insecure .. OpenAPI를 사용하는데 다음과 같은 에러 메시지가 나왔다. Security 어쩌고 하는 거 보니까 보안 때문에 HTTP connection을 차단했다 한다. info.plist에서 App Transport Security Setting을 추가 후 하위에 All.. ekko.tistory.com 여기서 더 추가함. 다음과 같은 에러가 나왔을 때, 저번에 작성했던 글에서는 Info.plist에서 모든 도메인을 허용해 줬다. 모든 도메인을 허용해 준다니.. 딱 들어도 해주면 안 될 것 같다. 보안에 문제 생길 듯 ..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/24xbS/btrOCYGp4ny/rVJF4zYEbcdMKDRzwhTWKK/img.png)
xcode 프로젝트에 폰트를 추가해보자. 먼저 원하는 폰트를 다운 받는다. 이번엔 Google Inter Font를 다운받았다. Google Fonts: Inter Inter is a variable font family carefully crafted & designed for computer screens. Inter features a tall x-height to aid in readability of mixed-case and lower- fonts.google.com 다운로드 파일을 보면 .ttf 파일이 있을것이다. 경우에 따라서는 otf 파일도 있는데 적용 방법은 동일하다. ttf 파일을 xcode 프로젝트에 추가해주자. 추가할때 Add to Target에 프로젝트를 꼭 체크해주자. 파일을 ..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/vpIG2/btrOxK843Xw/rHHoelHOKHNOrRUkKTK3Ck/img.gif)
기존 UISheetPresentationController에는 Detents가. medium과. large 뿐이었다. iOS16부터는 Custom Detents를 이용해 Sheet의 높이를 직접 설정해줄 수 있게 되었다. 직접 해보자. WWDC2022 What's new in UIKit을 참고했다. 높이 200인 Detent를 detents배열에 추가해 주었다. sheet.detents = [ .custom{ _ in 200.0 } ] 최대 높이를 기준으로 높이를 설정할수도있다. sheet.detents = [ .custom{ context in 0.3 * context.maximumDetentValue } ] Custom Detent에 identifier를 줘서 sheet의 다른 프로퍼티에서 사용할 수..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/b8Xg9z/btrOtIJWBaJ/kamugTnjl5VeaabJKTyZ71/img.gif)
WWDC2021에서 나온 UISheetPresentationController에 대해 알아보자. 공식 문서의 예제와 영상을 보고 공부해 보았다. Customize and resize sheets in UIKit - WWDC21 - Videos - Apple Developer Discover how you can create a layered and customized sheet experience in UIKit. We'll explore how you can build a non-modal experience in... developer.apple.com Get Sheet 먼저 ViewController를 Navigation Controller에 Embed 하고 BarButtonItem을 추가해 주었다..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/t8Utx/btrOoAzi2nh/NEknGTcz9z5FIyXSPV57bK/img.gif)
여러 앱이나 웹에 위와 같은 배너가 사용되고 있고, 오픈 소스 라이브러리도 많이 있다. 개인적으로 UI가 이쁘다고 생각해 프로젝트에 적용도 해볼 겸 UICollectionView를 이용해 직접 구현해봤다. 이전 글인 iOS) UICollectionView Programmatically에서 만든 CollectionView를 사용했다. 구현해야 할 내용을 간단하게 정리해 보자면 다섯 가지가 있다. 셀 Size, Inset 조절 스크롤 시 셀이 가운데 위치 페이징 일정 시간마다 자동으로 스크롤 중앙에 위치하는 아이템의 사이즈를 조절 먼저 Cell의 Size와 을 조절해 Cell이 카드처럼 보이도록 만들어보자. 1. Cell Size, Inset 조절 Cell Size와 Inset은 UICollectionVie..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/eW1OFQ/btrOeRf0oDy/TiuCl9jYHPWkaWr4Nebjbk/img.gif)
UICollectionView를 Programmatically 하게 사용하는 방법이다. 원래 cellForItemAt에서 cell의 요소에 접근하는 방식을 cell.titleLabel.text = "" 이런 식으로 사용했는데 이번엔 다른 방법으로 접근해보고자 한다. 먼저 Collection View Cell은 다음과 같이 만들었다. MyCollectionViewCell.swift // // MyCollectionViewCell.swift // import Foundation import UIKit class MyCollectionViewCell: UICollectionViewCell { static let identifier = "MyCollectionViewCell" private let label: ..
- Total
- Today
- Yesterday
- BOJ 10866
- Sheet Height
- BOJ 17413
- swift
- Algorithm
- Gradient View
- Custom Detent
- BOJ 10808
- NaverMaps
- BOJ 10799
- autolayout
- Carousel Effect
- github
- BOJ 17298
- Stack
- UICollectionView Error
- Card CollectionVIew
- BOJ 1935
- 1406 에디터
- UICollectionView banner
- CAGradientLayer
- BOJ 10809
- crud
- 요시푸스
- ios
- BOJ 10820
- 2023 회고
- bottom sheet
- sheetPresentationController
- git
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |