saoudrizwan / Disk

Easily persist structs, images, and data on iOS
MIT License
3.1k stars 170 forks source link

Added tvOS platform #9

Closed JacopoMangiavacchi closed 6 years ago

JacopoMangiavacchi commented 6 years ago

Hi Saoud,

first of all thanks for your very useful framework. I'm using it on a tvOS project and I just added here a tvOS platform to the pod spec and to the Xcode project.

Please consider to merge or just to create the tvOS platform support by yourself.

Thanks, Jacopo

saoudrizwan commented 6 years ago

Hey @JacopoMangiavacchi, thank you for your support!

I'm not too familiar with tvOS, but from what I can gather, local persistence isn't recommended for tVOS as data is purged regularly and Apple recommends developers use iCloud to store any data. See: https://developer.apple.com/library/content/documentation/General/Conceptual/AppleTV_PG/iCloudStorage.html#//apple_ref/doc/uid/TP40015241-CH10-SW1

You can use UserDefaults for up to 500 kb though.

So I don't believe Disk is usable for tvOS, unfortunately. Let me know if I'm missing something.

JacopoMangiavacchi commented 6 years ago

You're right but I still persist caching temporary data that I don't want to keep in memory