Skip to content

Commit

Permalink
public fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatFish committed Apr 21, 2022
1 parent 569057a commit 0819160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/did-motif-ios/DIDMotifUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import UIKit

public class DIDMotifUtils {
static let backgroundColors = ["#E94E4E", "#E41115", "#E96B4E", "#E5502E", "#E98F4E", "#E57A2E", "#E98F4E", "#E5A82E", "#DACD5D", "#DAC825",
public static let backgroundColors = ["#E94E4E", "#E41115", "#E96B4E", "#E5502E", "#E98F4E", "#E57A2E", "#E98F4E", "#E5A82E", "#DACD5D", "#DAC825",
"#BDD13D", "#C8E31C", "#AEE94E", "#7FD558", "#52CC19", "#4FC469", "#59DE9C", "#19CC73", "#5ED9D1", "#19CCC0",
"#4ED7E9", "#19B7CC", "#45ACE8", "#1C97DE", "#4E68E9", "#2E4DE5", "#7F4EE9", "#682EE5", "#BE65E7", "#AF40E2",
"#DF58C2", "#E94E8F"]
Expand Down Expand Up @@ -80,7 +80,7 @@ public extension DIDMotifUtils {
/// 根据当前frame的任一边长算出的居中path
/// - Parameter side: 当前frame的长或宽(理论讲DIDMotifView的frame应该都是长宽相等的)
/// - Returns: path
static func hexagonPathWith(side: CGFloat) -> UIBezierPath {
public static func hexagonPathWith(side: CGFloat) -> UIBezierPath {
let sideLength = side/2 // 六边形边长
let path = UIBezierPath()
let utilAngle = Double.pi/3 // 60°
Expand Down

0 comments on commit 0819160

Please sign in to comment.