Sign in

iOS Team / CNLiveMateCode · Files

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • CNLiveMateCode
  • metaCode
  • Classes
  • Main
  • Util
  • CNLiveAdaptTool.swift
  • 商家上滑逻辑 , 未认证禁止左右滑
    81b032f8
    张旭 authored
    2023-11-02 17:23:04 +0800  
    Browse Code »
CNLiveAdaptTool.swift 331 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//
//  CNLiveAdaptTool.swift
//  metaCode
//
//  Created by zx on 2023/11/2.
//

import Foundation

class CNLiveAdaptTool:NSObject{
    class func adaptLength(length:CGFloat) -> CGFloat{
        
        let multiple = KSreenWidth / 375.0
        let f_adapt_length = floor(length * multiple)
        return f_adapt_length
    }
}