Skip to content

Commit

Permalink
Fix some view lifecycle inconsistencies (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Jun 20, 2023
2 parents 7bd9e30 + 4ccf425 commit 232634e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _None._
### Bug Fixes
_None._
- Fix a `viewWillDisappear` method calling `super.viewWillAppear` [#40]
### Internal Changes
Expand Down
1 change: 1 addition & 0 deletions Sources/Capabilities/Filters/MediaEditorFilters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class MediaEditorFilters: UIViewController {
private var selectedFilterIndex = IndexPath(row: 0, section: 0)

override func viewDidLoad() {
super.viewDidLoad()
imageView.image = image
filtersCollectionView.dataSource = self
filtersCollectionView.delegate = self
Expand Down
2 changes: 1 addition & 1 deletion Sources/MediaEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ open class MediaEditor: UINavigationController {
}

public override func viewWillDisappear(_ animated: Bool) {
super.viewWillAppear(animated)
super.viewWillDisappear(animated)
currentCapability = nil
}

Expand Down

0 comments on commit 232634e

Please sign in to comment.