In my iOS project, in order to count bytes for my png image called "toto" I use this line below in the console:
print(UIImage(imageLiteralResourceName: "toto").pngData()!.count)
But for my MacOS project, UIImage cannot be used so what equivalent can I use to achieve the same result?
Thanks.