Sample code for custom Authorization Plugin based on Swift for mac OS

I am trying to extend the login screen in MacOS Catalina.
I've found the Objective-C based example (https://github.com/skycocker/NameAndPassword).
But I need its Swift based version.
Answered by rehan199 in 632050022
The Objective-C or C based examples https://github.com/tburgin/PSU_2015 and https://github.com/OCForks/NullAuthPlugin don't solve the issue. I need its Swift based version.

Also those examples don't allow us to add new 'labels' and text fields in the login screen. I don't want to display a cocoa application kind of thing in login screen as it ruins the proper feel of login screen.

And all these requirements are actually fulfilled by Microsoft. There are examples which cover all the required stuff.
An excellent example by Microsoft for replacing login screen in Windows is this:
https://github.com/Aliceljm1/WinSdkDemo/tree/41e7fb64f8711b7415b0b5d6fa4b3aa93dfcc4e5/v7.1/Samples/security/credentialproviders

Accepted Answer
The Objective-C or C based examples https://github.com/tburgin/PSU_2015 and https://github.com/OCForks/NullAuthPlugin don't solve the issue. I need its Swift based version.

Also those examples don't allow us to add new 'labels' and text fields in the login screen. I don't want to display a cocoa application kind of thing in login screen as it ruins the proper feel of login screen.

And all these requirements are actually fulfilled by Microsoft. There are examples which cover all the required stuff.
An excellent example by Microsoft for replacing login screen in Windows is this:
https://github.com/Aliceljm1/WinSdkDemo/tree/41e7fb64f8711b7415b0b5d6fa4b3aa93dfcc4e5/v7.1/Samples/security/credentialproviders

Sample code for custom Authorization Plugin based on Swift for mac OS
 
 
Q