Easy Attributed String Creator

Last update: Apr 30, 2022

Build Status

The main idea of this project is to have an online tool to be able to visually add formatting to a text and get back a swift and/or objective-c code to reproduce that formating.

Working App

Sample

Static-Sample

Modules

To Do

Please if you feel like sending a PR you are more than welcome to do it! The way the app is built is pretty simple and if you need some help to get started feel free to get in touch with me!

  • Basic structure and design.
  • Be able to drag and drop custom fonts to be used.
  • Use numbers for text size instead of clases.
  • Optimization of code generated when multiple lines with same format,
  • Keep supporting more formats! Or even for Cocoa?

Usage

  • Install dependencies:
npm install
  • Start a server listening on localhost:3000 to preview the project:
npm start
  • Compile
npm run-script build
  • Test
npm test

GitHub

https://github.com/andresinaka/Transformer
Comments
  • 1. Not an Issue, But a Compliment, Comment, and Question

    Very clever! Reminds me of PaintCode.

    Here is how I solve this problem. Basically, I interpret special characters like ^ as formatting, similar to Markdown. The code is in the infoString property.

    https://github.com/vermont42/Conjugar/blob/master/Conjugar/StringExtensions.swift

    On a related note, I am curious whether you use the same vos conjugations as the Real Academia Española. I used their conjugations in my app, but Wikipedia’s voseo article says that vos conjugations vary by country.

    Reviewed by vermont42 at 2018-02-07 16:28
  • 2. Show message when "Copy" button is pressed to show feedback to user that it was copied

    When clicking the "copy" button there is no feedback to the user showing that the code was successfully copied. It would be nice to show a hint like this:

    screen shot 2017-11-29 at 11 54 49
    Reviewed by andresinaka at 2017-11-29 10:57
  • 3. Updated attributeName at SwiftTranslator for Swift 4.2 notation

    • Updated attributeName value from NSAttributedStringKey to NSAttributedString.Key

    Input:

    This is an attributed string

    Generated code before change

    Captura de Tela 2020-05-18 às 10 43 54 Error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'

    Generated code after change

    Captura de Tela 2020-05-18 às 10 44 04

    Reviewed by tfmart at 2020-05-18 13:53
  • 4. Dot is missing in NSAttributedString.Key

    When we add attributes in the Transformer it gives NSAttributedStringKey as an editor but we need NSAttributedString.Key do is missing between NSAttributedString and key.

    Reviewed by anubhavpulkit at 2020-05-01 08:44
  • 5. Add NSMutableParagraphStyle lineSpacing support

    The distance in points between the bottom of one line fragment and the top of the next.

    https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1528742-linespacing

    Reviewed by andresinaka at 2017-12-07 10:59
👩‍🎨 Elegant Attributed String composition in Swift sauce
👩‍🎨 Elegant Attributed String composition in Swift sauce

Elegant Attributed String composition in Swift sauce SwiftRichString is a lightweight library which allows to create and manipulate attributed strings

Jun 20, 2022
More powerful label, attributed string builder and text parser.

DDText More powerful label, attributed string builder and text parser. DDLabel More powerful label than UILabel, using TextKit. It supports features b

Oct 16, 2021
Swift String Validator. Simple lib for ios to validate string and UITextFields text for some criterias

Swift String validator About Library for easy and fastest string validation based on сciterias. Instalation KKStringValidator is available through Coc

Dec 21, 2019
µframework for Attributed strings.

Attributed µframework for Attributed strings. What is Attributed? Attributed aims to be a drop in replacement to the current version of the NSAttribut

May 24, 2022
Easiest way to create an attributed UITextView (with support for multiple links and from html)
Easiest way to create an attributed UITextView (with support for multiple links and from html)

AttributedTextView Easiest way to create an attributed UITextView (with support for multiple links and html). See the demo app and the playground for

May 3, 2022
A Swifty API for attributed strings

SwiftyAttributes A Swifty API for attributed strings. With SwiftyAttributes, you can create attributed strings like so: let fancyString = "Hello World

Jun 23, 2022
Texstyle allows you to format iOS attributed strings easily.
Texstyle allows you to format iOS attributed strings easily.

Texstyle allows you to format attributed strings easily. Features Applying attributes with strong typing and autocompletion Cache for attributes Subst

Apr 21, 2022
An easier way to compose attributed strings
An easier way to compose attributed strings

TextAttributes makes it easy to compose attributed strings. let attrs = TextAttributes() .font(name: "HelveticaNeue", size: 16) .foregroundCol

Jun 12, 2022
A simple library for building attributed strings, for a more civilized age.

Veneer A simple library for building attributed strings, for a more civilized age. Veneer was created to make creating attributed strings easier to re

Jan 10, 2020
A quick helper for setting attributed texts to UILabel.
A quick helper for setting attributed texts to UILabel.

UILabelAttributedTextHelper A quick helper for setting attributed texts to UILabel. Sample usage: label.setAttributedText( leadingText: "H

Feb 9, 2022
Easy string decoration with styles
Easy string decoration with styles

StyleDecorator Design string simply by linking attributes. Example Create Decorator with specific Style and link it at the end of needed string or wra

Nov 4, 2021
Croc is a swift emoji string parsing library
Croc is a swift emoji string parsing library

Croc is a library for parsing emojis on iOS. It provides a simple and lightweight interface for detecting, generating, categorizing and managing emoji characters, making emoji-powered features an easy task for developers.

Jan 29, 2022
Great Swift String Pluralize Extension

Pluralize.swift Great Swift String Pluralize Extension case-insensitive tons of rules for irregular nouns (plural form) supports uncountable nouns all

Apr 12, 2022
A comprehensive, lightweight string extension for Swift

SwiftString SwiftString is a lightweight string extension for Swift. This library was motivated by having to search StackOverflow for common string op

May 29, 2022
String (and more) validation for iOS

Swift Validators ?? String validation for iOS. Contents Installation Walkthrough Usage Available validators License ReactiveSwift + SwiftValidators Wa

Jun 24, 2022
🌍⏩📄 Convert ISO8859 1-16 Encoded Text to String in Swift. Supports iOS, tvOS, watchOS and macOS.

ISO8859 Convert ISO8859 1-16 Encoded Text to String in Swift. Usage let encoding = ISO8859.part1 let string = String([...], iso8859Encoding: encoding)

Nov 12, 2020
A Cross-Platform String and Regular Expression Library written in Swift.

Guitar ?? A Cross-Platform String and Regular Expression Library written in Swift. About This library seeks to add common string manipulation function

May 29, 2022
Swift emoji string parsing library
Swift emoji string parsing library

Croc is a library for parsing emojis on iOS. It provides a simple and lightweight interface for detecting, generating, categorizing and managing emoji

Sep 27, 2021