Giter VIP home page Giter VIP logo

tweakpane's Introduction

TweakPane

Control panel for fine-tuning and monitoring paramters.

About

TweakPane is a library for iOS to build a control panel screen for fine-tuning parameters and monitoring value chages.

It inspires largely from TweakPane

If you have many parameters used to control your UI, and you want to play around with such parameters without having to change the source code and recompile again, TweakPane is very helpful for this case where you can build a quick control panel view to adjust the parameters and see how it affect your UIs.

How does it work?

TweakPane ultilise the @Binding mechanism introduced in SwiftUI to create 2-way binding between the original properties and the control panel views.

With this binding in place, any change of the original properties will be reflected automatically to the control panel view for monitoring purpose.

TweakPane provides a set of standard Views to manipulate different types of values such as String, Number, Color etc... Via Binding, any change user mades in control panel will be assigned back to the original properties which can be used to manipulate the original UI.

Demo

demo.mp4

Usage

This is the simplest functional example of TweakPane:

import Foundation
import SwiftUI
import TweakPane

struct SimpleView: View {
    @State private var text: String = ""

    var body: some View {
        VStack {
            Text(text)
            Pane {
                InputBlade(name: "Text", binding: InputBinding($text))
            }
        }
    }
}

More complex examples are in the Demo project.

Installation

Swift Package Manager

https://github.com/antranapp/TweakPane

License

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

tweakpane's People

Contributors

antranapp avatar

Watchers

 avatar

tweakpane's Issues

Add PerfectBrand sample

  • Load Image using AnsPickerView
  • Save configuration and image into local storage (into a subfolder)
  • Load configuration and image form local storage (from a subfolder)
  • Delete configuration folder
  • Overwrite current configuration folder
  • AlertView with Textfield
  • Add a new button

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.