Skip to content

Releases

0.1.46

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 25 Nov 17:11
329d5cf

A consumer can declare a library with a browser target by URL, as its native build does: the launcher resolves the staged package with the browser build's environment, lowers each remote package that depends on SwiftUIWeb from its resolved checkout (and stages the remote packages that lead to one), rewrites every staged manifest's declaration of it, in any URL spelling and keeping an explicit name, to a path dependency on that copy, and ships its Web/Resources; checkouts next to the consumer are no longer needed (#137). A release's split moves the data only the second module uses into the second module, so the first module the page waits for is smaller (#124, #136).

0.1.45

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 25 Nov 13:13
a9cb7e8

An external package (swiftuiweb-run --package-root, the SwiftPM plugin) keeps its lowered tree and SwiftPM's scratch folder between builds in .build/build-cache/<product>-<configuration>-<profile>, so a build recompiles only what changed instead of everything: on a consumer app with 5,154 lowered files a build with nothing changed went from 539 to 638 s to 52 s, with the same flags and bundle. One build at a time uses a cache (a flock released when the build ends); the cache is off on CI, and SWIFTUIWEB_STABLE_WORKSPACE=0 restores the temporary folder. A failed or interrupted sync of the tree now makes the next run build instead of skipping it, in the development loop too (#130, #133). A Canvas redraws for its final size after a resize (#131).

0.1.44

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 25 Nov 05:50
7dfdead

.hoverEffectDisabled() turns off the highlight a plain or borderless Button, or a plain NavigationLink, takes from its label's shape under the pointer, as it turns off the pointer effect on iPadOS. The modifier works on the control or on any ancestor: a list row that draws its own hover keeps one highlight instead of two nested fills. Controls without the modifier are unchanged (#129).

0.1.43

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 25 Nov 05:15
9e9ef5b

SwiftUI's Image(decorative:bundle:): the image of Image(_:bundle:) (an asset-catalog name, a path of the app's site, or a data:/blob: URL) with an empty alt, so assistive technologies skip it and a failed load shows no text in its place; a decorative custom symbol is aria-hidden (#127). The docs and the site name 0.1.43 (#128).

0.1.42

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 25 Nov 03:26
7d709c9

A sidebar's TabSection titles keep their height when its tabs do not fit the window: the list scrolls instead of squeezing the titles to a sliver (#125). Lazy grids: a grid that mixes fixed and adaptive items lays out every column (#120), each cell takes the alignment of the column it is rendered in (#123), and a LazyHGrid with adaptive rows is sized by the rows the browser laid out, the same in WebKit and Chromium (#118). An AnyView of an AnyView is named after the type it finally holds (#119). A returning visitor of a split module downloads only what changed (#113, #114). Five tests that failed now and then under load are steady (#122).

0.1.41

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 24 Nov 03:43
cfa4d88

A view whose ancestors stack many modifiers on it still renders again when an @observable value it read changes. The owner chain walk stopped after 16 hops, so a screen under a long modifier stack (an app root with environment values, tasks and change handlers) never rendered again (#115). Also contains 0.1.40: BrowserService (#109), one type for every modified view of the framework (#112), less code per view type (#110), lowering a view that keeps state in the Embedded development loop (#111).

0.1.39

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 21 Nov 11:32
e680bc1

A DOMViewRepresentable takes the frame it is offered, as a UIViewRepresentable without an intrinsic size does: a component in a 200 by 200 frame is 200 by 200 (it shrank to what its component drew). See Documentation/MIGRATION.md.

0.1.38

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 21 Nov 03:46
2e69cda

Charts look like Swift Charts on iPad: unstyled marks take the app's accent colour, gradients blend in OKLab, axis labels are 10-point secondary text over separator hairlines (dashed across the x axis), and the plot keeps only the room its labels, title and legend need. See Documentation/MIGRATION.md.

0.1.37

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 21 Nov 00:52
d9c975f

Food Truck matches the iPad: the sidebar has iPad's metrics (icon column, 52-point rows, section headers) and its columns meet the detail with no gap or divider; system colors are Apple's current palette; listItemTint tints row icons; containerShape gives ContainerRelativeShape and shape-less backgrounds the container's corners; Canvas has no frame of its own; catalog images use their 2x file at their size in points; automatic chart domains and marks follow what the axis asks for. See Documentation/MIGRATION.md.

0.1.36

Choose a tag to compare

@Vitorsilveira31 Vitorsilveira31 released this 20 Nov 21:05
377047b

Food Truck's New Orders tiles keep their layers when an order arrives: a modifier on a ForEach that wraps each element in place hands the element's owner and key to the content it holds, so rendering that owner again no longer replaces the tile (empty while its GeometryReaders waited to be measured). User-defined Layouts are probed only after something that can change their offer or their subviews' sizes changed: no style writes at rest on the Truck page, where the probe wrote about 20,000 a second.