Results 165 issues of Max Desiatov

I know it's going to be hard as the demo code would become self-referential that way. Maybe we could upload the demo code to release assets (it would be served...

enhancement
documentation

`PreferenceKey` is basically an inverted `EnvironmentKey`, but the values are propagated from children to parents instead of the other way around. See [the `preferredColorScheme` API reference](https://developer.apple.com/documentation/swiftui/view/preferredcolorscheme(_:)) for more details.

SwiftUI compatibility

In cases such as ```swift Text("foo") .padding(5) .padding(10) .padding(42) ``` three new `div`s are created each with a separate padding. I wonder if there's a good (probably renderer-specific) way to...

enhancement

`typeInfo` and property reflection API are one of the most frequently used codepaths in the rendering process. For every element tree update we call those over and over, so I...

question
refactor

[API reference](https://developer.apple.com/documentation/swiftui/equatableview). I wonder if it would allows us to optimize a few things under the hood.

SwiftUI compatibility

Maybe it could work with `Scene`, where you have a `DOMScene` type, which provides its host node, and it can take a scene as the child. You could then have...

API design

This is a follow-up to https://github.com/swiftwasm/Tokamak/issues/224. I think we could introduce a new API within the `TokamakDOM` module (though in theory it could work with any renderer as long as...

enhancement

Referring to [this FIXME](https://github.com/swiftwasm/Tokamak/blob/66248448ab2fe287d0e8731a8f6e72ad6c500778/Sources/TokamakCore/MountedViews/MountedCompositeView.swift#L44), we currently compare only a last child even in views that are supposed to have multiple children. We should verify (and ideally cover this with unit...

question
test suite

This is caused a currently unresolved bug in [the fork of the Runtime library](https://github.com/MaxDesiatov/Runtime). All works fine (at least in all known test cases) if your `ObservableObject` class declared on...

bug

It's currently blocked by the upstream lack of support for this in SwiftPM, see https://bugs.swift.org/browse/SR-12683 and https://swiftpm.slack.com/archives/C14QU6CUU/p1594734422189300 for more details

SwiftUI compatibility