Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Annotate cancel an @objc method
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoCardoso committed Sep 23, 2021
1 parent 8cc3827 commit 5ade1de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
- Changed by [benlmyers](https://github.com/benlmyers)
- Updated regex limit [#148](https://github.com/LeonardoCardoso/SwiftLinkPreview/issues/148)
- Changed by [kinhvodoi92](https://github.com/kinhvodoi92)
- Annotated `Cancelable.cancel()` as `@objc` to make it compatibale with Objective-C [#135](https://github.com/LeonardoCardoso/SwiftLinkPreview/issues/135)
- Changed by [LeonardoCardoso](https://github.com/LeonardoCardoso)


## [3.4.0](https://github.com/LeonardoCardoso/Swift-Link-Preview/releases/tag/3.4.0)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftLinkPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public enum SwiftLinkResponseKey: String {
open class Cancellable: NSObject {
public private(set) var isCancelled: Bool = false

open func cancel() {
@objc open func cancel() {
isCancelled = true
}
}
Expand Down

0 comments on commit 5ade1de

Please sign in to comment.