LeonardoCardoso / SwiftLinkPreview

It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
https://leocardz.com/swift-link-preview-5a9860c7756f
MIT License
1.37k stars 196 forks source link

fix/session-delegate #160

Open lhunath opened 2 years ago

lhunath commented 2 years ago

Fixed f84740e01002e6806c03984b19bef0bb2d85e893

SwiftLinkPreview destroys and recreates the URLSession, causing the user to lose control over the session he gave to SwiftLinkPreview (ie. his delegate will stop working & his session invalidation will be ignored).

lhunath commented 2 years ago

this PR is based on #159. The only commit in this PR that is relevant is f84740e01002e6806c03984b19bef0bb2d85e893