FigmaPreview 0.2.0 adds two concise ways to connect Figma references to Xcode Previews and extends the package to macOS.
Highlights
- New
#Preview(with:)macro for local images and remote Figma components. - New
.figmapreview trait for composing Figma comparison UI with standard preview traits on Xcode 16 and later. - macOS 12 support, including remote image rendering through AppKit.
- Explicit access-token propagation for remote macro and trait previews.
- SwiftSyntax dependency selection aligned with the active Swift compiler.
- Macro expansion tests, strict-concurrency cleanup, and a working local-package Example project.
Requirements
- Xcode 15.3 or later
- Swift 5.10 or later
- iOS 15 or later
- macOS 12 or later
See CHANGELOG.md and the updated README for usage examples.