Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 2.14 KB

README.md

File metadata and controls

55 lines (41 loc) · 2.14 KB

SwiftUIFontSettingsView

SwiftUIFontSettingsView

SwiftUIFontSettingsView is a simple but highly customizable SwiftUI view that allows you to effortlessly configure font settings for your iOS applications. With this open-source library, you can easily adjust font color, font name, font style, and font size, providing a seamless user experience for your app's typography.

Features

  • Color Customization: Change the font color to match your app's branding or user preferences.
  • Font Name Selection: Choose from a wide range of font families to find the perfect typographic style for your application.
  • Font Style Configuration: Easily toggle between different font styles, such as bold, italic, or regular, to create visually appealing text elements.
  • Font Size Adjustment: Provide users with the ability to increase or decrease the font size according to their reading preferences or accessibility needs.
  • Intuitive User Interface: SwiftUIFontSettingsView offers a sleek and user-friendly interface, making it easy for users to explore and customize font settings.

Requirements

  • iOS 16.1+

Install

Swift Packages

Usage

@State private var fontSettings: FontSettings = FontSettings()
...
FontSettingsView(fontSettings: $fontSettings)

...

FontSettingsView(fontSettings: $fontSettings, showExtraTopContent: true, topContentBuilder:  {
    // some view here
})

...
FontSettingsView(fontSettings: $fontSettings, showExtraBottomContent: true, bottomContentBuilder:  {
    // some view here
})

Demos

Demo Font List Font Settings

License

SwiftUIFontSettingsView is released under the MIT License.

Credit

Font icons created by Vector Clans - Flaticon