mirror of
https://github.com/xtool-org/xtool.git
synced 2026-11-07 22:14:35 +01:00
10 lines
360 B
Swift
10 lines
360 B
Swift
import Foundation
|
|
|
|
public func exampleDynamicLibraryFunction() -> String {
|
|
guard let bundled = #bundle.url(forResource: "response", withExtension: "txt")
|
|
else { fatalError("Missing bundled.txt resource") }
|
|
// swiftlint:disable:next force_try
|
|
let contents = try! String(contentsOf: bundled, encoding: .utf8)
|
|
return "Hello \(contents)"
|
|
}
|