Skip to content

Commit

Permalink
Update Zotero/Scenes/Detail/SingleCitation/Views/CitationAuthorConten…
Browse files Browse the repository at this point in the history
…tView.swift

Co-authored-by: Miltiadis Vasilakis <[email protected]>
  • Loading branch information
michalrentka and mvasilak authored Feb 13, 2024
1 parent a730dd8 commit 5545825
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class CitationAuthorContentView: UIView {
addSubview(title)
titleLabel = title

let action = UIAction { [weak self] _ in
self?.omitAuthorChanged?(self?.toggle.isOn ?? false)
let action = UIAction { [weak self] action in
self?.omitAuthorChanged?((action.sender as? UISwitch)?.isOn ?? false)
}
let toggle = UISwitch()
toggle.translatesAutoresizingMaskIntoConstraints = false
Expand Down

0 comments on commit 5545825

Please sign in to comment.