Skip to content

Commit

Permalink
[Feat] #275 - viewcontroller publisher 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Jul 22, 2024
1 parent 32aed73 commit 43cc329
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// UIViewController+.swift
// GEON-PPANG-iOS
//
// Created by JEONGEUN KIM on 7/22/24.
//

import Combine
import UIKit

extension UIViewController {
var viewDidLoadPublisher: AnyPublisher<Void, Never> {
let selector = #selector(UIViewController.viewDidLoad)
return Just(selector)
.map { _ in Void() }
.eraseToAnyPublisher()
}
}

0 comments on commit 43cc329

Please sign in to comment.