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
Reply to Click swiftUI buttons from another class
If you want to move all the button logic on a class, use a class referenced from the view, this class should be a @StateObject variable, and you can call yourClass.method() when the button is tapped on.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Identify App page is on SwiftUI or ViewController
As dar as I know, you can't.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to An Idea! Kids Mode | Safe Mode | Guest User
You can use the guided access iPhone feature. But it's recommended to look for a good parental control app.
Replies
Boosts
Views
Activity
Apr ’23
Reply to Deleting app during XCUITest generates "failed to launch" error
Same error. Any workaround? It seems like the launch app keeps a reference to the app we removed, so it tries to launch it, but the id that test is using does not exist (because the app is removed), so it throws an error and reinstalls the app. Yes, the test flow ended and all works as expected, but ... an error is shown on the result.
Replies
Boosts
Views
Activity
Apr ’23
Reply to App Icon colors don't match Display P3 color profile (16 bits / channel)
The color tone depends on the screen type, I mean, you will not see the same color on a screen with true tone on, as in others. Also if it's OLED or another type.
Replies
Boosts
Views
Activity
Apr ’23
Reply to Command SwiftEmitModule failed with a nonzero exit code
Please, paste the error and "build log" on the question.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Cannot create Sandbox Testers
Provide any screenshot with no sensitive data on it, to try to know what happens. In any case to keep in touch with Apple file a bug report on feedback assistant or ask for help with IT ticket support.
Replies
Boosts
Views
Activity
Apr ’23
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Como duplicar aplicativo?
Hi: This forum is for Apple developers, so, you're not getting a response about it. Contact apple support at https://support.apple.com/contact and ask them about your doubts and problems.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Help me understand .onAppear/.task aka app authentication state
You can use onChange(appState.isLogged) to reach your purpose, and about the other question, I would try to set the on appear modifier upper, maybe just after the scroll view, and if it doesn't work after the text padding. Let me know what happens.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Failed to build ContentView.swift
Remove derived data close from dock simulators and Xcode Open the terminal to run the following command: xcrun simctl --set previews delete all Try again and let me know if it works
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Dark mode switching modifies ObservedObject
Who owns the AllObjects? How do you instance the view? Does it happen if you use @StateObject instead of @ObservedObject? Let me know what happens.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
May ’23
Reply to Xcode cloud errors
I tried to solve it by adding a pre-action to remove simulators' cache, but it didn't solve it. The next step, change the simulators, and crossing fingers to overcome this Apple bug.
Replies
Boosts
Views
Activity
May ’23