macosSwiftImplTemplate function
Implementation
String macosSwiftImplTemplate(String className) => '''
import Foundation
/// Native implementation of Hybrid${className}Protocol on macOS.
public class ${className}Impl: NSObject, Hybrid${className}Protocol {
public func add(a: Double, b: Double) -> Double {
return a + b
}
public func getGreeting(name: String) async throws -> String {
return "Hello, \\(name) from macOS!"
}
}
''';