import RIBs
import RxSwift
import RxRelay
import ReactorKit
protocol FAQsRouting: ViewableRouting {
func routeToFAQ(_ faq: FAQ)
func detachFAQ()
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** - 새창 열기, 닫기 예제 **/ | |
///메인으로 사용중인 웹뷰 | |
lazy var webView = WKWebView() | |
///window.open()으로 열리는 새창 | |
var createWebView: WKWebView? | |
func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 12 commits ▍░░░░░░░░░░░░░░░░░░░░ 2.0% | |
🌆 Daytime 99 commits ███▌░░░░░░░░░░░░░░░░░ 16.8% | |
🌃 Evening 269 commits █████████▌░░░░░░░░░░░ 45.5% | |
🌙 Night 211 commits ███████▍░░░░░░░░░░░░░ 35.7% |
이 글은 Heinrich Hartmann 님이 작성하신 글을 한국어로 번역한 것입니다. 원문은 https://www.heinrichhartmann.com/posts/writing/ 에서 확인하실 수 있습니다.
글쓰기는 큰 조직에서 영향력을 발휘하는 데 중요합니다. 경력 있는 소프트웨어 엔지니어로서의 글쓰기는 직무 범위를 확장하고 경력을 발전시키기 위해 획득해야 하는 가장 중요한 기술입니다.
글쓰기는 어렵습니다. 많은 소프트웨어 엔지니어들이 글쓰기와 씨름하죠. 저도 개인적으로 문학에 대한 관심이 없기 때문에 글쓰기가 자연스럽지 않았습니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
import Foundation | |
import UIKit | |
import Darwin.os.lock | |
/** | |
A threadsafe, non-blocking (on the write side), zero-allocation ring-buffer implementation. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - UserListInteractor | |
final class UserListInteractor: | |
PresentableInteractor<UserListPresentable>, | |
UserListInteractable, | |
UserListPresentableListener, | |
Reactor | |
{ | |
// MARK: - Reactor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - transform mutation | |
func transform(mutation: Observable<Mutation>) -> Observable<Mutation> { | |
return mutation | |
.withUnretained(self) | |
.flatMap { this, mutation -> Observable<Mutation> in | |
switch mutation { | |
case .attachUserInformationRIB: | |
return this.attachUserInformationRIBTransform() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - Binding | |
private extension UserListViewController { | |
func bind(listener: UserListPresentableListener?) { | |
guard let listener = listener else { return } | |
bindActions(to: listener) | |
bindState(from: listener) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - UserListInteractor | |
final class UserListInteractor: | |
PresentableInteractor<UserListPresentable>, | |
UserListInteractable, | |
UserListPresentableListener, | |
Reactor | |
{ | |
/* ... */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - UserListPresentableListener | |
protocol UserListPresentableListener: AnyObject { | |
typealias Action = UserListPresentableAction | |
typealias State = UserListPresentableState | |
func sendAction(_ action: Action) | |
var state: Observable<State> { get } | |
var currentState: State { get } | |
} |
NewerOlder