https://github.com/elemental-design/elemental-swift
Elemental Swift – build design systems for SwiftUI
https://github.com/elemental-design/elemental-swift
Last synced: 3 months ago
JSON representation
Elemental Swift – build design systems for SwiftUI
- Host: GitHub
- URL: https://github.com/elemental-design/elemental-swift
- Owner: elemental-design
- License: mit
- Created: 2020-09-06T20:33:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-06T20:39:56.000Z (almost 5 years ago)
- Last Synced: 2025-01-26T06:41:13.650Z (5 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elemental-swift
Elemental Swift – build design systems for SwiftUI## Initial Specification
### Components
- `` -> `HStack`
- `` -> `VStack`
- `` -> `Button`### Pseudo-Code
```swift
struct Box: View {
var body: some View {
HStack()
}
}struct Pressable: View {
var label: Stringvar body: some View {
Button(action: {
self.isTimerActive.toggle()
}, label: {
Text(label)
.frame(minWidth: 64)
})
.buttonStyle(PlainButtonStyle())
}
}
```