Skip to content

Commit

Permalink
Update EditNoticesViewController to conform to `ThemeableViewContro…
Browse files Browse the repository at this point in the history
…ller`.
  • Loading branch information
staykids committed Feb 9, 2023
1 parent 525771b commit 0da7a9f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Wikipedia/Code/EditNoticesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ protocol EditNoticesViewControllerDelegate: AnyObject {
func editNoticesControllerUserTapped(url: URL)
}

class EditNoticesViewController: ViewController {
class EditNoticesViewController: ThemeableViewController {

// MARK: - Properties

Expand All @@ -20,7 +20,8 @@ class EditNoticesViewController: ViewController {

init(theme: Theme, viewModel: EditNoticesViewModel) {
self.viewModel = viewModel
super.init(theme: theme)
super.init(nibName: nil, bundle: nil)
self.theme = theme
}

required init?(coder aDecoder: NSCoder) {
Expand All @@ -30,9 +31,6 @@ class EditNoticesViewController: ViewController {
override func loadView() {
let editNoticesView = EditNoticesView(frame: UIScreen.main.bounds)
view = editNoticesView
scrollView = editNoticesView.scrollView
scrollView?.automaticallyAdjustsScrollIndicatorInsets = false

editNoticesView.configure(viewModel: viewModel, theme: theme)

editNoticesView.doneButton.addTarget(self, action: #selector(dismissView), for: .primaryActionTriggered)
Expand Down

0 comments on commit 0da7a9f

Please sign in to comment.