Set The Size and Type of #Preview With PreviewTrait
Daily Coding Tip 288
Last Tested on Xcode 15.0 beta 1When creating a Preview with the new iOS 17 #Preview macro, there is firstly an optional name. As with any optional that has a default value of nil, not adding anything is equivalent to passing nil. The default name that is displayed when a Preview has no name is unsurprisingly Preview.
Th…


