Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Subject
- Firebase Analytics
- Firebase
- KeyPath
- SwiftUI
- observable
- uitableviewdiffabledatasource
- swift 5.9
- 네트워크 통신
- JSON
- Tuist
- swift db
- xcode
- Tuist Swift
- SeSAC
- Swift Tuist
- ios
- realm
- ribs
- GCD
- swift database
- arc
- ios database
- swift
- Subscribe
- Combine
- swift 6
- 카카오뱅크 ios
- RxSwift
- combinecocoa
Archives
- Today
- Total
천원의 개발
IOS Firebase를 활용하여 회원가입 구현 본문
먼저 firebase import해주고 Firebase인증 페이지 확인결과 Auth.auth().createUser(withEmail: email, password: password) { authResult, error in <- 함수 호출시 Firebase 서버로 전송된다.
if let email = emailTextfield.text ,let password = passwordTextfield.text { // 옵셔널 바인딩
Auth.auth().createUser(withEmail: email, password: password) { authResult, error in // 회원가입을 위한 함수
if let e = error{
print(e.localizedDescription) // 유저가 알아들을 수 있는 피드백
} else {
//Navigate to the ChatViewController
self.performSegue(withIdentifier: "RegisterToChat", sender: self)
}
}
}
'iOS&Swift🍎' 카테고리의 다른 글
IOS TableView 초기설정 (0) | 2022.03.30 |
---|---|
IOS Firebase를 활용한 로그인 화면 구현 (0) | 2022.03.29 |
IOS 글씨에 애니메이션 효과 주기 (0) | 2022.03.27 |
IOS cocopad설치방법 (0) | 2022.03.27 |
IOS UIPickerView를 사용해보자 (0) | 2022.03.26 |