Can Widget detect device type?

I want to display a widget content depending on wether iPhone or iPad.
Because Widget doesn't support UIKit, I cannot use UIDevice to that.

Can Widget detect device type?

Thanks
You can use UIDevice in Widget Extension.
Thanks. I confirmed It works.
Can Widget detect device type?
 
 
Q