All Projects → downtownjakebrown → SwiftyIllustrator

downtownjakebrown / SwiftyIllustrator

Licence: MIT License
A tool for quickly converting Adobe Illustrator shapes into SwiftUI code.

Programming Languages

swift
15916 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to SwiftyIllustrator

SwiftUI-App
This swiftUI Demo is very simple & easy to understand. This swiftUI demo includes On-boarding screens, login screen, forgot password screen, sign up screen, home & logout.
Stars: ✭ 175 (+573.08%)
Mutual labels:  swiftui, swiftui-example, swiftui-demo, swiftui-learning
SwiftUI-learning
SwiftUI视频教程配套代码(SwiftUI+SwiftUI 2.0+SwiftUI 3.0)+SwiftUI macOS+其他
Stars: ✭ 57 (+119.23%)
Mutual labels:  swiftui, swiftui-example, swiftui-learning
RRSettingsKit
A beautiful customizable settings screen created in SwiftUI
Stars: ✭ 118 (+353.85%)
Mutual labels:  swiftui, swiftui-example, swiftui-learning
NYTimes-iOS
🗽 NY Times is an Minimal News 🗞 iOS app 📱 built to describe the use of SwiftSoup and CoreData with SwiftUI🔥
Stars: ✭ 152 (+484.62%)
Mutual labels:  swiftui, swiftui-example, swiftui-learning
Swiftui Tutorials
A code example and translation project of SwiftUI. / 一个 SwiftUI 的示例、翻译的教程项目。
Stars: ✭ 1,992 (+7561.54%)
Mutual labels:  swiftui, swiftui-example, swiftui-animations
brutalism
Battleaxe's component library for Adobe CEP panels
Stars: ✭ 43 (+65.38%)
Mutual labels:  illustrator, adobe-illustrator, adobe
Tasky
Tasky is a task management app made with SwiftUI.
Stars: ✭ 22 (-15.38%)
Mutual labels:  swiftui, swiftui-example, swiftui-learning
CombineUnsplash
A sample project exploring MVVM pattern with SwiftUI/Combine, using Unsplash API (via Picsum.photos API)
Stars: ✭ 25 (-3.85%)
Mutual labels:  swiftui, swiftui-example
ovid-editor
Adobe panel providing the most advanced scripting environment possible -- Typescript, app DOM autocomplete, full I/O features and more
Stars: ✭ 43 (+65.38%)
Mutual labels:  illustrator, adobe
illustrator-scripts
Set of scripts to improve Icons workflow
Stars: ✭ 26 (+0%)
Mutual labels:  illustrator, adobe-illustrator
swiftui-mapkit
SwiftUI meets MapKit
Stars: ✭ 17 (-34.62%)
Mutual labels:  swiftui, swiftui-example
AdvancedList-SwiftUI
MOVED to https://github.com/crelies/AdvancedList | Advanced list with empty, error and loading state implemented with SwiftUI
Stars: ✭ 41 (+57.69%)
Mutual labels:  swiftui, swiftui-example
iOS-SwiftUI-Firebase-Login-Example
Complete Sign up and Sign in Process for iOS SwiftUI - using Firebase Email and Password Authentication.
Stars: ✭ 37 (+42.31%)
Mutual labels:  swiftui, swiftui-example
DarkModeSwitcher
Simple app for overriding light mode per app on macOS (demo for a blog post)
Stars: ✭ 37 (+42.31%)
Mutual labels:  swiftui, swiftui-example
SwiftUI-DesignCode
 SwiftUI-DesignCode is some examples in the process of learning swiftUI 2.0
Stars: ✭ 185 (+611.54%)
Mutual labels:  swiftui, swiftui-example
ios-sketch-elements
iOS SwiftUI starter kit based on Sketch Elements.
Stars: ✭ 34 (+30.77%)
Mutual labels:  swiftui, swiftui-example
adobe-scripting
A guide for learning how to write scripts for use in Adobe Illustrator
Stars: ✭ 145 (+457.69%)
Mutual labels:  adobe-illustrator, adobe-scripting
tca-swiftui-navigation-demo
Demo project that shows how to implement navigation in SwiftUI iOS application using Swift Composable Architecture
Stars: ✭ 75 (+188.46%)
Mutual labels:  swiftui, swiftui-example
swiftui
Discussion forum for SwiftUI
Stars: ✭ 92 (+253.85%)
Mutual labels:  swiftui, swiftui-learning
adobe-discord-rpc
Discord Rich Presence extension for your adobe apps!
Stars: ✭ 383 (+1373.08%)
Mutual labels:  illustrator, adobe

SwiftyIllustrator

A tool for quickly converting Adobe Illustrator shapes into SwiftUI code.

Description

This tool utilizes the built-in scripting of Adobe Illustrator ("AI") to convert shapes drawn with AI into swift code. The included javascript iterates over each point of an AI shape and converts the shape into a series of CGPaths that are wrapped in a SwiftUI view for easy implementation into your XCode project.

Installation

Just grab a copy of this repo.

Usage Outline

  1. Create a custom shape or shapes in the included AI file
  2. Center the custom shape(s) on the artboard
  3. Select the custom shape(s) to be converted to swift code
  4. Run the included javascript using Illustrator's built in scripting (for more info, see Adobe's guide)
  5. Save the script's output text as a .swift file
  6. Import the .swift file into your XCode project
  7. Implement the generated SwiftUI view as you please

Detailed Usage Example

In this example, we'll be converting the SwiftyIllustrator icon (drawn using AI) into a SwiftUI view.

Description Examples Images
To begin, open the included AI file, which has the SwiftyIllustrator icon already drawn on the lone artboard
Select all of the logo elements (e.g., using the Group Selection Tool)
Navigate to AI's built in scripting dialog via File -> Scripts -> Other Script...
Select the included javascript file and run it
Choose a name and destination for the script's output (e.g., "ShapeView.swift")
If successful, you should see the provided alert
Then, add the new .swift file to your XCode project
Open XCode's canvas to preview the new SwiftUI view. You should see a wireframe of the SwiftyIllustrator icon
In the new .swift file, you'll notice a single SwiftUI view comprising the 7 elements of the SwiftyIllustrator icon
Here, in the SwiftUI View, you can change the appearance of the individual shape elements (e.g., adding fills, strokes etc.) as you please, as well as adding animations to the individual elements, to create compelling, dynamic content in pure Swift code!

Caveats

  • To simplify the AI javascript, it is assumed that your artboard and your custom shapes are centered about (x:0, y:0) in AI's coordinate space. You can use your own AI file to run the script, but please take this into consideration. Otherwise, the shapes of your generated SwiftUI view may not be positioned as you'd expect.

Other Info

This project was tested using:

  • Illustrator 24.2
  • XCode 12.2

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

SwiftyIllustrator is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].