swift
-
PinLayoutLayout Framework(SnapKit 같은)오토 레이아웃에 의존하지 않음간편하고 빠름(Auto Layout보다 8~12배 빠름) GitHub - layoutBox/PinLayout: Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fastFast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer] - layoutBox..
[iOS] PinLayoutPinLayoutLayout Framework(SnapKit 같은)오토 레이아웃에 의존하지 않음간편하고 빠름(Auto Layout보다 8~12배 빠름) GitHub - layoutBox/PinLayout: Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fastFast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer] - layoutBox..
2024.05.25 -
ChartsAndroid MPCharts와 유사Line, Pie, Bar 등등 여러 종류의 차트를 만들 수 있음설치 방법은 아래 github 링크를 참고 GitHub - ChartsOrg/Charts: Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. - ChartsOrg/Chartsgithub.com Model샘플 데이터는 Upbit API(마켓 정보 조회 / 캔들 조회)를 사용하였다.종목 조회 / 종목 시세 조회 Model 만들기// 종목 조회s..
[iOS] Charts 라이브러리를 사용하여 Upbit 시세 그래프 그리기ChartsAndroid MPCharts와 유사Line, Pie, Bar 등등 여러 종류의 차트를 만들 수 있음설치 방법은 아래 github 링크를 참고 GitHub - ChartsOrg/Charts: Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. - ChartsOrg/Chartsgithub.com Model샘플 데이터는 Upbit API(마켓 정보 조회 / 캔들 조회)를 사용하였다.종목 조회 / 종목 시세 조회 Model 만들기// 종목 조회s..
2024.05.04 -
DispatchGroup : 하나의 단위로 모니터링할 수 있는 작업들의 그룹- 여러 작업을 그룹에 추가하고 동일한 Queue 또는 다른 Queue에서 실행되도록 예약할 수 있음- 그룹 내의 모든 작업이 실행 완료 후 completionHandler를 실행- 그룹의 모든 작업이 실행 완료할 때까지 동기적(sync)으로 기다릴 수 있음 // 그룹 생성let group = DispatchGroup()// main Queue를 group에 추가DispatchQueue.main.async(group: group){}// group의 작업이 완료되었을 때 main Queue에 알림group.notify(queue: DispatchQueue.main){} 참고 iOS Concurrency(동시성) 프로그래밍, 동기 ..
[Swift] DispatchQueue (3) - DispatchGroupDispatchGroup : 하나의 단위로 모니터링할 수 있는 작업들의 그룹- 여러 작업을 그룹에 추가하고 동일한 Queue 또는 다른 Queue에서 실행되도록 예약할 수 있음- 그룹 내의 모든 작업이 실행 완료 후 completionHandler를 실행- 그룹의 모든 작업이 실행 완료할 때까지 동기적(sync)으로 기다릴 수 있음 // 그룹 생성let group = DispatchGroup()// main Queue를 group에 추가DispatchQueue.main.async(group: group){}// group의 작업이 완료되었을 때 main Queue에 알림group.notify(queue: DispatchQueue.main){} 참고 iOS Concurrency(동시성) 프로그래밍, 동기 ..
2024.04.20 -
UICollectionViewCompositionalLayout(Class) 적응력이 뛰어나고 유연한 시각적 배열로 item을 결합할 수 있는 Layout 개체 CompositionalLayout은 레이아웃을 별개의 시각적 Group으로 나누는 하나 이상의 Section으로 구성 각 Section을 표시하려는 데이터의 가장 작은 단위인 Item들의 Group으로 구성 Group은 Item을 가로 행, 세로 열 또는 사용자 정의 배열로 배치할 수 있음 Layout 구성 코드 func createBasicListLayout() -> UICollectionViewLayout { let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0..
[iOS] UICollectionViewCompositionalLayoutUICollectionViewCompositionalLayout(Class) 적응력이 뛰어나고 유연한 시각적 배열로 item을 결합할 수 있는 Layout 개체 CompositionalLayout은 레이아웃을 별개의 시각적 Group으로 나누는 하나 이상의 Section으로 구성 각 Section을 표시하려는 데이터의 가장 작은 단위인 Item들의 Group으로 구성 Group은 Item을 가로 행, 세로 열 또는 사용자 정의 배열로 배치할 수 있음 Layout 구성 코드 func createBasicListLayout() -> UICollectionViewLayout { let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0..
2024.03.09 -
Calendar(struct) 달력 단위와 절대 시점간의 관계를 정의하고, 날짜 계산 및 비교 기능 제공 import Foundation // 달력 선택 let buddhistCalendar = Calendar(identifier: .buddhist) let now = Date() // 사용자의 현재 달력 let calendar = Calendar.current // 날짜 요소에 접근하기 let year = calendar.component(.year, from: now) // 년(Int) let month = calendar.component(.month, from: now) // 월(Int) let day = calendar.component(.day, from: now) // 일(Int) let w..
[Swift] CalendarCalendar(struct) 달력 단위와 절대 시점간의 관계를 정의하고, 날짜 계산 및 비교 기능 제공 import Foundation // 달력 선택 let buddhistCalendar = Calendar(identifier: .buddhist) let now = Date() // 사용자의 현재 달력 let calendar = Calendar.current // 날짜 요소에 접근하기 let year = calendar.component(.year, from: now) // 년(Int) let month = calendar.component(.month, from: now) // 월(Int) let day = calendar.component(.day, from: now) // 일(Int) let w..
2024.03.09 -
Mirror (struct) : 모든 유형 인스턴스의 하위 구조 및 표시 스타일을 나타냄 - 인스턴스의 저장된 속성, 컬렉션이나 튜플의 요소, 활성 열거형 케이스 등 특정 인스턴스를 구성하는 부분을 설명 struct Point { let x: Int, y: Int } let p = Point(x: 21, y: 30) print(String(reflecting: p)) // Prints "▿ Point // - x: 21 // - y: 30"
[Swift] MirrorMirror (struct) : 모든 유형 인스턴스의 하위 구조 및 표시 스타일을 나타냄 - 인스턴스의 저장된 속성, 컬렉션이나 튜플의 요소, 활성 열거형 케이스 등 특정 인스턴스를 구성하는 부분을 설명 struct Point { let x: Int, y: Int } let p = Point(x: 21, y: 30) print(String(reflecting: p)) // Prints "▿ Point // - x: 21 // - y: 30"
2024.02.18