2024-06-03 20:02:39 +05:30
|
|
|
//
|
|
|
|
|
// AboutUsVc.swift
|
|
|
|
|
// WOKA
|
|
|
|
|
//
|
|
|
|
|
// Created by MacBook Pro on 03/06/24.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
|
|
class AboutUsVc: UIViewController {
|
|
|
|
|
|
|
|
|
|
@IBOutlet weak var topView: UIView!
|
|
|
|
|
|
|
|
|
|
override func viewDidLoad() {
|
|
|
|
|
super.viewDidLoad()
|
|
|
|
|
self.title = "About Woka"
|
|
|
|
|
// Do any additional setup after loading the view.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
|
|
|
super.viewWillAppear(animated)
|
2024-06-21 19:35:40 +05:30
|
|
|
self.navigationController?.setColor(color: .black)
|
2024-06-03 20:02:39 +05:30
|
|
|
navigationController?.setNavigationBarHidden(false, animated: animated)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override func viewWillDisappear(_ animated: Bool) {
|
|
|
|
|
super.viewWillDisappear(animated)
|
|
|
|
|
navigationController?.setNavigationBarHidden(true, animated: animated)
|
2024-06-21 19:35:40 +05:30
|
|
|
self.navigationController?.setColor(color: .white)
|
2024-08-13 20:02:41 +05:30
|
|
|
if self.isMovingFromParent {
|
|
|
|
|
// Back button was pressed
|
|
|
|
|
PersistentStorage.shared.addOthersCount()
|
|
|
|
|
}
|
2024-06-03 20:02:39 +05:30
|
|
|
}
|
2024-06-21 19:35:40 +05:30
|
|
|
|
2024-06-03 20:02:39 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BottomHalfCircleView: UIView {
|
|
|
|
|
override func draw(_ rect: CGRect) {
|
|
|
|
|
// Define the center and radius for the circle
|
|
|
|
|
let center = CGPoint(x: rect.midX, y: rect.midY)
|
|
|
|
|
let radius = rect.width / 2
|
|
|
|
|
|
|
|
|
|
// Create a UIBezierPath for the bottom half circle
|
|
|
|
|
let path = UIBezierPath(arcCenter: center, radius: radius, startAngle: 0, endAngle: CGFloat.pi, clockwise: true)
|
|
|
|
|
|
|
|
|
|
// Close the path to ensure it's a half circle
|
|
|
|
|
path.close()
|
|
|
|
|
|
|
|
|
|
// Set the fill color
|
|
|
|
|
UIColor.red.setFill()
|
|
|
|
|
|
|
|
|
|
// Fill the path
|
|
|
|
|
path.fill()
|
|
|
|
|
}
|
|
|
|
|
}
|