Swiftpack.co - Package - andresilvagomez/RockFont

RockFont (Beta)

Carthage compatible codecov.io CocoaPods Build Status Language GitHub license Awesome

RockFont is a framework written in swift to change easier and fast all fonts in your app.


Features

  • [x] Change your all Fonts in your app with one line.
  • [x] List all avaiable fonts.

Requirements

  • iOS 9.0+
  • Xcode 8.0+
  • Swift 3.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build RockFont 1.+.

To integrate RockFont into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'RockFont' , '~> 0.0.2'
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate RockFont into your Xcode project using Carthage, specify it in your Cartfile:

github "andresilvagomez/RockFont"

Run carthage update to build the framework and drag the built RockFont.framework into your Xcode project.

Swift Pacakge Manager

The Swift Pacakage Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding RockFont as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .Package(url: "https://github.com/andresilvagomez/RockFont.git")
]

Usage

Please include your fonts in your app, tutorial here

Add these lines in your app delegate and it's all enjoy your font.


import RockFont


RockFont.setDefaultFont("Montserrat")

Please keep in the storyboard the system font, It will change all fonts for your expected, but for example is you modify the style, It will change the font with this style.

For example if you have in your storyboard System Semibold 17.0 the result is Montserrat Semibold 17.0

If your font don't have a Semibold or you don't include this it will use the default Montserrat 17.0


Credits

Andres Silva Gomez

License

RockFont is released under the MIT license. See LICENSE for details.

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

0.0.2 - Nov 1, 2018

  • Support for large titles
  • Support for segment controls

0.0.1 - May 1, 2018

  • Release Beta version.
  • List all available fonts.
  • List available fonts by family name.
  • Upgrade the current font.