ScalableLayoutKit
is a lightweight SDK that lets you design scalable, consistent user interface (UI) across any screen size of Apple devices.
ScalableLayoutKit
reduces the lots of the time and efforts of a developer to make consistent UI design of all possible device screen sizes such as iPhone XS Max
, iPhone XS
, iPhone XR
, iPhone X
, iPhone 8 Plus
, iPhone 8
, iPhone 7 Plus
, iPhone 7
,iPhone 6s Plus
,iPhone 6s
& iPhone SE
.
Just use only one method of ScalableLayoutKit:
public func scaledLayoutDesign(from srcScreen: Screen = .iPhone6)
import ScalableLayoutKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Here we just need to passed based or source design screen name only.
self.view.scaledLayoutDesign(from: .iPhoneX)
}
}
If you use ScalableLayoutKit
in your app, I'd love to hear about it from you. You can reach me through Twitter or Email.
To run the example project, clone the repo, and run pod install
from the Example directory first.
ScalableLayoutKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ScalableLayoutKit'
If you wish to contact me, email at: keshavvbe@gmail.com
ScalableLayoutKit is available under the MIT license. See the LICENSE file for more info.