How to determine if MacBook or iMac in swiftUI

I have an macOS app written in swiftUI and I would like that app to show different contents depending on if you open it on an MacBook or an iMac. Is it possible to do in SwiftUI? If so could someone please help me with that.

Me2 to get it further can I get the specific device infos? thanks🙏

How to determine if MacBook or iMac in swiftUI
 
 
Q