This projects shows how we can server-side add/update "ANY" custom font in a live iOS App without needing to update the app.

Overview

Server-side-Dynamic-Fonts

This projects shows how we can server-side add/update "ANY" custom font in a live iOS App without needing to update the app.

Inspiration

We see in Web Development, How easy it is to update fonts in our website by just pasting a link from Google Fonts. I've tried to replicate the same effect but in an iOS App.

Advantage

By this method, we can update the fonts of our live iOS apps unto any font without the need to updare the app by the users!

Steps to use

  1. Use a fixed API endpoint to recieve a link to download any new font file (fileFormat: .tff). Here, I've used GitHub to host my fixed endpoint json https://artistsamyak.github.io/CSS-MySite/CustomFont.json
  2. Use the FileDownloader.swift class do download the new font file from recieved URL and save into FileManager. Here, I'm searching for a font to add on Google Fonts and looking for it's URL in "AllGoogleFonts.doc". I took these from Google Fonts Developer API.
  3. From the font file path, call the "getFont" method to register the new font and return it.
  4. apply the font changes into UI Elements whereever required.
You might also like...
Use FontAwesome in your Swift projects
Use FontAwesome in your Swift projects

FontAwesome.swift Use Font Awesome in your Swift projects To see the complete set of 3,978 icons in Font Awesome 5, please check the FontAwesome.com s

Use Ionicons in your Swift projects.
Use Ionicons in your Swift projects.

IoniconsKit IoniconsKit internally use ionicons.ttf v2.0.1 Example To run the example project, clone the repo, and run pod install from the Example di

Use Octicons in your Swift projects.
Use Octicons in your Swift projects.

OcticonsKit OcticonsKit internally use octicons.ttf v4.3.0 Example To run the example project, clone the repo, and run pod install from the Example di

Programmatically load custom fonts into your iOS and tvOS app.

FontBlaster Programmatically load custom fonts into your iOS and tvOS app. About Say goodbye to importing custom fonts via property lists as FontBlast

An inkwell to use custom fonts on the fly.
An inkwell to use custom fonts on the fly.

Inkwell Introduction In brief, Inkwell is a font library to use custom fonts on the fly. Inkwell takes responsibilities for: Downloading fonts from Go

SwiftUI Custom Fonts with working Xcode Previews

SwiftUI Custom Fonts with working Xcode Previews This is a small SwiftUI only app that demonstrates how to use custom fonts, where the custom fonts ar

A better choice for iOS Developer to use FontAwesome Icon with UI.😍
A better choice for iOS Developer to use FontAwesome Icon with UI.😍

FontAwesomeKit.Swift πŸ˜€ 😘 A better choice for iOS Developer to use FontAwesome Icon with UI. 😍 Support Swift 4.2 & iOS 8.0+ FontAwesome 4.7.0 Storyb

Use 1600+ icons (and more!) from FontAwesome and Google Material Icons in your swift/iOS project in an easy and space-efficient way!
Use 1600+ icons (and more!) from FontAwesome and Google Material Icons in your swift/iOS project in an easy and space-efficient way!

Swicon Use 1600+ icons from FontAwesome and Google Material Icons in your iOS project in an easy and space-efficient way! The built-in icons are from

Pretendard Fonts for iOS (Swift Package Manager)
Pretendard Fonts for iOS (Swift Package Manager)

PretendardKit Pretendard 1.3.3 을 기반으둜 ν•©λ‹ˆλ‹€. Install (Swift Package Manager) dependencies: [ .package(url: "https://github.com/wookeon/PretendardKit

Owner
Full-Stack Developer - I (iOS)
null
OS font complements library. Localized font supported.

SwiftFontName SwiftFontName is font name complements and supports localized font library. You don't need to search font name any more with SwiftFontNa

Morita Naoki 114 Nov 3, 2022
Font management (System & Custom) for iOS and tvOS

UIFontComplete Font management (System & Custom) for iOS and tvOS Usage No more wasted time searching for names of UIFont fonts and no more surprises

Nicholas Maccharoli 1.3k Nov 14, 2022
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon)

Installation SPM Not yet supported. Please use Cocoapods or Carthage Carthage github "0x73/SwiftIconFont" Cocoapods CocoaPods is a dependency manager

sedat çiftçi 1.1k Dec 14, 2022
Auto-generated icon font library for iOS, watchOS and tvOS

Iconic helps making icon fonts integration effortless on iOS, tvOS and watchOS. Its main component is in charge of auto-generating strongly typed Swif

Home Assistant 1.6k Nov 12, 2022
Google Material Design Icons Font for iOS

GoogleMaterialDesignIcons #Google Material Design Icons Font for iOS It is based on https://github.com/google/material-design-icons. it converts the m

Yuji Hato 365 Oct 19, 2022
Font Awesome swift library for iOS.

Font Awesome Swift Follow me: @vaberer I like β˜…. Do not forget to β˜… this super convenient library. Added UISegmentedControl & UITabbarItem & UISlider

Patrick Vaberer 746 Dec 17, 2022
OpenSansSwift - Easily use the OpenSans font in Swift.

OpenSansSwift Easily use the OpenSans font in Swift. Why use OpenSansSwift frameworks ? The usual process of embedding any custom fonts in your IOS ap

Hemant Sapkota 42 Jan 29, 2022
🎒 Swift Library for Font Icons

Swift Library for Font Icons Please β˜… this library. Now, you don't have to download different libraries to include different font icons. This SwiftIco

Saurabh Rane 781 Dec 6, 2022
SwiftUIFontIcon The easiest way to implement font icons in your SwiftUI project.

SwiftUIFontIcon The easiest way to implement font icons in your SwiftUI project. Usage The library is super super easy to use, just something like thi

Bui Dac Huy 81 Dec 27, 2022
Font Awesome support in Swift

MCFontAwesome Font Awesome v4.1.0 for Swift Font aliases has not been ported yet, in order to refer to a font you have to strip all the - (minus) insi

Matteo Crippa 19 Jun 9, 2020