| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- swift 6
- observable
- RxSwift
- KeyPath
- swift db
- GCD
- swift 5.9
- Subscribe
- Tuist Swift
- 카카오뱅크 ios
- uitableviewdiffabledatasource
- ios database
- Firebase Analytics
- combinecocoa
- Swift Tuist
- Tuist
- Subject
- swift
- arc
- 네트워크 통신
- swift database
- Firebase
- Combine
- ribs
- xcode
- realm
- SeSAC
- JSON
- SwiftUI
- ios
- Today
- Total
목록ios (36)
천원의 개발
Firebase 문서 import UIKit import Firebase class LoginViewController: UIViewController { @IBOutlet weak var emailTextfield: UITextField! @IBOutlet weak var passwordTextfield: UITextField! @IBAction func loginPressed(_ sender: UIButton) { if let email = emailTextfield.text, let password = passwordTextfield.text{ Auth.auth().signIn(withEmail: email, password: password) { [weak self] authResult, erro..
Firebase 문서 먼저 firebase import해주고 Firebase인증 페이지 확인결과 Auth.auth().createUser(withEmail: email, password: password) { authResult, error in
이 처럼 글씨에 애니메이션 효과를 넣어줄건데 여러 방법중 timer를 사용해 볼게여 titleLabel.text = "" var charIndex = 0.0 let titleText = "⚡️FlashChat" for letter in titleText{ Timer.scheduledTimer(withTimeInterval: 0.1 * charIndex, repeats: false) { timer in self.titleLabel.text?.append(letter) } charIndex += 1 } 주의 해야 할점은 타이머가 0.1초 뒤에 실행하도록 반복문에서 여러번 설정하지만 이렇게 되면 반복문이 엄청 빠르게 실행되기 때문에 ⚡️이게 출력되게는 0.1초 뒤로 설정되고 F또한 다음 반복문에서 0.1초 뒤..
먼저 Class 옆에 UIPikcerViewDataSource 추가 해주구 class ViewController: UIViewController, UIPickerViewDataSource{ @IBOutlet var currencyPicker: UIPickerView! // pickVIew 변수 만들어주고 override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. currencyPicker.dataSource = self //dataSource를 여기로 설정해주고 } } 그러면 numberOfComponents와 pickerView(..., numberOfRowsInComponent) ..
먼저 받아 오려는 JSON데이터 부터 확인후 그에 맞게 구조체를 만들어준다! 여기서 temp를 받아오고 싶다면! 요로코롬 구조체 만들어 주고 struct Data: Decodable{ let main: Main } struct Main: Decodable{ let temp: Double } 그 후에 let decoder = JSONDecoder() do{ let decodedData = try decoder.decode(Data.self, from: data) // data에 URLSession으로 받아온 data 넣어준다! print(decodedData.main.temp) // 출력! } catch{ print(error) }