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

Commit

Permalink
Merge pull request #42 from giffnyc/objCCompatible
Browse files Browse the repository at this point in the history
Changed name of Objective-C compatible preview method wrapper to reso…
  • Loading branch information
LeonardoCardoso authored Mar 13, 2017
2 parents 6c710cd + 5e5a1ab commit bf6e7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftLinkPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ open class SwiftLinkPreview : NSObject {
images

*/
@objc @discardableResult open func preview(_ text: String!, onSuccess: @escaping (Dictionary<String, Any>) -> Void, onError: @escaping (NSError) -> Void) -> Cancellable {
@objc @discardableResult open func previewLink(_ text: String!, onSuccess: @escaping (Dictionary<String, Any>) -> Void, onError: @escaping (NSError) -> Void) -> Cancellable {

func success (_ result : Response) -> Void {
var ResponseData = [String : Any]()
Expand Down

0 comments on commit bf6e7a6

Please sign in to comment.