Skip to content

schwa/SwiftFields

Repository files navigation

SwiftFields

SwiftFields is a collection of SwiftUI widgets for editing data. It was originally created with the aim of providing widgets for editing values in a 3D editor such as angles, vectors, matrixes, quaternions, etc.

This library is in early development.

Current widgets:

  • AngleEditor: A widget for editing angles. Screenshot of AngleEditor
  • ClosedRangedSlider: A slider for editing a ClosedRange of Doubles. Screenshot of ClosedRangeSlider
  • PathSlider: Like SwiftUI's Slider but you can slide the thumb along any arbitrary path. Screenshot of PathSlider
  • YASlider: Like SwiftUI's Slider but with more functionality including vertical orientation, custom thumb, and custom track. (Built on top of PathSlider) Screenshot of YASlider

TODO

  • [X]: Use vertical slider for AngleEditor
  • [ ]: Finish angle editor range limits
  • [X]: Accessibility for AngleEditor
  • [ ]: Highlight thumb for PathSlider
  • [ ]: Dark mode support for PathSlider
  • [ ]: Get inner shadow/glow working for PathSlider
  • [ ]: Accessibility for ClosedRangeSlider
  • [ ]: Make YASlider (PathSlider?) support labels.
  • [ ]: Angle editor in dark mode
  • [ ]: iOS pass on all widgets

About

SwiftFields is a collection of SwiftUI widgets for editing data

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages