# \#snippets

**URL:** https://forums.swift.org/tag/snippets/677.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [\_HashTable+Constants.swift:79: error: undefined reference to 'round'](https://forums.swift.org/t/hashtable-constants-swift-error-undefined-reference-to-round/76130)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 8\
**Last updated:** [January 23, 2026, 2:15am UTC](https://forums.swift.org/t/hashtable-constants-swift-error-undefined-reference-to-round/76130 "2026-01-23T02:15:21Z")

</div>

i’m really struggling with this error when building a SwiftPM Snippet in a package that has a dependency on swift-collections the project is swift-bson at 0.1.0, and i’m trying to add the following Snippet: import BSON…

---

## [I'm having an issue with Swift Package Manager Snippets](https://forums.swift.org/t/im-having-an-issue-with-swift-package-manager-snippets/79295)

<div class="topic-metadata">

**Author:** [@maclong](https://forums.swift.org/u/maclong)\
**Replies:** 3\
**Last updated:** [April 16, 2025, 11:08am UTC](https://forums.swift.org/t/im-having-an-issue-with-swift-package-manager-snippets/79295 "2025-04-16T11:08:54Z")

</div>

I am able to get Snippet usage in my Docc files working fine as long as I don't import any third party libraries. In this case I am importing a simple DSL for writing HTML that I built for learning purposes. The library…

---

## [Introductory guide to SwiftPM Snippets available!](https://forums.swift.org/t/introductory-guide-to-swiftpm-snippets-available/74961)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 7\
**Last updated:** [October 10, 2024, 4:25pm UTC](https://forums.swift.org/t/introductory-guide-to-swiftpm-snippets-available/74961 "2024-10-10T16:25:39Z")

</div>

Hi Swifties! SwiftPM Snippets are an incredibly powerful tool for documenting Swift packages, and a comprehensive guide to using them has been one of the most commonly-requested items over the past year. As a joint eff…

---

## [Approaches to testing macros](https://forums.swift.org/t/approaches-to-testing-macros/72330)

<div class="topic-metadata">

**Author:** [@soumyamahunt](https://forums.swift.org/u/soumyamahunt)\
**Replies:** 4\
**Last updated:** [June 20, 2024, 9:55am UTC](https://forums.swift.org/t/approaches-to-testing-macros/72330 "2024-06-20T09:55:29Z")

</div>

Hey everyone! I created MetaCodable to handle common Codable implementation generation use-cases. Currently the issue I face is better testability with the huge set of features this library supports, one of the thing I f…

---

## [Linked Snippets](https://forums.swift.org/t/linked-snippets/71710)

<div class="topic-metadata">

**Author:** [@SpeakerToManagers](https://forums.swift.org/u/SpeakerToManagers)\
**Replies:** 2\
**Last updated:** [May 10, 2024, 12:37am UTC](https://forums.swift.org/t/linked-snippets/71710 "2024-05-10T00:37:58Z")

</div>

This project is part of an app that allows mathematicians, designers, and artists interactive creation and control of Geometric Algebra (see, eg https://youtu.be/60z\_hpEAtD8?si=xaNsMxiN4N10w8FG ) constructs. The immediat…

---

## [Using @Snippet in SwiftPM for an iOS target](https://forums.swift.org/t/using-snippet-in-swiftpm-for-an-ios-target/67009)

<div class="topic-metadata">

**Author:** [@bonkey](https://forums.swift.org/u/bonkey)\
**Replies:** 3\
**Last updated:** [January 11, 2024, 1:58pm UTC](https://forums.swift.org/t/using-snippet-in-swiftpm-for-an-ios-target/67009 "2024-01-11T13:58:59Z")

</div>

I'm trying to use @Snippet inside DocC articles in iOS library target. I tried many different things (details below), but just for sanity check, when I clone GitHub - swiftlang/swift-markdown: A Swift package for parsin…

---

## [Using Snippets in Documentation Comments not possible?](https://forums.swift.org/t/using-snippets-in-documentation-comments-not-possible/65046)

<div class="topic-metadata">

**Author:** [@Jeehut](https://forums.swift.org/u/Jeehut)\
**Replies:** 10\
**Last updated:** [May 18, 2023, 7:46pm UTC](https://forums.swift.org/t/using-snippets-in-documentation-comments-not-possible/65046 "2023-05-18T19:46:46Z")

</div>

The way I read SE-0356 it should be possible to create a snippet file in the Snippets folder of a Swift package and then reference that in my documentation comments via @Snippet. But that doesn't seem to work the way I …

---

## [\[Pitch\] Swift Snippets](https://forums.swift.org/t/pitch-swift-snippets/56348)

<div class="topic-metadata">

**Author:** [@bitjammer](https://forums.swift.org/u/bitjammer)\
**Replies:** 68\
**Last updated:** [April 21, 2022, 9:10pm UTC](https://forums.swift.org/t/pitch-swift-snippets/56348 "2022-04-21T21:10:48Z")

</div>

Hi everyone, I've been prototyping work on Swift Snippets, which we previously discussed, and I'm excited to share a proposal pitch with you now. Here is a link to the proposal text: Swift Snippets Proposal The propo…
