atdrendel / Klug

SwiftUI design system exploration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo


Exploring Design Systems in SwiftUI 🎨

I have been experimenting with how to build design systems using SwiftUI to help ease designer to developer handoffs. My goal is to design an API that is very close to SwiftUI completely eliminating a learning curve.

This project aims to solve :

  1. Unneeded documentation when handing off designs.
  2. Easy access to design tokens from Figma to Xcode.
  3. Experimenting with native component extensions and developing API's close to Apple design guidelines to take advantage of system wide user experience and accessibility.
  4. Working with a super modularised swift package manager toolset to take advantage of running features in isolation and building micro apps for faster iterations.


Code Approaches and Ideas

I try to use the type system to create restricted buttons and textfields that can be customised via setup or that are freely usable using SwiftUI directly. SwiftUI is super flexible, smart and powerful. With that said, a design system is meant to create rules around this flexibility so users of the system follow visual cues that are intentionally designed for them.

code


🚨 License

MIT License

Copyright (c) 2021 Evans Domina Attafuah

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

SwiftUI design system exploration


Languages

Language:Swift 100.0%