Develop/라이브러리 (8) 썸네일형 리스트형 [iOS] PinLayout 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] 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.. [iOS] SwiftLint SwiftLint 코드 규칙 도구 라이브러리 GitHub - realm/SwiftLint: A tool to enforce Swift style and conventions. A tool to enforce Swift style and conventions. Contribute to realm/SwiftLint development by creating an account on GitHub. github.com 1. PodFile에 추가, pod install pod 'SwiftLint' 2. [Project] Target → [Build Phases] → [New Run Script Phases] ${PODS_ROOT}/SwiftLint/swiftlint 3. 결과 [Firebase] Apple 로그인 - [Firebase Console] - [Authentication]에서 Apple 추가 - [Target] - [Signing & Capablilties]에 [Sign in with Apple 추가] - https://developer.apple.com/에 접속하여 [Certificates, Identifier & Profiles] - [Service IDs] 추가 - 여기서 Identifier은 BundleID에서 추가로 글자를 입력함 - 생성 완료 된 Identifiers 클릭하고 Configure - 이 창이 등장할것이다. - Domains and Subdomains에는 승인된 도메인명(.firebaseapp.com으로 끝나는 항목) - Return URLs은 아래 있는 콜백 URL입력 - im.. [Firebase] Google 로그인 - PodFile 추가 pod 'Firebase/Auth' pod 'Firebase/Firestore' pod 'GoogleSignIn' - Firebase Console에서 Google 추가 - [GoogleService-Info.plist] - [REVERSED_CLIENT_ID]를 URLScheme에 추가 - AppDelegate 코드 추가 import UIKit import Firebase import GoogleSignIn func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { return GIDSignIn.sharedInstance.ha.. [iOS] Firebase FireStore/Storage Firestore Setting - 프로젝트에서 FireStore Database를 추가 - DB 생성 - Cloud Firestore 위치는 아무거나 선택(서버 위치에 따라 속도가 다름) - 컬렉션 추가 - 테이블에 데이터 추가 - Firestore 규칙 (만약 allow read, write if false로 되어 있으면, true로 바꿔 데이터를 읽어올 수 있음) - podfile Firestore Code - import FirebaseFirestore - DB에 선언한 것을 구조체로 선언 - Firebase DB에 들어갈 수 있는 데이터 구조(클래스와 구조체는 들어갈 수 없음) Number String Array Dictionary → 구조체를 Dictionary로 바꾸는 getDic() 함수도.. [iOS] Firebase Authentication Setting - https://console.firebase.google.com/에서 프로젝트 생성 로그인 - Google 계정 이메일 또는 휴대전화 accounts.google.com - 계속 누르기 - Default Account for Firebase 선택 - 프로젝트 준비 완료 - App에 Firebase 추가 [iOS 선택] - Apple 번들 ID 입력 - GoogleSerivce-Info.plist 다운, Xcode 프로젝트 info파일 밑에 추가하기 - 추가 마치고 나서 Authentication 시작하기 - 로그인 방식 선택하기 [이메일/비밀번호] 방식 주로 사용함 [전화 인증]은 소량의 인증이면 무료 [Facebook/Twitter]는 구현하기 어려움 [Kakao나 Naver]는 개발.. [iOS] Cocoa Pod 사용법 Cocoa Pod 설치 1. 프로젝트 생성 2. 프로젝트가 있는 폴더에서 터미널 열기 3. pod init 입력 (프로젝트 초기화) 4. pod install 입력 (라이브러리 설치) 5. open 프로젝트이름.xcworkspace (workspace 열기) 6. podfile에 원하는 라이브러리 입력 7. 터미널에서 pod install 한 번 더 입력 참조 : 인프런 강의 (iOS 최신 앱 개발 강의 - 기초부터 핵심 요소, 간단한 포폴까지 제작) 이전 1 다음