rust-interop/swift/MySwiftClass.swift

9 lines
162 B
Swift
Raw Normal View History

2024-08-19 10:52:05 +00:00
// swift/MySwiftClass.swift
import Foundation
@_silgen_name("swift_function")
func swiftFunction() -> Int32 {
print("Swift function called")
return 42
}