Skip to content

Commit

Permalink
Update SettingsVC.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanmakeen committed Oct 3, 2024
1 parent d2d45b8 commit a9f26a4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ final class SettingsVC: UIViewController {

private func setupViews() {
let stackView = UIStackView()
stackView.addSubview(disconnectButton)
stackView.addSubview(logoutButton)
stackView.axis = .vertical
stackView.addArrangedSubview(disconnectButton)
stackView.addArrangedSubview(logoutButton)

self.view.addSubview(headerTitle)
self.view.addSubview(tableView)
Expand All @@ -100,7 +101,6 @@ final class SettingsVC: UIViewController {
}

stackView.snp.makeConstraints {
$0.height.equalTo(72)
$0.leading.trailing.equalToSuperview()
$0.bottom.equalTo(view.safeAreaInsets).offset(-16)
}
Expand Down Expand Up @@ -137,8 +137,8 @@ final class SettingsVC: UIViewController {
private func updateLogoutButtonVisibility() {
// show logout button only if we are not signed in
DispatchQueue.main.async {
self.logoutButton.isHidden = UserDefaultsHelper.getAppState() != .loggedIn
self.disconnectButton.isHidden = UserDefaultsHelper.getAppState() != .customAWSConnected
//self.logoutButton.isHidden = UserDefaultsHelper.getAppState() != .loggedIn
//self.disconnectButton.isHidden = UserDefaultsHelper.getAppState() != .customAWSConnected
}
}
}
Expand Down

0 comments on commit a9f26a4

Please sign in to comment.