Can’t change background color of the status bar and bottom
Change background color of the status bar and bottom
I am migrating from Storyboard to Swift UI.
Make tap animation on item inside ScrollView
I want the items inside LazyVGrid to have a tap modifier (change their scale) and at the same time be able to scroll. I set up a tap modifier for each element and it really works, but the ability to scroll the content disappears, but if I disable my custom tap effect, then scrolling becomes available again. How can I make a click effect and the ability to scroll the content at the same time?
AVPlayer’s control visibility change event?
import SwiftUI import AVKit struct VideoPlayerView: View { let videoURL: URL @State private var player: AVPlayer? // how to set it true/false based on AVPlayer controls visiblity? @State private var controlsAreVisible = true @State private var title = “” var body: some View { VStack { if let player = player { VideoPlayer(player: player) .onAppear […]
AVPlayer’s control visibility change event?
import SwiftUI import AVKit struct VideoPlayerView: View { let videoURL: URL @State private var player: AVPlayer? // how to set it true/false based on AVPlayer controls visiblity? @State private var controlsAreVisible = true @State private var title = “” var body: some View { VStack { if let player = player { VideoPlayer(player: player) .onAppear […]
How to Disable interativePopGestureRecognizer when Navigating from UIKit to SwiftUI View
I am navigating my swiftUI view from UIKit, And I am trying to disable back swipe, I did some R&D no code is working for me. I wanted to disable only in one controller not all the controller.
How to Disable interativePopGestureRecognizer when Navigating from UIKit to SwiftUI View
I am navigating my swiftUI view from UIKit, And I am trying to disable back swipe, I did some R&D no code is working for me. I wanted to disable only in one controller not all the controller.
Increase spacing between Text and underline of AttributedString in SwiftUI
I want to increase the spacing between the text and the underline. I tried using baselineOffset
, but it increases the bottom spacing of the text rather than the spacing between the text and the underline.
How to make this type of card component
I am just wondering what are a component to make a Ui design card.cause I saw a lot of these cool card design on pinterest and I was wondering how to make it. Like what are the component to make such a design with SwiftUI
How to make this type of card component
I am just wondering what are a component to make a Ui design card.cause I saw a lot of these cool card design on pinterest and I was wondering how to make it. Like what are the component to make such a design with SwiftUI
How to make this type of card component
I am just wondering what are a component to make a Ui design card.cause I saw a lot of these cool card design on pinterest and I was wondering how to make it. Like what are the component to make such a design with SwiftUI