initial
This commit is contained in:
22
Pods/DDAutoUIKit_Private/DDAutoUIKit_Private/Classes/AutoUI.swift
generated
Normal file
22
Pods/DDAutoUIKit_Private/DDAutoUIKit_Private/Classes/AutoUI.swift
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
import UIKit
|
||||
|
||||
@inlinable public func auto(_ pt:CGFloat) -> CGFloat {
|
||||
let scale = AutoUI.default.scale
|
||||
return pt * scale
|
||||
}
|
||||
|
||||
open class AutoUI {
|
||||
public static let `default` = AutoUI()
|
||||
|
||||
public var scale : CGFloat = 1
|
||||
|
||||
public func getScale(size:CGFloat) -> CGFloat {
|
||||
scale = size / UIScreen.main.bounds.size.width
|
||||
return scale
|
||||
}
|
||||
|
||||
@inlinable public func auto(_ pt:CGFloat) -> CGFloat {
|
||||
let scale = AutoUI.default.scale
|
||||
return pt * scale
|
||||
}
|
||||
}
|
||||
19
Pods/DDAutoUIKit_Private/LICENSE
generated
Normal file
19
Pods/DDAutoUIKit_Private/LICENSE
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2023 DDIsFriend <DDIsFriend@163.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
29
Pods/DDAutoUIKit_Private/README.md
generated
Normal file
29
Pods/DDAutoUIKit_Private/README.md
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
# DDAutoUIKit_Private
|
||||
|
||||
[](https://travis-ci.org/DDIsFriend/DDAutoUIKit_Private)
|
||||
[](https://cocoapods.org/pods/DDAutoUIKit_Private)
|
||||
[](https://cocoapods.org/pods/DDAutoUIKit_Private)
|
||||
[](https://cocoapods.org/pods/DDAutoUIKit_Private)
|
||||
|
||||
## Example
|
||||
|
||||
To run the example project, clone the repo, and run `pod install` from the Example directory first.
|
||||
|
||||
## Requirements
|
||||
|
||||
## Installation
|
||||
|
||||
DDAutoUIKit_Private is available through [CocoaPods](https://cocoapods.org). To install
|
||||
it, simply add the following line to your Podfile:
|
||||
|
||||
```ruby
|
||||
pod 'DDAutoUIKit_Private'
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
DDIsFriend, DDIsFriend@163.com
|
||||
|
||||
## License
|
||||
|
||||
DDAutoUIKit_Private is available under the MIT license. See the LICENSE file for more info.
|
||||
Reference in New Issue
Block a user