69

GitHub - LinXunFeng/SwiftyFitsize: ?Swifty screen adaptation solution

 5 years ago
source link: https://github.com/LinXunFeng/SwiftyFitsize
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

SwiftyFitsize

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

SwiftyFitsize is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SwiftyFitsize'

Usage

100~
UIFont.systemFont(ofSize: 14)~
CGPoint(x: 10, y: 10)~
CGRect(x: 10, y: 10, width: 100, height: 100)~
UIEdgeInsetsMake(10, 10, 10, 10)~

// modify reference width,default 375
SwiftyFitsize.reference(width: 414)

Exhibition

image

Author

LinXunFeng, [email protected]

License

SwiftyFitsize is available under the MIT license. See the LICENSE file for more info.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK