Fixed by creating a swift file and bridge in Mac OS Earlier I was using IOS.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: