From 6630a274227dcca5244db5ce8575bb474e20f255 Mon Sep 17 00:00:00 2001 From: Rajdeep Kwatra Date: Sun, 4 Aug 2024 10:39:02 +1000 Subject: [PATCH] Made attachment.selectRangeInContainer discardableResult --- Proton/Sources/Swift/Attachment/Attachment.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Proton/Sources/Swift/Attachment/Attachment.swift b/Proton/Sources/Swift/Attachment/Attachment.swift index 7be06715..bcc775d2 100644 --- a/Proton/Sources/Swift/Attachment/Attachment.swift +++ b/Proton/Sources/Swift/Attachment/Attachment.swift @@ -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(),