Skip to content

Commit

Permalink
Document LinkPresentation usage (#2172)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/414235014887631/1205931087930998/f
Tech Design URL:
CC: @ayoy

Description:

This PR adds a comment to the LinkPresentation usage.
  • Loading branch information
samsymons authored Nov 16, 2023
1 parent 5addaa4 commit 743f3fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DuckDuckGo/Favicons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ public class Favicons {
return
}

/// DuckDuckGo Privacy Browser uses built-in functionality from iOS to fetch the highest quality favicons for your bookmarks and favorites.
/// This functionality uses a user agent that is different from other network requests made by the app in order to find the best favicon available.
let metadataFetcher = LPMetadataProvider()
let completion: (LPLinkMetadata?, Error?) -> Void = { metadata, metadataError in
guard let iconProvider = metadata?.iconProvider, metadataError == nil else {
Expand Down

0 comments on commit 743f3fa

Please sign in to comment.