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
enum CouponStatus { | |
case notExist | |
case retry | |
case expired | |
case active | |
case get | |
case used |
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
extension Router: Delegate { | |
func dismissAndPresentWriteForm(_ groupID: Int?) { | |
self.viewController?.present(WriteFormViewController(), animated: true) | |
} | |
} | |
class 제이가만든뷰컨트롤러 { | |
var selectedGroupID: Int? { |
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
struct ViewModel { | |
let id: Int | |
let name: String | |
let hasLock: Bool | |
} | |
let groups: [FleaMarketGroup] = ... | |
let viewModels: [ViewModel] = groups.map { hasLock: true } + [ViewModel( hasLock: false)] | |
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
protocol FeedUsecase { } | |
final class BusinessFeedUsecase: FeedUsecase { | |
init(repo: ArticleRepositoryProtocol) { ... } | |
} | |
final class FleaMarketFeedUsecase: FeedUsecase { | |
init(repo: ArticleRepositoryProtocol) { ... } |
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
import Foundation | |
import HaihwanFoundation | |
struct AppDependency { | |
let networking: NetworkingLogic | |
let authWorker: AuthWorkerLogic | |
let propertyWorker: PropertyWorkerLogic |
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
import AsyncDisplayKit | |
import BonMot | |
// MARK: - Action | |
extension TestNode { | |
public var didTapButton: () -> Void { | |
return buttonNode.on(.touchUpInside) | |
} |
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
protocol Syncronizable { | |
func isSyncronizable(from value: Self?) -> Bool | |
} | |
class Syncronizer { | |
static let shared = Syncronizer() | |
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
class Object { | |
var isEnabled: Bool = false | |
func test() { | |
isEnabled = true | |
} | |
} | |
class SpyObject: Object { |
NewerOlder