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 | |
protocol Mergeable { | |
func merge(_ target: Self) | |
} | |
extension Mergeable { | |
func merge(_ target: Self) { | |
guard let source = self as? NSObject else { return } | |
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 AsyncDisplayKit | |
class ChatFlowLayoutExample: UICollectionViewFlowLayout { | |
private var topVisibleItem = Int.max | |
private var bottomVisibleItem = -Int.max | |
private var offset: CGFloat = 0.0 | |
private var visibleAttributes: [UICollectionViewLayoutAttributes]? | |
private var isPrepend: Bool = 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
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 | |
struct VideoProcessing { | |
private static let loadOperation: OperationQueue = { | |
let operationQueue = OperationQueue() | |
operationQueue.maxConcurrentOperationCount = 3 | |
operationQueue.name = "com.VideoFeedController.VideoLoaderOperation" | |
operationQueue.qualityOfService = .utility | |
return operationQueue | |
}() |
NewerOlder