Skip to content

Commit

Permalink
Made attachment.selectRangeInContainer discardableResult
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeep committed Aug 4, 2024
1 parent 1981fa0 commit 6630a27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Proton/Sources/Swift/Attachment/Attachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ open class Attachment: NSTextAttachment, BoundsObserving {
/// Selects attachment range in container `EditorView`. This does not shows attachment itself as selected nor does it makes
/// any changes to first responder. To show attachment as selected, see `setSelected`
/// - Returns: `true` if attachment range was selected, else `false`
@discardableResult
public func selectRangeInContainer() -> Bool {
guard let container = containerEditorView,
let range = rangeInContainer(),
Expand Down

0 comments on commit 6630a27

Please sign in to comment.