> ## Content Index
> Fetch the complete content index at: https://albertodebortoli.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Toggles: the easiest feature flagging in Swift
- URL: https://albertodebortoli.com/2023/03/26/toggles/
- Published: 2023-03-26T22:02:24.000Z
- Updated: 2023-07-05T14:30:07.000Z
- Author: Alberto De Bortoli

I previously wrote about [JustTweak](https://github.com/justeat/JustTweak?ref=albertodebortoli.com) [here](https://albertodebortoli.com/2019/11/26/a-smart-feature-flagging-system-for-ios/). It's the feature flagging mechanism we've been using at Just Eat Takeaway.com to power the iOS consumer apps since 2017\. It's proved to be very stable and powerful and it has evolved over time. Friends have heard me promoting it vehemently and some have integrated it with success and appreciation. I don't think I've promoted it in the community enough (it definitely deserved more) but marketing has never been my thing.

Anyway, JustTweak grew old and some changes were debatable and not to my taste. I have then decided to use the knowledge of years of working on the feature flagging matter to give this project a new life by rewriting it from scratch as a personal project.

And here it is: [Toggles](https://github.com/TogglesPlatform/Toggles?ref=albertodebortoli.com).

> I never tweeted about this side project of mine 😜  
> It's like JustTweak (feature flagging), but sensibly better. [https://t.co/bdGWuUyQEU](https://t.co/bdGWuUyQEU?ref=albertodebortoli.com) [#Swift](https://twitter.com/hashtag/Swift?src=hash&ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com) [#iOS](https://twitter.com/hashtag/iOS?src=hash&ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com) [#macOS](https://twitter.com/hashtag/macOS?src=hash&ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com)
> 
> — Alberto De Bortoli (@albertodebo) [March 23, 2023](https://twitter.com/albertodebo/status/1638851577468588032?ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com)

Think of JustTweak, but better. A lot better. Frankly, I couldn't have written it better. Here are the main highlights:

- brand new code, obsessively optimized and kept as short and simple as possible
- extreme performances
- fully tested
- fully documented
- performant UI debug view in SwiftUI
- standard providers provided
- demo app provided
- ability to listen for value changes (using Combine)
- simpler APIs
- ToggleGen CLI, to allow code generation
- ToggleCipher CLI, to allow encoding/decoding of secrets
- JustTweakMigrator CLI, to allow a smooth transition from JustTweak

![](https://storage.ghost.io/c/ae/f4/aef4d625-32a2-417b-86f4-22c70a9b47a1/content/images/2023/03/DemoApp_iPad.png)

Read all about it on the [repo's README](https://github.com/TogglesPlatform/Toggles?ref=albertodebortoli.com#readme) and on the [DocC page](https://togglesplatform.github.io/Toggles/documentation/toggles/?ref=albertodebortoli.com).

It's on Swift Package Index too.

[Toggles – Swift Package IndexToggles by TogglesPlatform on the Swift Package Index – Toggles is an elegant and powerful solution to feature flagging for Apple platforms.![](https://swiftpackageindex.com/images/logo-small.png)Learn more![](https://swiftpackageindex.com/images/logo.png)](https://swiftpackageindex.com/TogglesPlatform/Toggles?ref=albertodebortoli.com)

There are plans (or at least the desire!) to write a backend with [Andrea Scuderi](https://twitter.com/andreascuderi13?ref=albertodebortoli.com). That'd be really nice!

> [@albertodebo](https://twitter.com/albertodebo?ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com) This wasn't planned! It looks like we need to build the backend for [#Toggles](https://twitter.com/hashtag/Toggles?src=hash&ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com) with [#Breeze](https://twitter.com/hashtag/Breeze?src=hash&ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com)! [pic.twitter.com/OxNovRl70L](https://t.co/OxNovRl70L?ref=albertodebortoli.com)
> 
> — andreascuderi (@andreascuderi13) [March 26, 2023](https://twitter.com/andreascuderi13/status/1640105067381506049?ref%5Fsrc=twsrc%5Etfw&ref=albertodebortoli.com)