Skip to content

Commit

Permalink
[Feat] sopt-makers#161 - 네비게이션 바 색 처리 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
elesahich committed Apr 17, 2023
1 parent de982ef commit 1a73047
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ public final class AppMyPageVC: UIViewController, AppMyPageViewControllable {
private let cancelBag = CancelBag()

// MARK: - Views
private lazy var navigationBar = OPNavigationBar(self, type: .oneLeftButton)
private lazy var navigationBar = OPNavigationBar(
self,
type: .oneLeftButton,
backgroundColor: DSKitAsset.Colors.black100.color
)
.addMiddleLabel(title: I18N.MyPage.navigationTitle)

private let scrollView = UIScrollView()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ public class NicknameEditVC: UIViewController, NicknameEditViewControllable {

// MARK: - UI Components

private lazy var navigationBar = OPNavigationBar(self, type: .oneLeftButton)
private lazy var navigationBar = OPNavigationBar(
self,
type: .oneLeftButton,
backgroundColor: DSKitAsset.Colors.black100.color
)
.addMiddleLabel(title: I18N.Setting.NicknameEdit.nicknameEdit)

private let nicknameTextFieldView = AppTextFieldView(type: .plain)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ public class PrivacyPolicyVC: UIViewController, PrivacyPolicyViewControllable {

// MARK: - UI Components

private lazy var naviBar = OPNavigationBar(self, type: .oneLeftButton)
private lazy var naviBar = OPNavigationBar(
self,
type: .oneLeftButton,
backgroundColor: DSKitAsset.Colors.black100.color
)
.addMiddleLabel(title: I18N.Setting.personalInfoPolicy)

private let textView = UITextView().then {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public class SentenceEditVC: UIViewController, SentenceEditViewControllable {

// MARK: - UI Components

private lazy var naviBar = OPNavigationBar(self, type: .oneLeftButton)
private lazy var naviBar = OPNavigationBar(
self,
type: .oneLeftButton,
backgroundColor: DSKitAsset.Colors.black100.color
)
.addMiddleLabel(title: I18N.Setting.SentenceEdit.sentenceEdit)

private lazy var textView: UITextView = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ public class TermsOfServiceVC: UIViewController, TermsOfServiceViewControllable

// MARK: - UI Components

private lazy var naviBar = OPNavigationBar(self, type: .oneLeftButton)
private lazy var naviBar = OPNavigationBar(
self,
type: .oneLeftButton,
backgroundColor: DSKitAsset.Colors.black100.color
)
.addMiddleLabel(title: I18N.Setting.serviceTerm)

private let textView = UITextView().then {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ public class WithdrawalVC: UIViewController, WithdrawalViewControllable {

// MARK: - UI Components

private lazy var naviBar = OPNavigationBar(self, type: .oneLeftButton)
private lazy var naviBar = OPNavigationBar(
self,
type: .oneLeftButton,
backgroundColor: DSKitAsset.Colors.black100.color
)
.addMiddleLabel(title: I18N.Setting.Withdrawal.withdrawal)

private let cautionLabel = UILabel().then {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class OPNavigationBar: UIView {

// MARK: - Properties

private var vc: UIViewController?
private weak var vc: UIViewController?
private var rightButtonClosure: (() -> Void)?
public var rightButtonTapped: Driver<Void> {
rightButton.publisher(for: .touchUpInside)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

window = UIWindow(frame: scene.coordinateSpace.bounds)
window?.windowScene = scene
let rootVC = container.makeShowAttendanceVC().viewController
// let rootVC = container.makeMainVC(userType: .active).viewController
// let rootVC = container.makeShowAttendanceVC().viewController
// let rootVC = container.makeMainVC(userType: .active).viewController
let rootVC = container.makeAppMyPageVC(userType: .visitor).viewController
window?.rootViewController = UINavigationController(rootViewController: rootVC)
window?.makeKeyAndVisible()
}
Expand Down

0 comments on commit 1a73047

Please sign in to comment.