# \#mirror

**URL:** https://forums.swift.org/tag/mirror/496.md

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

---

## [\[Pitch\] Merge local and global mirror configuration](https://forums.swift.org/t/pitch-merge-local-and-global-mirror-configuration/90154)

<div class="topic-metadata">

**Author:** [@samuelmurray](https://forums.swift.org/u/samuelmurray)\
**Replies:** 0\
**Last updated:** [October 19, 2026, 8:05pm UTC](https://forums.swift.org/t/pitch-merge-local-and-global-mirror-configuration/90154 "2026-10-19T20:05:44Z")

</div>

Hi everyone! I want to make a change to how Swift handles local and global mirror configuration. Currently, if a project contains a local configuration file, any global configuration is ignored. This is different from h…

---

## [Pitch: Add CLI to edit global configuration of mirrors](https://forums.swift.org/t/pitch-add-cli-to-edit-global-configuration-of-mirrors/86091)

<div class="topic-metadata">

**Author:** [@samuelmurray](https://forums.swift.org/u/samuelmurray)\
**Replies:** 1\
**Last updated:** [July 7, 2026, 5:53pm UTC](https://forums.swift.org/t/pitch-add-cli-to-edit-global-configuration-of-mirrors/86091 "2026-07-07T17:53:04Z")

</div>

EDIT: Proposal added: SE-NNNN Add CLI for editing global mirrors configuration by samuelmurray · Pull Request #3265 · swiftlang/swift-evolution · GitHub Hi! I'm here to pitch an addition to the swift CLI, that lets the …

---

## [Getting an 'Invalid typeref' error from swift-reflection-dump](https://forums.swift.org/t/getting-an-invalid-typeref-error-from-swift-reflection-dump/77394)

<div class="topic-metadata">

**Author:** [@pookjw](https://forums.swift.org/u/pookjw)\
**Replies:** 5\
**Last updated:** [January 23, 2025, 2:51am UTC](https://forums.swift.org/t/getting-an-invalid-typeref-error-from-swift-reflection-dump/77394 "2025-01-23T02:51:02Z")

</div>

I built swift-reflection-dump using swift-6.0.3-RELEASE to dump a SwiftUICore binary, but I'm getting an 'Invalid typeref' error from output. How can I resolve this? /Volumes/Untitled/build/Ninja-RelWithDebInfoAssert/s…

---

## [Float16 v CGFloat + Mirror](https://forums.swift.org/t/float16-v-cgfloat-mirror/77297)

<div class="topic-metadata">

**Author:** [@tera](https://forums.swift.org/u/tera)\
**Replies:** 1\
**Last updated:** [January 20, 2025, 12:09am UTC](https://forums.swift.org/t/float16-v-cgfloat-mirror/77297 "2025-01-20T00:09:53Z")

</div>

Both Float16 and CGFloat are "struct". Why does Mirror API treat them differently? func printMirror\<T\>(\_ v: T) { let mirror = Mirror(reflecting: v) print("\\ndisplayStyle: \\(String(describing: mirror.displayStyl…

---

## [Efficiency of \`Mirror\`](https://forums.swift.org/t/efficiency-of-mirror/72459)

<div class="topic-metadata">

**Author:** [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 11:04pm UTC](https://forums.swift.org/t/efficiency-of-mirror/72459 "2024-06-13T23:04:17Z")

</div>

I thought in the olden days, using Mirror or any other reflection capability had a performance penalty. Is that still the case now? Or instead there is a higher cost, but no longer relatively massive enough to worry abou…

---

## [How safe is \`Mirror\` meant to be?](https://forums.swift.org/t/how-safe-is-mirror-meant-to-be/70612)

<div class="topic-metadata">

**Author:** [@bnickel](https://forums.swift.org/u/bnickel)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 5:30pm UTC](https://forums.swift.org/t/how-safe-is-mirror-meant-to-be/70612 "2024-03-12T17:30:45Z")

</div>

Some context: I have the following code that is meant to look up property names for view controllers: func getPropertyName(of target: UIResponder, in parent: UIResponder) -\> String? { for child in Mirror(refl…

---

## [Getting the size of Any value](https://forums.swift.org/t/getting-the-size-of-any-value/62843)

<div class="topic-metadata">

**Author:** [@tera](https://forums.swift.org/u/tera)\
**Replies:** 20\
**Last updated:** [February 28, 2024, 3:32am UTC](https://forums.swift.org/t/getting-the-size-of-any-value/62843 "2024-02-28T03:32:58Z")

</div>

This time I am drilling into Swift values without using objective-C APIs as in the previous case but by using the Mirror API. Good thing it works with structs as well as classes: func printValue(label: String?, valuePtr…

---

## [Mirror API improvement](https://forums.swift.org/t/mirror-api-improvement/53508)

<div class="topic-metadata">

**Author:** [@tera](https://forums.swift.org/u/tera)\
**Replies:** 0\
**Last updated:** [November 15, 2021, 8:46pm UTC](https://forums.swift.org/t/mirror-api-improvement/53508 "2021-11-15T20:46:24Z")

</div>

The other thread prompts the question: can Mirror API (in particular its Mirror.Child type, which is now typed as a tuple) include not just the name & value but also field's offset & size?

---

## [Using Mirror to access value of a property of an optional property of self](https://forums.swift.org/t/using-mirror-to-access-value-of-a-property-of-an-optional-property-of-self/45533)

<div class="topic-metadata">

**Author:** [@nacho4d](https://forums.swift.org/u/nacho4d)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 2:39pm UTC](https://forums.swift.org/t/using-mirror-to-access-value-of-a-property-of-an-optional-property-of-self/45533 "2021-03-10T14:39:22Z")

</div>

This might like a puzzle or educational/investigational purposes but actually it is a part of an app I work on ... Please consider these two structs: protocol ContainerBase { var responseId: String { get } } struct…
