on-internet
← Community

Slide View in SwiftUI

Stack Overflow ·

I have a project in UIKit, with a Calendar. I implemented a slide animation every time the month is changed. This was the code: /// Desliza una vista hacia derecha o izquierda /// /// - Parameter direccion: Dirección de desplazamiento func deslizarHacia(_ direccion:DireccionDeslizamiento, tipoTransicion: CATransitionType = .push) { let slideInFromLeftTransition = CATransition() // Customize the animation's properties slideInFromLeftTransition.type = CATransitionType.push slideInFromLeftTransition.subtype = convertToOptionalCATransitionSubtype((direccion == .derecha) ? CATransitionSubtype.fromL

Comments

Sign in or sign up to comment and upvote.

No comments yet.