Files
Woka_Native_iOS/WOKA/Helpers/SwipeTableViewFont.swift
BilalKhanWDI 22796ec0b1 - Made new module for Cart
- Finalised Listing of CartList
- Added pull to refresh and swipe to delete
- Handled manual delete on icon click
- Made CouponCart listing view controller
- Added api to fetch the coupons
- Added api to apply coupon with model
- Made a coupon discount stack , will show up
2024-07-23 19:53:12 +05:30

36 lines
1.1 KiB
Swift

//
// SwipeTableViewFont.swift
// WOKA
//
// Created by MacBook Pro on 23/07/24.
//
import UIKit
extension UITableView{
func swipeGestureFont(font : UIFont){
if #available(iOS 13.0, *) {
for subview in self.subviews {
if NSStringFromClass(type(of: subview)) == "_UITableViewCellSwipeContainerView" {
for swipeContainerSubview in subview.subviews {
if NSStringFromClass(type(of: swipeContainerSubview)) == "UISwipeActionPullView" {
for case let button as UIButton in swipeContainerSubview.subviews {
button.titleLabel?.font = font
}
}
}
}
}
} else {
for subview in self.subviews {
if NSStringFromClass(type(of: subview)) == "UISwipeActionPullView" {
for case let button as UIButton in subview.subviews {
button.titleLabel?.font = font
}
}
}
}
}
}