How to return image in macro plugin which can be used in both swiftUI and storyboard projects

I have created a swift expression macro which returns image as below.

return "Image(systemName: \(literal: literalSegment.description))"

This macro is working fine with the SwiftUI projects. I would like to use same macro for storyboard (UIKit) projects.

Please suggest how to achieve it. Thanks in advance.

I would think you could assign it, programmatically, in the viewDidLoad function in the controller.

Hi Hacksaw,

Thanks for the replay. I need to achieve this one in the Swift Maco Plugin.