Relative Content

Tag Archive for iosswiftswiftui

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 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