You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
967 B

//
// BadgeAppearance.swift
// BadgeAppearance
//
// Created by InKwon Devik Kim on 25/06/2019.
// Copyright © 2019 InKwon Devik Kim. All rights reserved.
//
import UIKit
public struct BadgeAppearance {
public var textSize: CGFloat
public var textAlignment: NSTextAlignment
public var borderColor: UIColor
public var borderWidth: CGFloat
public var allowShadow: Bool
public var backgroundColor: UIColor
public var textColor: UIColor
public var animate: Bool
public var duration: TimeInterval
public var distanceFromCenterY: CGFloat
public var distanceFromCenterX: CGFloat
public var font: UIFont = .sanfrancisco(.medium, size: 9)
public init() {
textSize = 9
textAlignment = .center
backgroundColor = .clear
textColor = .red
animate = true
duration = 0.2
borderColor = .themeRed
borderWidth = 0
allowShadow = false
distanceFromCenterX = 7
distanceFromCenterY = -8
}
}