Skip to content

Commit

Permalink
[feat] 크래시로 인해 BaseUI 요소들 receive(on:) 메서드 주석 처리 #300
Browse files Browse the repository at this point in the history
  • Loading branch information
skkimeo committed Jul 1, 2023
1 parent fa2e5f0 commit 031f90a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ final class CustomNavigationController: UINavigationController {

private func subscribeToFontPublisher() {
self.cancellable = fontManager.fontPublisher
.receive(on: DispatchQueue.main)
// .receive(on: DispatchQueue.main)
.sink { [weak self] in self?.updateFont(to: $0) }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class CustomTabBarController: UITabBarController {

private func subscribeToFontPublisher() {
self.cancellable = fontManager.fontPublisher
.receive(on: DispatchQueue.main)
// .receive(on: DispatchQueue.main)
.sink { [weak self] in self?.updateFont(to: $0) }
}

Expand Down
2 changes: 1 addition & 1 deletion Happiggy-bank/Happiggy-bank/Base/UI/View/BaseButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class BaseButton: UIButton {

private func subscribeToFontPublisher() {
self.cancellable = fontManager.fontPublisher
.receive(on: DispatchQueue.main)
// .receive(on: DispatchQueue.main)
.sink { [weak self] in
self?.updateFont(to: $0, isBold: self?.titleLabel?.font.isBold == true)
}
Expand Down
2 changes: 1 addition & 1 deletion Happiggy-bank/Happiggy-bank/Base/UI/View/BaseLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class BaseLabel: UILabel {

private func subscribeToFontPublisher() {
self.cancellable = fontManager.fontPublisher
.receive(on: DispatchQueue.main)
// .receive(on: DispatchQueue.main)
.sink { [weak self] in self?.updateFont(to: $0, isBold: self?.font.isBold == true) }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class BaseTextField: UITextField {

private func subscribeToFontPublisher() {
self.cancellable = fontManager.fontPublisher
.receive(on: DispatchQueue.main)
// .receive(on: DispatchQueue.main)
.sink { [weak self] in self?.updateFont(to: $0, isBold: self?.font?.isBold == true) }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class BaseTextView: UITextView {

private func subscribeToFontPublisher() {
self.cancellable = fontManager.fontPublisher
.receive(on: DispatchQueue.main)
// .receive(on: DispatchQueue.main)
.sink { [weak self] in self?.updateFont(to: $0, isBold: self?.font?.isBold == true) }
}

Expand Down

0 comments on commit 031f90a

Please sign in to comment.