Swim icon indicating copy to clipboard operation
Swim copied to clipboard

A DSL for writing HTML in Swift

Results 8 Swim issues
Sort by recently updated
recently updated
newest added

This adds a dedicated `AttributeKey` type and allows any `Hashable` value as an attribute value. The idea being that this allows for safe storage of arbitrary data inside a node....

Would be good to catch regressions.

help wanted
good first issue

This PR is an experiment, not sure if it's a good idea. I figured that it's nice to keep the declaration order of attributes. Previously, we were sorting the attributes...

The "media" attribute is not available for meta tags, so something like this is currently impossible: ``` ``` Would you want me to create a PR?

First of all, thanks for this library! I've only started to dig in recently, but am enjoying the syntax and the fact that I can just use map, compactMap, if...

I'm not sure if this is a good idea. But this is one way you could implement preferences. I would love to have this supported, but it also complicates everything...

This makes it easier to use nodes with custom attribute values without having to convert to and from `String`. Unwrapping the `base` value and checking the type manually has overhead...

This PR adds support for for-loops in node builders.