This commit is contained in:
DDIsFriend
2023-08-18 17:28:57 +08:00
commit f0e8a1709d
4282 changed files with 192396 additions and 0 deletions

View 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
View 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
View File

@@ -0,0 +1,29 @@
# DDAutoUIKit_Private
[![CI Status](https://img.shields.io/travis/DDIsFriend/DDAutoUIKit_Private.svg?style=flat)](https://travis-ci.org/DDIsFriend/DDAutoUIKit_Private)
[![Version](https://img.shields.io/cocoapods/v/DDAutoUIKit_Private.svg?style=flat)](https://cocoapods.org/pods/DDAutoUIKit_Private)
[![License](https://img.shields.io/cocoapods/l/DDAutoUIKit_Private.svg?style=flat)](https://cocoapods.org/pods/DDAutoUIKit_Private)
[![Platform](https://img.shields.io/cocoapods/p/DDAutoUIKit_Private.svg?style=flat)](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.