Commit Graph

155 Commits

Author SHA1 Message Date
Max Desiatov af225afab7
Add @carson-katri and @kateinoigakukun to `FUNDING.yml` (#289)
* Add @carson-katri and @kateinoigakukun to `FUNDING.yml`

* Update README.md
2020-10-07 08:07:45 +01:00
Max Desiatov a631d181e6
Update required `carton` version in `README.md` 2020-10-04 18:16:23 +01:00
Max Desiatov ee0006a6a3
Fix compatibility with JavaScriptKit 0.7 (#281)
This PR requires `carton` 0.6.0 that you can install from Homebrew as usual.

To cleanly manage scheduler closures, new `JSScheduler` class is introduced that conforms to OpenCombine's `Scheduler` protocol. I think it will be moved to OpenCombineJS in the future.

* Fix compatibility with JavaScriptKit 0.7

* Formatting update

* Specify `carton` 0.6.0 as a requirement

* Optimize immediate schedule function

* Update formatting
2020-09-30 10:17:19 +01:00
Max Desiatov 6affca5931
Specify `carton` 0.5.0 version as a requirement in `README.md` 2020-08-20 12:02:12 +01:00
Max Desiatov 0fe81a060d
Remove Xcode 12 warning from README.md (#264)
The latest 5.3 snapshots are compatible with Xcode 12, so the warning is no longer needed.
2020-08-20 12:01:17 +01:00
Max Desiatov ca5d4fc4ac
Add missing JavaScriptKit import to `README.md` (#265)
The import is currently missing, which may be confusing, especially if example code is copied without any context.
2020-08-20 00:30:12 +01:00
Max Desiatov 2a49b7808b
Link to the renderers guide from `README.md` (#251)
* Link to the renderers guide from `README.md`

The guide itself was merged into a single file for easier navigation.

* Update RenderersGuide.md
2020-08-07 16:01:27 +01:00
Max Desiatov c4c9eb595e
Update to the latest version of SwiftFormat (#250)
* Update to the latest version of SwiftFormat

This fixes inconsistencies in argument and parameter formatting that we previously had.

* Fix function length in `Path.swift`

* Fix linter warnings

* More formatting cleanups

* Add `StrokeStyle.zero` in the `StaticHTML` module
2020-08-05 17:30:19 +01:00
Max Desiatov 40804d4542
Remove `DefaultApp`, make `DOMRenderer` internal (#227)
Removes the `View`-based initializer of `DOMRenderer` which no longer leaves any `public` initializers on it, means we can make it fully internal. `DOMNode` is now internal too, which is great as it was an implementation detail anyway. Corollary, `DefaultApp` is no longer needed.

`Target` was cleaned up is it doesn't need to hold `App` or `Scene` values, now it's just a simple protocol.

I've updated `README.md` to show usage of the `App` protocol in the basic example.

Closes #224.
2020-08-01 18:46:59 +01:00
Max Desiatov a24f49f298
Warn against beta versions of Xcode in README.md (#207)
Seems like Xcode beta 3 is particularly problematic.Seems like Xcode 12 beta 3 is particularly problematic due to https://github.com/swiftwasm/carton/issues/65
2020-07-23 21:58:19 +01:00
Max Desiatov f15f598d7b
Update "Requirements" and "Getting started" README sections (#205)
I hope this makes `README.md` a bit more friendly for our early adopters, but any feedback is welcome as usual 🙂
2020-07-22 22:27:19 +01:00
Max Desiatov 5f3822257d
Add `TokamakShim` module to simplify imports (#192)
Adding this module as a dependency, Tokamak users would only need to add a single import regardless of the platform they're targeting. Thus, instead of

```swift
#if canImport(SwiftUI)
import SwiftUI
#else
import TokamakDOM
#endif
```

a single `import TokamakShim` is enough. `TokamakShim` re-exports correct modules based on a target platform.

I've also renamed the `TokamakDemo Native` directory to `NativeDemo` for brevity.

`xcodebuild` output in the `macos_demo_build` job is now passed to `xcpretty` for more readable build logs.
2020-07-19 20:53:27 +01:00
Max Desiatov 8f23ac979f
Avoid AnyView in the Counter code (#168)
It's not needed there as `ViewBuilder` is smarter now.

The macOS SwiftUI SDK even with Xcode 12 still doesn't have the `@ViewBuilder` attribute on the `View` protocol, so we have to build for iOS on CI to make the native buld pass.

Resolves #167, which wasn't caused by protocol conformance problems, but by infinite recursion in the `_ConditionalContent` implementation of `body`.

Adds assorted formatting fixes, some are apparently caused by the newer `swiftformat` version.
2020-07-16 19:17:04 +01:00
Max Desiatov 31d90fd129
Fix wording in README.md 2020-07-15 21:43:29 +01:00
Max Desiatov d172e04f7c
Mention `#webassembly` SwiftPM Slack channel in README.md (#187)
Was asked about this a few times in the last few days, probably worth surfacing it in `README.md` 🙂
2020-07-15 12:17:02 +01:00
Max Desiatov dc64554427
Update Acknowledgments section in README.md (#157)
It now explicitly references React architecture and gives credit to SwiftUI API designers.
2020-07-03 23:08:45 +01:00
Max Desiatov 8b62cc67a2
Credit SwiftWebUI in a special way in README.md (#140) 2020-07-01 19:36:02 +01:00
Max Desiatov f85e26a350
Add "Modular structure" section to `README.md` (#137)
* Add "Modular structure" section to `README.md`

This clarifies the general structure of the `Tokamak` package and lays out "the underscore rules" to indicate "package private" access for symbols that aren't intended for public use.

* Refine wording in the "Modular structure" section
2020-07-01 14:41:24 +01:00
Max Desiatov 5adc7b2cff
Conditionally import SwiftUI in README.md example (#138)
This demonstrates portability of Tokamak a bit more in my opinion. Also, we had a redundant closing brace in the example code 🤦‍♂️
2020-07-01 14:40:50 +01:00
Max Desiatov b1b5693b66
Add logo to README.md (#133)
* Add logo to README.md

* Fix header logo layout in README.md

* Increase header logo width to 640px

* Add Jed Fox as a maintainer to README.md

* Update README.md

Co-authored-by: Jed Fox <git@twopointzero.us>
2020-07-01 08:28:32 +01:00
Max Desiatov 42d5ede20f
Link to the progress doc from README.md 2020-06-29 18:00:17 +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 47234d15af
Mention `ZStack` in README.md as available 2020-06-28 16:15:35 +01:00
Max Desiatov 521025cba9
Update maintainers list in README.md 2020-06-27 21:06:58 +01:00
Max Desiatov 033ea8d1b4
Expand the "Contributing" section in README.md 2020-06-27 17:19:43 +01:00
Max Desiatov fcbf9f6d49
Clean up example code in README.md/main.swift 2020-06-23 12:14:43 +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 57fd08ab4e
Update JavaScriptKit, refine example Counter code 2020-06-20 00:59:03 +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 61baa5e1d4
Add license headers, add example code to README.md 2020-06-18 14:50:54 +01:00
Max Desiatov b0465b251b
Update CI status badge in README.md 2020-06-18 11:54:04 +01:00
Max Desiatov 5a56f30492
Remove code coverage badge from README.md as unsupported 2020-06-18 00:18:48 +01:00
Max Desiatov 8ac33c7153
Add "Getting started" section to README.md 2020-06-18 00:17:30 +01:00
Max Desiatov 9c6a8814bd
Update branches in workflows and README.md 2020-06-17 00:59:41 +01:00
Max Desiatov 7fc11e7c50
Update README.md 2020-04-23 17:43:27 +01:00
Max Desiatov f7451ed1e2
Update README.md 2020-04-23 17:43:11 +01:00
Max Desiatov 75933960d7
Update README.md 2020-04-22 17:07:22 +01:00
Max Desiatov 808d650119
Update README.md 2020-04-22 17:05:20 +01:00
Max Desiatov 3d714964e6
Update README.md 2020-04-10 10:42:50 +01:00
Max Desiatov ed43729740
Update README.md 2020-04-10 10:41:56 +01:00
Max Desiatov 62f43d30fb
Add Binding property wrapper, remove unused code (#106) 2020-04-07 15:26:42 +01:00
Max Desiatov dff985471a
Update README.md 2019-06-16 18:06:10 +01:00
Max Desiatov 64aac7401d
Update README.md 2019-06-16 18:05:48 +01:00
Max Desiatov 273b92b858
Update README.md 2019-06-13 15:10:08 +01:00
Max Desiatov 3ebdb037a0
Update README.md 2019-06-13 15:07:29 +01:00