Danny의 iOS 컨닝페이퍼
반응형
article thumbnail
[iOS/Swift] 3. PinLayout 메서드를 알아보자! (+ ScrollView)
Xcode/Library 2024. 1. 20. 02:15

목차 FlexLayout, PinLayout을 사용해 보자! FlexLayout 모든 메서드들을 알아보자! PinLayout 메서드를 알아보자! (+ ScrollView)! 개인적으론 snapKit이 직관적이고 쉬운 것 같은데, 생각보다 FlexLayout + PinLayout도 많이 사용하는 것 같더라고요. 이제 거의 다 왔습니다. 빠르게 마무리 지어보고 사용하다가 팁이나 문제가 생기면 바로 새로운 글을 올려보겠습니다. PinLayout의 사용 시점은 레이아웃이 다 잡히는 시점(슈퍼뷰의 위치 및 크기를 알 수 있는 시점)인 viewDidLayoutSubViews(), layoutSubViews()에서 사용해줘야 합니다. 그 이유는 장치 회전 및 컨테이너 크기를 동적으로 조절하기 위해서 위와 같은 시점에..

article thumbnail
[iOS/Swift] 2. FlexLayout 모든 메서드들을 알아보자!
Xcode/Library 2024. 1. 16. 04:07

목차 FlexLayout, PinLayout을 사용해 보자! FlexLayout 모든 메서드들을 알아보자! PinLayout 메서드를 알아보자! (+ ScrollView)! 메서드들도 많고 CSS를 사용해 보지 않아서 그런가 생소한 단어들도 보이네요 ㅠ.ㅠ 뭔가 느낌은 알 것 같은데, 그래도 일단은 한 번씩은 써봐야 이해되겠죠?! 자, 이전 글 의 예제로 시작해 봅시다. import UIKit import FlexLayout import PinLayout class ViewController: UIViewController { private let containerView = UIView() private let label1: UILabel = { let label = UILabel() label.bac..

article thumbnail
[iOS/Swift] 1. FlexLayout, PinLayout을 사용해 보자!
Xcode/Library 2024. 1. 15. 19:09

목차 FlexLayout, PinLayout을 사용해 보자! FlexLayout 모든 메서드들을 알아보자 PinLayout 메서드를 알아보자! (+ ScrollView)! FlexLayout이란? FlexLayout은 CSS의 Flexbox를 영감을 받아서 만들어진 레이아웃 라이브러리라고 합니다. Auto Layout, UIStackView보다 8~12배 정도 렌더링 성능이 빠릅니다. SwiftUI와 마찬가지로 선언형이고 구문 연결(Chain-able)이 가능합니다. 일단, GitHub 문서 를 간단히 살펴보니, Flexbox와 동일한 역할을 하는 Container를 만들어 초기화시켜 주네요. 이 Container는 UIStackView와 비슷하게 동작하는 것 같은데, 같이 한 번 살펴봅시다. PinLa..

article thumbnail
[iOS/Swift] CocoaPod 사용법
Xcode/Library 2022. 12. 21. 20:49

순서 1. 터미널에서 파일에 접근 2. pod init (pod 생성) 3. pod install (pod 설치) 4. install 후에 생성되는 하얀색 Xcode 파일로 들어가서 작업 5. 들어가보면 Pods 안에 루비모양이 생겼을 것이다. 루비안에서 사용하고 싶은 pod 작성 6. 다시 pod install 각각의 라이브러들의 메뉴얼 보면서 코딩하기! 버전 호환 설정법 // 콤마(,) 뒤에 '~> 원하는 버전' Pod 'Alamofire', '~> 4.4' // 4.4 버전 이상

article thumbnail
[iOS/Swift] FireBase 사용법
Xcode/Library 2022. 12. 20. 03:39

Package Manager Link 라이브러리 Firebase 추가하는 방법 1. 앱 등록 - Bundel Identifier와 동일하게 Apple 번들 ID 설정을 합니다 2. plist 다운 후 xcode로 이동시켜 주세요. 3. FireBase 라이브러리 설치를 합니다. 4. 초기화 코드 추가 사용자 인증 인증으로 들어가 원하는 로그인 방식 선택 (사용 설정 체크) 신규 사용자 등록 & 기존 사용자 로그인 ⭐️ FireBase에는 비밀번호 규칙이 존재한다 (6자리 이상) 신규 가입 시 - Auth.auth().createUser 기존 사용자 로그인 시 - Auth.auth().signIn 사용 Authentication 문서 Apple 플랫폼에서 Firebase 인증 시작하기 Cloud Fires..

article thumbnail
[iOS/Swift] Realm 사용법
Xcode/Library 2022. 12. 20. 01:44

Package Manager https://github.com/realm/realm-swift.git 글을 엉망진창으로 써놔 추후에 다시 깔끔히 정리해 올릴 예정입니다. 😓 간단 사용법 맛보기 1. AppDelegate에서 realm 생성 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { do { let realm = try Realm() } catch { print("Error initialising new realm \(error)") } return true } 2. 데이터 모델 제작 import ..

article thumbnail
[iOS/Swift] 라이브러리 주소
Xcode/Library 2022. 12. 20. 01:31

텍스트필드 레이아웃 (키보드에 맞춰서 올라가게 하기) https://github.com/hackiftekhar/IQKeyboardManager Alamofire https://github.com/Alamofire/Alamofire Firebase https://firebase.google.com/?hl=ko https://github.com/firebase/firebase-ios-sdk Realm Realm Swift SnapKit https://github.com/SnapKit/SnapKit Swipe Cell https://github.com/SwipeCellKit/SwipeCellKit 카멜레온 그라디언트 컬러 https://github.com/wowansm/Chameleon Swifty JSON ..

반응형