Skip to content

Commit

Permalink
Reintroduce exported import of SargonUniFFI which we REALLY want from… (
Browse files Browse the repository at this point in the history
  • Loading branch information
CyonAlexRDX authored Apr 17, 2024
1 parent 3bc6a31 commit 768f833
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apple/Sources/Sargon/Exports.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// ADVANTAGE:
// This makes it possible to write `Sargon.AppearanceId` in iOS Wallet App, instead of having to write `SargonUniFFI.AppearanceId`,
// which is kind of important since `SargonUniFFI.AppearanceID` will not compile, since it is a typealias defined by `Sargon`.
// So we would like iOS Wallet App to not have to be aware of where the types are defined, either `SargonUniFFI` or `Sargon`.
//
// DISADVANTAGE:
// Here in Sargon we can refer to symbols inside of `SargonUniFFI` without having to do `import SargonUniFFI` in some file `Foo.swift`
// unfortunately since Xcode 15 the `@_exported import SargonUniFFI` only helps with COMPILATION but NOT code HIGHLIGHTING, meaning that
// we get no code highlighting of those `SargonUniFFI` symbols inside of `Foo.swift`.
@_exported import SargonUniFFI

0 comments on commit 768f833

Please sign in to comment.