SwiftUI now support for Mesh Gradients.
iOS
How to pass Data between Views in SwiftUI using a property?
I will demonstrate today how to pass data between views in the SwiftUI by using property.
How to populate JSON response in SwiftUI List?
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.
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!