Today I will show you how to display the data from the JSON API response to list view of SwiftUI.
How to prevent screenshot for UIView in iOS?
iOS – Apple provides screenshot detection notification but not providing direct solution for prevention.
Here I found solution for preventing screenshot taking from the UIView. It’s a simple extension of the UIView that allows to hide it from screen-capturing and also from screen recording. The solution uses ability of UITextField to hide a password from capturing.
Usage:
viewSecure.preventScreenshot()
So, when you take screenshot the logic of text field secure entry (password text field) will not allow to take screenshot of that part.
ScrollView Screenshot Prevention
Update: Here is recursive function for preventing screenshot.
Support
If you like then Buy me a coffee ☕️
Conclusion
Let me know if you have any questions, comments, or feedback – contact me on Twitter.
Stay Safe At Home. Learn Something New. Share To The World.
Happy Coding 🙂
How to add alternate App Icon for A/B testing?
Apple didn’t provided all the details in documentation related to A/B testing on AppIcon. So, here I am writing all steps in this tutorial.
iOS – Here is the solution for “Error Analyzing App Version”
Right now many users are getting this issue due to App Store outage. Here is some solution for that.
How to add SpriteKit Particles in SwiftUI?
SpriteKit gives inbuilt great animated particles, we can take advantage of it to create nice animated splash screen or scratch card win celebration screen!
How to create different type of picker in SwiftUI?
Picker is a control in SwiftUI which allows you to select a value from a list of possible options. There are many types of inbuilt pickers coming in SwiftUI and it’s really easy to implement.
What’s new in Xcode 13.3?
Xcode 13.3 includes SDKs for iOS 15.4, iPadOS 15.4, tvOS 15.4, watchOS 8.5, and macOS Monterey 12.3. Xcode 13.3 requires a Mac running macOS Monterey 12 or later.
Build System
The build system and Swift compiler have a new mode that better utilizes available cores, resulting in faster builds for Swift projects. The mode is opt-in, and you can enable it globally with the following user default:
Apple Introduced iPhone, iPad, and many more in Sep 2021
New Apple TV+ Series
Apple plans to release a number of new shows and movies in 2021, and the premiere dates they have shown in this apple event.