Post

Replies

Boosts

Views

Activity

Reply to Where to store/cache downloaded videos - TikTok clone
For images, NSCache is a good way, even I think, that all these kinds of apps use a preview Image before the video start. For large data maybe it's better to download the video and cache it on cachesDirectory using the file manager, writing the data on a file, and then, before fetching from the internet the second time, you can see if you have it on the cachesDirectory. If you'll find the file use its URL to make your logic with it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’23
Reply to Deeplink Security
I think that there's no way to do that because the Apple app site association json that you provide on your website has to have data that matches your app identifier. The app identifier or bundle identifier it's unique. The problem could come up when you are using a redirect on your site with the scheme URL, in that case, whichever app could set your scheme to open their app.
Topic: Privacy & Security SubTopic: General Tags:
Apr ’23
Reply to TextField does not work correctly
Hi @alextim123, I think you're using wrongly the binding, I mean, a binding usually is injected directly from a view that owns a state to another view for the next purpose, when you change something in one view, then the other needs the data updated. In that case, your Problem Store is the object which owns the real data, and it is not being retained by anyone (as far as I can see). So the suggestion is to use an @StateObject var problemStore in the first view, pass a binding to the second one, or use an @StateObject in the first and @ObservedObject in the second one. By Doing this, you avoid the redraw of the view and remove your data on the text field because the data is stored in the logic class.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23