How to restore screen brightness when closing iOS app
One of the screens in my app shows a barcode. When a user navigates to the screen (it is a tab in my tabview) I set the screen brightness to the maximum. When a user navigates away from the screen I restore the screen brightness to what it was. The brightness isn’t restored when the user closes the app, either by moving it to the background or closing it completely. How can I restore the screen brightness when a user closes the app?
Swift – Sticky Table
Does anyone know how to implement a view (table/grid/collection) like these?
Swift – Sticky Table
Does anyone know how to implement a view (table/grid/collection) like these?
SwiftUI sheet size becomes 0 when changing theme (iOS 16 bug?)
I’m stuck with a weird SwiftUI bug. I have a sheet that’s supposed to size itself based on its content (using PreferenceKey + GeometryReader). Everything works fine until I try to change the user interface style using overrideUserInterfaceStyle.
iOS SwiftUI Image copy after applying effects
I have an iOS image to which I have applied scale, offset and rotation to, and then clipped. How can I get a copy of the image (or save a copy) with these effects applied?
How to get double tap gesture in ios15
I would like to add Douletap gesture in my image and finding tapped location using SpatialTapGeasture, but it’s allowing only ios 16+ versions.
So how to check below versions also to find tapped location.
How to get double tap gesture in ios15
I would like to add Douletap gesture in my image and finding tapped location using SpatialTapGeasture, but it’s allowing only ios 16+ versions.
So how to check below versions also to find tapped location.
Tapping SwiftUI Alert button fetches wrong data
In code below, tapping on Annotation displays an Alert with two buttons, “Cancel” and “Buy”.
Extra Space at the Bottom of Text in Multiline TextField with Custom Font in SwiftUI
I’m encountering an issue in SwiftUI when using a custom font in a TextField with the axis property set to .vertical. Specifically, there is extra space at the bottom of the text in the TextField. This problem does not occur when the axis is set to .horizontal, nor does it occur when using the system font.
SwiftUI Speak function using AVSpeechSynthesizer is not working
I am using AVSpeechSynthesizer to speak some message in SwiftUI. Below is my View: