How to call winapi text service framework in Swift?

I need to call windows API text service framework from swift. Could anyone provide a simple example or guide how to do this?

I don't know what is "windows API text service framework", but you can

import WinSDK

in your source code, which will give you access to some Windows API.

It probably won't work because TSF is not declared in the winsdk.modulemap.