Easy Attributed String Creator

Overview

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
Comments
  • Not an Issue, But a Compliment, Comment, and Question

    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.

    opened by vermont42 1
  • Show message when

    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 help wanted good first issue beginner 
    opened by andresinaka 0
  • Updated attributeName at SwiftTranslator for Swift 4.2 notation

    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

    opened by tfmart 0
  • Dot is missing in NSAttributedString.Key

    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.

    opened by anubhavpulkit 0
  • Add NSMutableParagraphStyle lineSpacing support

    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

    help wanted good first issue 
    opened by andresinaka 0
👩‍🎨 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

Daniele Margutti 2.9k Jan 5, 2023
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

Daniel 16 Nov 8, 2022
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

Kostya 17 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

Nicholas Maccharoli 754 Jan 9, 2023
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

Edwin Vermeer 430 Nov 24, 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

Eddie Kaiger 1.5k Jan 5, 2023
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

Rosberry 79 Sep 9, 2022
An easier way to compose attributed strings

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

Damien 2.2k Dec 31, 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

Wess Cope 26 Dec 27, 2022
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

Glenn Posadas 5 Aug 24, 2022
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

Dmytro Pylypenko 15 Nov 4, 2021
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.

Joe Kalash 127 Nov 20, 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

Joshua Arvin Lat 193 Nov 8, 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

Andrew Mayne 1.6k Dec 30, 2022
String (and more) validation for iOS

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

George Kaimakas 241 Nov 13, 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)

Devran Cosmo Uenal 18 Jan 2, 2023
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

Arthur Ariel Sabintsev 659 Dec 27, 2022
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

Joe Kalash 125 Sep 27, 2021