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
BonMot is a Swift attributed string library

BonMot (pronounced Bon Mo, French for good word) is a Swift attributed string library. It abstracts away the complexities of the iOS, macOS, tvOS, and

Rightpoint 3.3k Sep 16, 2022
👩‍🎨 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.8k Sep 19, 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

Daniel 15 Oct 16, 2021
Dice roller, character sheet/ creator, and monster/item info app on the iphone12

DnD-LordDogMaw This file will be the start of a side project in the hopes of creating an iphone12 app for Dungeons and Dragons! This app will have 3 m

Paige Guajardo 2 Sep 17, 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

Kostya 17 Dec 21, 2019
KIEM - Open Source Library, converting mistyped Korean string into English string

KIEM Open Source Library, converting misspelled Korean string into English strin

Samuel Kim 1 Feb 18, 2022
µ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 Sep 1, 2022
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 428 Sep 9, 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 Sep 20, 2022
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 Sep 12, 2022
Declarative Swift framework for Attributed Role-based Access Control management

Koosa Declarative Swift framework for Attributed Role-based Access Control management Check out this blog post for full explanation and more details:

Mostafa Abdellateef 36 Dec 23, 2021
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 27 Jan 10, 2020
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
(Animate CSS) animations for iOS. An easy to use library of iOS animations. As easy to use as an easy thing.

wobbly See Wobbly in action (examples) Add a drop of honey ?? to your project wobbly has a bunch of cool, fun, and easy to use iOS animations for you

Sagaya Abdulhafeez 150 Dec 23, 2021
(Animate CSS) animations for iOS. An easy to use library of iOS animations. As easy to use as an easy thing.

wobbly See Wobbly in action (examples) Add a drop of honey ?? to your project wobbly has a bunch of cool, fun, and easy to use iOS animations for you

Sagaya Abdulhafeez 150 Dec 23, 2021
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

SwiftGen SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them ty

null 8.2k Sep 21, 2022
Convenience methods for creating color using RGBA hex string.

UIColor+Hex, now Swift. Convenience method for creating autoreleased color using RGBA hex string.

R0CKSTAR 1.2k Sep 19, 2022