All Projects → ruiaureliano → X Swiftformat

ruiaureliano / X Swiftformat

Licence: other
X-SwiftFormat extension for Xcode

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to X Swiftformat

Brisk
A proof of concept scripting library for Swift
Stars: ✭ 478 (-14.03%)
Mutual labels:  xcode
Swiftmockgeneratorforxcode
An Xcode extension (plugin) to generate Swift test doubles automatically.
Stars: ✭ 522 (-6.12%)
Mutual labels:  xcode
Xcodeway
⛵️ An Xcode Source Editor Extension that helps navigating to many places easier
Stars: ✭ 530 (-4.68%)
Mutual labels:  xcode
Xctesthtmlreport
Xcode-like HTML report for Unit and UI Tests
Stars: ✭ 489 (-12.05%)
Mutual labels:  xcode
Playalways
Create Xcode playgrounds from your menu bar
Stars: ✭ 515 (-7.37%)
Mutual labels:  xcode
Clipy
Clipboard extension app for macOS.
Stars: ✭ 5,574 (+902.52%)
Mutual labels:  xcode
Ttsegmentedcontrol
An elegant, animated and customizable segmented control for iOS created by Tapptitude
Stars: ✭ 471 (-15.29%)
Mutual labels:  xcode
Pika
An open-source colour picker app for macOS
Stars: ✭ 550 (-1.08%)
Mutual labels:  xcode
Icepa
iOS system-wide VPN based Tor client
Stars: ✭ 519 (-6.65%)
Mutual labels:  xcode
Designcode Swiftui
📱 An app fully written in SwiftUI showcasing beautiful design and animations.
Stars: ✭ 529 (-4.86%)
Mutual labels:  xcode
Tinyfaces
Free stock avatars for everyone 👦🏼👨🏾👩🏻 (Built w/ Swift)
Stars: ✭ 498 (-10.43%)
Mutual labels:  xcode
Shenzhen
CLI for Building & Distributing iOS Apps (.ipa Files)
Stars: ✭ 4,668 (+739.57%)
Mutual labels:  xcode
Rangeseekslider
RangeSeedSlider provides a customizable range slider like a UISlider.
Stars: ✭ 524 (-5.76%)
Mutual labels:  xcode
Xcprojectlint
A security blanket for Xcode project files
Stars: ✭ 478 (-14.03%)
Mutual labels:  xcode
Mbicons
MBIcons contains over 200 icons that can be resized to any dimensions as they are drawn using NSBezierPath.
Stars: ✭ 537 (-3.42%)
Mutual labels:  xcode
Vue Json Pretty
A JSON tree view component that is easy to use and also supports data selection.
Stars: ✭ 477 (-14.21%)
Mutual labels:  format
Mkdropdownmenu
🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs
Stars: ✭ 523 (-5.94%)
Mutual labels:  xcode
Checkmail
Golang package for email validation
Stars: ✭ 554 (-0.36%)
Mutual labels:  format
Xcake
🍰 Describe Xcode projects in a human readable format and (re)generate one on demand.
Stars: ✭ 549 (-1.26%)
Mutual labels:  xcode
Xcodesapp
The easiest way to install and switch between multiple versions of Xcode - with a mouse click.
Stars: ✭ 510 (-8.27%)
Mutual labels:  xcode

🛠 X-SwiftFormat

Installation

Using Github

Using Cask

brew cask install x-swiftformat

Usage

1) Open X-SwiftFormat

X-SwiftFormat works as Xcode Extension to format your swift code. You will need to open this once to activate it 👍

a) You case use the Preview to see the format running in the app 💪

b) You can export a configuration file (.swift-format) to use later 🖥

2) Enable X-SwiftFormat

Open System PreferencesExtensionsXcode Source Editor and make sure X-SwiftFormat is selected ✅

3) Use X-SwiftFormat

Open Xcode and use the Format Swift Code command in Xcode's Editor menu 🚀

4) Add X-SwiftFormat Shortcut

Open System Preferences, click on Keyboard and switch to the Shortcuts tab. Select App Shortcuts, then hit the + button. Select Xcode, enter Format Swift Code and set your Shortcut.👏


Installing Apple Swift Format (Xcode or Mint)

a) Using Xcode

if you are using Xcode 12 (Swift 5.3), you can check out and build swift-format using the following commands:

git clone -b swift-5.3-branch https://github.com/apple/swift-format.git
cd swift-format
swift build

You should see this

[207/207] Linking swift-format

👍👍👍

b) Using Mint

If you dint have Homebrew, install here

brew install mint
mint install apple/[email protected]

You should see this

🌱 Cloning swift-format swift-5.3-branch
🌱 Resolving package
🌱 Building package
🌱 Installed swift-format swift-5.3-branch
🌱 Linked swift-format swift-5.3-branch to /usr/local/bin

👍👍👍

Command Line Usage

swift-format -v
0.50300.0
Command Description
swift-format swift Display formatted code
swift-format -i file.swift Overwrites formatted code
swift-format -r folder Format all files in a folder
swift-format -r -i folder Format all files in a folder and overwrites

Check more info here: https://github.com/apple/swift-format


I'm Rui Aureliano, iOS and macOS Engineer at Olá Brothers. We make Sip 🤓

Linkedin | AngelList | Twitter | Github | Medium | Stackoverflow

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].