Reply to No macro named 'Preview' - error check if you have import UIKit for me this import resolve UI Frameworks SwiftUI 4d