Skip to content

Commit

Permalink
Merge pull request #486 from pennlabs/jhawk0224/fix-dynamic-tabs-bug
Browse files Browse the repository at this point in the history
Fix dynamic tabs drag bug
  • Loading branch information
anli5005 authored Oct 20, 2023
2 parents c81d45e + 1c5b1b8 commit e7ab4d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PennMobile/More Tab/MoreViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ extension MoreViewController {
}
} else if indexPath.row == 2 {
if let cell = tableView.dequeueReusableCell(withIdentifier: "more") as? MoreCell {
cell.setUpView(with: "Preferences")
cell.setUpView(with: "Select Features")
cell.backgroundColor = .uiGroupedBackgroundSecondary
cell.accessoryType = .disclosureIndicator
return cell
Expand Down
1 change: 1 addition & 0 deletions PennMobile/Preferences/PreferencesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct PreferencesView: View {
Text("Choose which features appear in the tab bar. The remaining ones can still be found on the More tab.")
}
}
.id(UUID())
.environment(\.editMode, Binding.constant(EditMode.active))
}
.onAppear {
Expand Down
4 changes: 2 additions & 2 deletions PennMobile/Preferences/PreferencesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PreferencesViewController: GenericViewController {
let hostingView = UIHostingController(rootView: PreferencesView())

view.backgroundColor = .uiBackground
self.screenName = "Preferences SwiftUI"
self.screenName = "Select Features"

addChild(hostingView)
view.addSubview(hostingView.view)
Expand All @@ -31,7 +31,7 @@ class PreferencesViewController: GenericViewController {

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
self.title = "Preferences"
self.title = "Select Features"
}
}

0 comments on commit e7ab4d6

Please sign in to comment.