- Worked on autolayout and did fixes for screen iphone 6s and iphone 11pro max resolutions
- 12-1 woka meeting - Did Rnd on Container view. This will help for theming - Made a custom class to add the child view and remove child view. - Added Moon if the theme color is night - added the Ca animation for the stars to show glowing effect - Mapped all the stars with the delay time - Handled the theme switch
This commit is contained in:
27
WOKA/Helpers/Animation/ViewButtonAnimation.swift
Normal file
27
WOKA/Helpers/Animation/ViewButtonAnimation.swift
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// 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 ) {
|
||||
// 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*/()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user