BonMot – Open Source Library Providing Easy Advanced Text Formatting For Attributed Strings

BonMot is an open source library from Raizlabs for working with attributed strings making it easy to utilize advanced typography with your attributed strings.

BonMot provides a clean, chainable syntax for working with advanced text features including, fonts, coloring, alignment, text formatting, inline images, and more.

This snippet from the readme shows how one could format text using BonMot:

let quote = "I used to love correcting people’s grammar until" +
            "I realized what I loved more was having friends.\n" +
            "-Mara Wilson"

// line-wrapped for readability
let attributedString = BONChain()
    .lineHeightMultiple(1.2)
    .fontNameAndSize("AmericanTypewriter", 17.0)
    .string(quote)
    .attributedString   // You can also query .attributes
                        // and get back a dictionary of attributes

You can find BonMot on Github here.

A great library for easy text formatting.

Original article: BonMot – Open Source Library Providing Easy Advanced Text Formatting For Attributed Strings

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

BonMot – Open Source Library Providing Easy Advanced Text Formatting For Attributed Strings

BonMot is an open source library from Raizlabs for working with attributed strings making it easy to utilize advanced typography with your attributed strings.

BonMot provides a clean, chainable syntax for working with advanced text features including, fonts, coloring, alignment, text formatting, inline images, and more.

This snippet from the readme shows how one could format text using BonMot:

let quote = "I used to love correcting people’s grammar until" +
            "I realized what I loved more was having friends.\n" +
            "-Mara Wilson"

// line-wrapped for readability
let attributedString = BONChain()
    .lineHeightMultiple(1.2)
    .fontNameAndSize("AmericanTypewriter", 17.0)
    .string(quote)
    .attributedString   // You can also query .attributes
                        // and get back a dictionary of attributes

You can find BonMot on Github here.

A great library for easy text formatting.

Original article: BonMot – Open Source Library Providing Easy Advanced Text Formatting For Attributed Strings

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Segmentio – Swift Based Segmented Navigation Control With Image Support

Segmentio is an open source Swift based UI component from Yalantis providing a scrolling segmented control with both images and labels.

Segmentio can appear on both the top or the bottom of the display, allows for full color customization, and customization of the spacing between selections.

Here’s an animation from the readme showing Segmentio in action:

Segmentio

You can find SegmentIO on Github here.

An elegant segmented control.

Original article: Segmentio – Swift Based Segmented Navigation Control With Image Support

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Segmentio – Swift Based Segmented Navigation Control With Image Support

Segmentio is an open source Swift based UI component from Yalantis providing a scrolling segmented control with both images and labels.

Segmentio can appear on both the top or the bottom of the display, allows for full color customization, and customization of the spacing between selections.

Here’s an animation from the readme showing Segmentio in action:

Segmentio

You can find SegmentIO on Github here.

An elegant segmented control.

Original article: Segmentio – Swift Based Segmented Navigation Control With Image Support

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.