Bump activesupport from 6.1.7.1 to 6.1.7.3 (#45)
Bumps activesupport from 6.1.7.1 to 6.1.7.3.
updated-dependencies:
- dependency-name: activesupport dependency-type: indirect …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
FontBlaster
Programmatically load custom fonts into your iOS, macOS, and tvOS app.
About
Say goodbye to importing custom fonts via property lists as FontBlaster automatically imports and loads all fonts in your app’s Bundles with one line of code.
Features
Bundle.main
Installation Instructions
CocoaPods
Swift Package Manager
Manual
FontBlaster.swift
into your project.Setup
Typically, all fonts are automatically found in
Bundle.main
. Even if you have a custom bundle, it’s usually lodged inside of themainBundle.
Therefore, to load all the fonts in your application, irrespective of the bundle it’s in, simply call:If you are loading from a bundle that isn’t found inside your app’s
mainBundle
, simply pass a reference to yourBundle
in theblast(_:)
method:If you need a list of all of the loaded fonts, an overloaded version of the
blast(_:)
method has a completion handler that returns just that. Just like the original method, this method takes either a customBundle
or defaults toBundle.main
if no argument is passed.To turn on console debug statements, simply set
debugEnabled() = true
before calling eitherblast()
method:Sample Project
A Sample iOS project is included in the repo. When you launch the app, all fonts are configured to load custom fonts, but don’t actually display them until you push the button on the navigation bar. After pushing the button, FontBlaster imports your fonts and redraws the view.
Inspiration
This project builds upon an old solution that Marco Arment proposed and wrote about on his blog.
Created and maintained by
Arthur Ariel Sabintsev