Commit Graph

505 Commits

Author SHA1 Message Date
Max Desiatov bc8196e9ef
Add `todo` to `disabled_rules` in .swiftlint.yml 2020-06-30 17:30:44 +01:00
Carson Katri 98a107f7fe
Add ScrollView (#128)
* Add ScrollView
* Root styles for ScrollView and Stack
2020-06-30 12:29:06 -04:00
Max Desiatov 0e910756c0
Allow refactor PR labels in label.yml 2020-06-30 16:01:14 +01:00
Max Desiatov 36aaf24878
Avoid running Danger on PRs from forked repos 2020-06-30 15:09:30 +01:00
Carson Katri e40a701752
Add Spacer support (#122)
1. If a Stack has a Spacer as a child, we need to fill the width or height of the parent so the Spacer's flex-grow: 1; works.
2. If a Stack has a child Stack along the cross axis (HStack with a nested VStack and vice vera) we need to fill the cross axis
3. If a Stack has a child Stack along the same axis (HStack with a nested HStack) we need to fill the axis.
2020-06-30 09:31:25 -04:00
Max Desiatov 9f5877e8ab
Update EmptyView status in progress.md 2020-06-30 14:23:39 +01:00
Max Desiatov 18fc89c4a1
Re-enable linting with Danger (#124)
Probably the reason for Danger failures was the bot account not having access to the project.
2020-06-30 13:39:56 +01:00
Max Desiatov 9793787e66
Check whether PRs have labels with GitHub Actions (#123)
To improve housekeeping, this workflow checks that all PRs have labels on them.
2020-06-30 13:38:53 +01:00
Max Desiatov 42d5ede20f
Link to the progress doc from README.md 2020-06-29 18:00:17 +01:00
Jed Fox b2b5ec2ae5
Add TextField, SecureField, and a progress document (#116)
I’ve added two TextFields to the demo, which are supposed to have their values synced. Pressing enter in the second one will increment the commit counter.
2020-06-29 17:52:22 +01:00
Carson Katri 4b3b377c82
Add layout modifiers (#118)
* frame and padding modifiers
2020-06-29 10:33:27 -04:00
Max Desiatov 9bed8e0cb8
Update DOM node properties and listeners on renderer update (#117)
* Update DOM properties and listeners on renderer update

* Fix listeners not passed in EmptyView init
2020-06-29 00:09:28 +01:00
Carson Katri b7d7b125b2
Add support for Text Modifiers (#114)
* Text styles and Environment setup for View font

* Text modifiers and demo

* Format Source files

* Fix font-size and add font-family when no Font is specified

* Add TextStyle

* PR fixes

* Format files

* Add note about Text modifiers
2020-06-28 18:05:53 -04:00
Max Desiatov ab2e907f9d
Update .swiftlint.yml 2020-06-28 22:51:59 +01:00
Max Desiatov 6c46e308d5
Update .swiftlint.yml 2020-06-28 22:50:09 +01:00
Max Desiatov e881e8afde
Remove unused TokamakHTML module 2020-06-28 22:48:12 +01:00
Max Desiatov 66d5045a1f
Remove `danger.yml` (hopefully temporarily) 2020-06-28 21:05:52 +01:00
Carson Katri f02a1d8022
Fix HStack to use flexbox instead being a blank div (#115) 2020-06-28 12:22:15 -04:00
Max Desiatov e74e4f34b6
Disable multiple_closures_with_trailing_closure rule 2020-06-28 16:19:31 +01:00
Max Desiatov 47234d15af
Mention `ZStack` in README.md as available 2020-06-28 16:15:35 +01:00
Max Desiatov 429bf3b58c
Increase counter limit in TokamakDemo/main.swift 2020-06-28 16:09:10 +01:00
Max Desiatov 79d66383f1
Another attempt to fix Danger GitHub token 2020-06-28 15:26:49 +01:00
Carson Katri 0aedd15f8a
ForEach (#113)
* Add ForEach and demo
* Add better demo for ForEach
* Fix formatting

Co-authored-by: Max Desiatov <max@desiatov.com>
2020-06-27 16:12:55 -04:00
Max Desiatov 521025cba9
Update maintainers list in README.md 2020-06-27 21:06:58 +01:00
Carson Katri e06a5b4308
Add ZStack and modifier support for setting zIndex (#112)
* Add ZStack and modifier support for setting zIndex

* Improve ViewModifier to support custom modifiers correctly

* ModifiedContent and PR fixes
2020-06-27 20:33:15 +01:00
Max Desiatov cf38796877
Allow the bot account to post Danger comments 2020-06-27 19:11:29 +01:00
Max Desiatov 033ea8d1b4
Expand the "Contributing" section in README.md 2020-06-27 17:19:43 +01:00
Max Desiatov 70d94d3960
Delete Reference.swiftinterface 2020-06-26 22:48:40 +01:00
Max Desiatov fcbf9f6d49
Clean up example code in README.md/main.swift 2020-06-23 12:14:43 +01:00
Max Desiatov b29aa57aa2
Remove TokamakTestRenderer product (for now) 2020-06-23 12:07:00 +01:00
Max Desiatov 735251fb13
Rename Tokamak module to TokamakCore 2020-06-23 11:47:54 +01:00
Max Desiatov c43eca0385
Remove `public` from example code in README.md 2020-06-23 11:43:05 +01:00
Max Desiatov 96ef5d123a
Add inline SVG and styles/scripts to example code 2020-06-23 11:41:59 +01:00
Max Desiatov 83730ca55a
Revert "Add separate TokamakHTML module"
This reverts commit 498f033a43.
2020-06-23 11:31:27 +01:00
Max Desiatov 498f033a43
Add separate TokamakHTML module 2020-06-22 23:01:11 +01:00
Max Desiatov c8f75e32af
Use Semantic UI CSS in TokamakDemo 2020-06-22 18:00:02 +01:00
Max Desiatov 523426657d
Remove default `Never` body, refine error messages
Resolve #110.
2020-06-22 10:18:47 +01:00
Max Desiatov 9f6cd4245e
Make HTML view initializer less verbose 2020-06-22 09:58:57 +01:00
Max Desiatov a25908a966
Use the latest JavaScriptKit dependency to fix RC 2020-06-21 22:32:50 +01:00
Max Desiatov 57fd08ab4e
Update JavaScriptKit, refine example Counter code 2020-06-20 00:59:03 +01:00
Max Desiatov 72c64601f4
Fix children not unmounted in DOMRenderer 2020-06-19 21:58:15 +01:00
Max Desiatov 3accd32b5b
Fix early deallocation of root ref, refine Counter 2020-06-19 01:34:54 +01:00
Max Desiatov 813b24ca71
Update LICENSE and CoC links in README.md 2020-06-18 19:03:45 +01:00
Max Desiatov 2c916e902e
Remove redundant VStack from example code 2020-06-18 18:46:43 +01:00
Max Desiatov d2e484291f
Remove explicit self in example code, which is possible in Swift 5.3 2020-06-18 18:46:04 +01:00
Max Desiatov 27156a56a9
Simplify example code even more in README.md 2020-06-18 18:45:15 +01:00
Max Desiatov 6349f5388a
Refine example code in README.md 2020-06-18 18:43:56 +01:00
Max Desiatov 605b8fed83
Add VStack implementation, use it in Counter 2020-06-18 14:51:24 +01:00
Max Desiatov 61baa5e1d4
Add license headers, add example code to README.md 2020-06-18 14:50:54 +01:00
Max Desiatov 261be5c9b2
Add version 0.2.0 to CHANGELOG.md 2020-06-18 12:29:50 +01:00