Skip to content

Commit

Permalink
change(ios): better early-exit if all font data found
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Horton committed Aug 16, 2024
1 parent e28d8a3 commit 289dda0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ public class FontManager {
var fontsToFind = fontNames

UIFont.familyNames.forEach { familyName in
if fontsToFind.count == 0 {
return
}

let familyFonts = UIFont.fontNames(forFamilyName: familyName)

for font in familyFonts {
Expand Down

0 comments on commit 289dda0

Please sign in to comment.