- Added a star above the grass and added it to the animation. - Woke Client call 1:15 - 1:40 - Added Sidebar theme clicks and added userdefaults with checks for default loading. Also added to logout - Handled the Theme change from sidebar, also handled the default theme selected and loading it at the time of startup - Fixed issue of sidebar showing up, left side blacktint was not coming. It was the issue of ViewLifeCycle - Theme 2 Explore woka items size ratio updated for auto layouts - Worked on RootView Navigation.
28 lines
671 B
Swift
28 lines
671 B
Swift
//
|
|
// ViewButtonAnimation.swift
|
|
// WOKA
|
|
//
|
|
// Created by Bilal on 24/05/2024.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class ViewButtonAnimation {
|
|
|
|
static let sharedInstance = ViewButtonAnimation()
|
|
|
|
private init() {}
|
|
|
|
@objc func btnTapped(in viewController: UIViewController, view: UIView, completionHandler : @escaping () -> Void) {
|
|
// Apply click effect animation
|
|
UIView.animate(withDuration: 0.1, animations: {
|
|
view.transform = CGAffineTransform(scaleX: 0.9, y: 0.9)
|
|
}) { _ in
|
|
UIView.animate(withDuration: 0.1) {
|
|
view.transform = .identity
|
|
completionHandler()
|
|
}
|
|
}
|
|
}
|
|
}
|