Skip to content

1.0.1 — Fixes unbuildable 1.0.0

Latest

Choose a tag to compare

@GRimAce11 GRimAce11 released this 17 Sep 07:03

1.0.0 cannot be built into an app. Use this release instead.

Fixed

All four Metal shaders annotated their value parameters with [[buffer(n)]]. That attribute is only valid on pointer and reference types, and SwiftUI [[stitchable]] entry points take plain values, so every shader was rejected by the Metal compiler:

error: type 'float2' (vector of 2 'float' values) is not valid for attribute 'buffer'

The practical effect was that any app depending on FlowMotion failed to build. swift build does not compile Metal sources, which is why the problem survived into a tagged release — it only surfaces when the package is built into an app target.

The attributes are removed. Parameter order and types were already correct, so nothing at a call site changes.

Added

  • Demo/ — a SwiftUI app exercising the spring presets, flowShimmer, and flowPulse. Generated with XcodeGen, referencing the package by local path. Building it is what compiles the Metal shaders, so this class of error cannot pass unnoticed again.
  • A README GIF recorded from that app: five spring presets covering the same distance at the same instant, so the difference between them is visible rather than described.

Install

.package(url: "https://github.com/GRimAce11/FlowMotion", from: "1.0.1")

79 tests passing.