Skip to content

Commit 609de5e

Browse files
GomHyeokgithub-actions[bot]
authored andcommitted
[Auto] Run swift-format
1 parent de616de commit 609de5e

File tree

10 files changed

+56
-56
lines changed

10 files changed

+56
-56
lines changed

Common/Auth/Sources/UserDataManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
//
77

88
import Base
9+
import Combine
910
import DIInjector
1011
import Foundation
1112
import NetworkCore
12-
import Combine
1313

1414
public final class UserDataManager {
1515

@@ -66,7 +66,7 @@ public final class UserDataManager {
6666
throw error
6767
}
6868
}
69-
69+
7070
public func getPublisher() -> AnyPublisher<Void, Never> {
7171
userPublisher
7272
.eraseToAnyPublisher()

Feature/Fortune/Sources/Cells/ThumbnailCollectionViewCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ final class ThumbnailCollectionViewCell: BaseCollectionViewCell {
197197
juStackView.removeAllArrangedSubviews()
198198
jeStackView.removeAllArrangedSubviews()
199199
strengthStackView.removeAllArrangedSubviews()
200-
200+
201201
nicknameLabel.styledText = cellModel.name
202202
birthDateLabel.styledText = cellModel.birthDate
203203
bornTimeLabel.styledText = cellModel.birthTime
@@ -408,7 +408,7 @@ extension ThumbnailCollectionViewCell {
408408

409409
stackView.addArrangedSubview(typeLabel)
410410
stackView.addArrangedSubview(infoLabel)
411-
411+
412412
infoLabel.snp.makeConstraints { make in
413413
make.height.equalTo(28)
414414
}

Feature/Fortune/Sources/FortuneViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ extension FortuneViewController {
185185
self.collectionView.reloadData()
186186
}
187187
.store(in: &store)
188-
188+
189189
viewModel.output.isLoading
190190
.receive(on: DispatchQueue.main)
191191
.sink { [weak self] isLoading in

Feature/Fortune/Sources/FourtuneViewModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// Created by 최재혁 on 8/14/25.
66
//
77

8+
import Auth
89
import Combine
910
import DIInjector
1011
import Foundation
11-
import Auth
1212

1313
public final class FortuneViewModel {
1414
enum Input {
@@ -22,7 +22,7 @@ public final class FortuneViewModel {
2222

2323
@Injected private var fortuneService: FortuneService
2424
@Injected private var userDataManager: UserDataManager
25-
25+
2626
let output: Output = Output()
2727
private var cancellables = Set<AnyCancellable>()
2828

Feature/Home/Sources/Home/HomeViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ public final class HomeViewController: BaseViewController {
5252
setupBinding()
5353
viewModel.send(input: .viewDidLoad)
5454
}
55-
55+
5656
public override func viewWillAppear(_ animated: Bool) {
5757
super.viewWillAppear(animated)
58-
58+
5959
}
6060

6161
private func setupUI() {

Feature/Home/Sources/Home/HomeViewModel.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// Created by ttozzi on 7/31/25.
66
//
77

8+
import Auth
89
import Combine
910
import DIInjector
1011
import Foundation
11-
import Auth
1212

1313
protocol HomeCellModel {}
1414

@@ -27,7 +27,7 @@ public final class HomeViewModel {
2727
@Injected var homeService: HomeService
2828
@Injected var homeRouter: HomeRouter
2929
@Injected var userDataManager: UserDataManager
30-
30+
3131
let output: Output = Output()
3232
private var cancellables = Set<AnyCancellable>()
3333

@@ -70,23 +70,23 @@ public final class HomeViewModel {
7070
}
7171
}
7272
}
73-
73+
7474
}
75-
75+
7676
}
7777

7878
extension HomeViewModel {
7979
func fetchUser() {
80-
output.isLoading.send(true)
81-
Task {
82-
do {
83-
let sections = try await homeService.fetch()
84-
output.sections.send(sections)
85-
} catch {
86-
// TODO: 에러 처리
87-
print(error)
88-
}
89-
output.isLoading.send(false)
80+
output.isLoading.send(true)
81+
Task {
82+
do {
83+
let sections = try await homeService.fetch()
84+
output.sections.send(sections)
85+
} catch {
86+
// TODO: 에러 처리
87+
print(error)
9088
}
89+
output.isLoading.send(false)
90+
}
9191
}
9292
}

Feature/Onboarding/Sources/Onboarding/OnboardingViewcontroller.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ extension OnboardingViewController {
292292
if !onBoardingStack.contains(bornTimeStack) && birthTextField.text?.count == 10 {
293293
birthTextField.resignFirstResponder()
294294
UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseInOut) {
295-
295+
296296
self.onBoardingStack.insertArrangedSubview(self.bornTimeStack, at: 0)
297297

298298
self.bornTimeStack.snp.makeConstraints {
@@ -564,19 +564,19 @@ extension OnboardingViewController: UITextFieldDelegate {
564564

565565
return true
566566
}
567-
567+
568568
private func setupDismissKeyboardGesture() {
569-
let tapGesture = UITapGestureRecognizer(
570-
target: self,
571-
action: #selector(dismissKeyboard)
572-
)
573-
tapGesture.cancelsTouchesInView = false
574-
view.addGestureRecognizer(tapGesture)
575-
}
569+
let tapGesture = UITapGestureRecognizer(
570+
target: self,
571+
action: #selector(dismissKeyboard)
572+
)
573+
tapGesture.cancelsTouchesInView = false
574+
view.addGestureRecognizer(tapGesture)
575+
}
576576

577-
@objc private func dismissKeyboard() {
578-
view.endEditing(true)
579-
}
577+
@objc private func dismissKeyboard() {
578+
view.endEditing(true)
579+
}
580580
}
581581

582582
// MARK: radioButtonDelegate

Feature/Setting/Sources/EditPage/EditProfileViewController.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -568,17 +568,17 @@ extension EditProfileViewController: UITextFieldDelegate {
568568

569569
return true
570570
}
571-
571+
572572
private func setupDismissKeyboardGesture() {
573-
let tapGesture = UITapGestureRecognizer(
574-
target: self,
575-
action: #selector(dismissKeyboard)
576-
)
577-
tapGesture.cancelsTouchesInView = false
578-
view.addGestureRecognizer(tapGesture)
579-
}
573+
let tapGesture = UITapGestureRecognizer(
574+
target: self,
575+
action: #selector(dismissKeyboard)
576+
)
577+
tapGesture.cancelsTouchesInView = false
578+
view.addGestureRecognizer(tapGesture)
579+
}
580580

581-
@objc private func dismissKeyboard() {
582-
view.endEditing(true)
583-
}
581+
@objc private func dismissKeyboard() {
582+
view.endEditing(true)
583+
}
584584
}

Feature/Setting/Sources/MyPage/MyPageViewModel.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
// Created by ttozzi on 7/29/25.
66
//
77

8+
import Auth
89
import Base
910
import Combine
1011
import DIInjector
1112
import Foundation
1213
import Lib
1314
import UIKit
14-
import Auth
1515

1616
public final class MyPageViewModel {
1717

@@ -37,13 +37,13 @@ public final class MyPageViewModel {
3737
private var cancellables = Set<AnyCancellable>()
3838

3939
public init() {
40-
userDataManager.getPublisher()
41-
.sink { [weak self] _ in
42-
guard let self else { return }
43-
self.fetchUser()
44-
self.output.showToast.send()
45-
}
46-
.store(in: &cancellables)
40+
userDataManager.getPublisher()
41+
.sink { [weak self] _ in
42+
guard let self else { return }
43+
self.fetchUser()
44+
self.output.showToast.send()
45+
}
46+
.store(in: &cancellables)
4747
}
4848

4949
func send(input: Input) {
@@ -56,7 +56,7 @@ public final class MyPageViewModel {
5656
guard let self else { return }
5757
self.router.navigate(
5858
to: SettingRoute.editProfile, how: .push(hidesBottomBarWhenPushed: true),
59-
with: [: ])
59+
with: [:])
6060
}
6161
case .feedBackButtonTapped:
6262
if let url = URL(string: ExternalLinks.feedbackChannel.rawValue) {

Feature/Setting/Sources/SettingRouter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class SettingRouter: Routable {
3838
{
3939
timePickerVC.delegate = delegate
4040
}
41-
}
41+
}
4242
manageViewController(viewController, how: how)
4343
}
4444
}

0 commit comments

Comments
 (0)