• Stars
    star
    173
  • Rank 220,124 (Top 5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Xcode Plugin that helps you write lighter view controllers

Luft, the Swedish (and German, Danish and Norwegian) word for air.

Luft aims to help you write shorter, lighter and more readable view controllers. Luft colors your Xcode gutter in a nice green when your view controller is light. When it starts to get a bit heavier, the gutter turns yellow to warn you that it's time to start moving code to other places. If you ignore the warning the gutter eventually turns red as you add more code.

Xcode 8 and Xcode Extensions

Unfortunately the introduction of Xcode extensions and changes to code signing requirements in Xcode 8 makes loading old plugins more difficult. You can still do it by stripping code signing from Xcode, but it's not something we recommend. I've raised the following radars for changes required to rebuild Luft with Xcode Extensions. Feel free to dupe them.

Installation

Using Alcatraz

Recommended

Luft can be installed via the Alcatraz plugin manager.

If you don't have it installed, you can install it using:

curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh

After installing restart Xcode and go to Window -> PackageManager(cmd + 9). From there you can search for "Luft" and install it.

Manually

$ git clone https://github.com/k0nserv/luft.git
$ cd luft
$ open Luft.xcodeproj

In Xcode press cmd + r

Defaults

By default the following rules are used to determine the color of the gutter

Number of lines Status
< 150 โœ…
>= 150 and <= 300 โš ๏ธ
> 300 โ›”๏ธ

Known Issues

  • Having the same file open in the assistant editor will not correctly reflect changes made in the active editor
  • Other Issues? Please open a github issue.

Screenshots

License

MIT, see LICENSE.md

More Repositories

1

kitty-icon

An alternative app icon for the Kitty terminal emulator
Makefile
199
star
2

cargo-edit-locally

Subcommand to easily edit crate dependencies locally
Rust
50
star
3

rusttracer

A raytracer written in Rust for fun and learning
Rust
35
star
4

SwiftObjLoader

A wavefront object format loader in Swift
Swift
22
star
5

hugotunius.se

My website/blog. Jekyll, S3, Cloudflare
SCSS
19
star
6

SwiftTracer

A raytracer written in Swift for learning and lulz
Swift
14
star
7

one-cent-blog

The template for a one cent/month blog using S3, Cloudflare, Jekyll and Travis-Ci
SCSS
13
star
8

SwiftTracer-Core

The core rendering mechanics for SwiftTracer. OS independant
Swift
9
star
9

strict.js

Strict.js, experiment with strict typed variables and functions in javascript.
JavaScript
6
star
10

chip-8

A CHIP-8 Emulator in Rust
Rust
6
star
11

brc

1 billion rows challenge
Rust
4
star
12

advent-of-rust-2019

Advent of Code 2019 solutions, Rust as always
Rust
3
star
13

advent-of-rust-2018

Advent of Code 2018 solutions, Rust as always
Rust
3
star
14

dotfiles

Dead simple dotfiles
Lua
3
star
15

rust-isqrt

Small benchmark of different implementations of Fast Inverse Square Root for f64 in rust
Rust
3
star
16

twicmd

TwiCmd let's you trigger events on your node.js server using your public twitter stream.
CoffeeScript
3
star
17

vector-benchmarks

Vector benchmakrs with SIMD instructions
Rust
2
star
18

ptrn

Pattern matching in javascript
JavaScript
2
star
19

coolc-rs

A COOL compiler implementation done, at least partially, in Rust for CS143
Rust
2
star
20

rust-swift-test

Rust Swift Package test
Swift
2
star
21

CLBrot

Mandlebrot generator using OpenCL. Old project circa 2012
C++
2
star
22

book-green-threads-explained

Repository for the Green Threads Explained
2
star
23

advent-of-rust-2022

Advent of Code 2022 solutions, Rust as always
Rust
1
star
24

ContextStar

Javascript context sensitive strings.
JavaScript
1
star
25

advent-of-rust-2020

Advent of Code 2020 solutions, Rust as always
Rust
1
star
26

advent-of-code-2017

Advent of Code 2017 solutions. http://adventofcode.com/
Rust
1
star
27

covid19

Jupyter Notebook
1
star
28

rust-nn

Rust
1
star
29

travis-tmp

1
star
30

Mandelbrot.js

Mandelbrot fractals in javascript using Canvas
JavaScript
1
star
31

go-challenge-solutions

Learning Go by solving the go-challenges from http://golang-challenge.com/
Go
1
star
32

advent-of-rust-2023

Advent of Code 2023 solutions, Rust as always
Rust
1
star
33

apex-stats

Rust
1
star