https://github.com/keshavvishwkarma/scalablelayoutkit
Scalable Layout Kit lets you design scalable, consistent & adaptive user interface (UI) for iOS.
https://github.com/keshavvishwkarma/scalablelayoutkit
adaptive-design adaptive-layouts attributedstring attributedtext device-sizes font-size ios iphone layout scalable scalable-layout-design scalablelayoutkit screen-scale screen-size sizes text-scale uikit user-interface
Last synced: about 1 month ago
JSON representation
Scalable Layout Kit lets you design scalable, consistent & adaptive user interface (UI) for iOS.
- Host: GitHub
- URL: https://github.com/keshavvishwkarma/scalablelayoutkit
- Owner: keshavvishwkarma
- License: mit
- Created: 2018-01-17T01:33:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T20:12:09.000Z (over 5 years ago)
- Last Synced: 2025-03-23T18:50:02.073Z (2 months ago)
- Topics: adaptive-design, adaptive-layouts, attributedstring, attributedtext, device-sizes, font-size, ios, iphone, layout, scalable, scalable-layout-design, scalablelayoutkit, screen-scale, screen-size, sizes, text-scale, uikit, user-interface
- Language: Swift
- Homepage:
- Size: 55.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScalableLayoutKit
[](https://travis-ci.org/keshavvishwkarma/ScalableLayoutKit)
[](https://cocoapods.org/pods/ScalableLayoutKit)
[](https://cocoapods.org/pods/ScalableLayoutKit)
[](https://cocoapods.org/pods/ScalableLayoutKit)`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`.
## Usage
Just use only one method of ScalableLayoutKit:
```swift
public func scaledLayoutDesign(from srcScreen: Screen = .iPhone6)
```##### Using ScalableLayoutKit
```swift
import ScalableLayoutKitclass 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].
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
ScalableLayoutKit is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'ScalableLayoutKit'
```## Author
If you wish to contact me, email at: [[email protected]](mailto:[email protected])
[](https://github.com/keshavvishwkarma/)
## License
ScalableLayoutKit is available under the MIT license. [See the LICENSE](./LICENSE) file for more info.
[Twitter]: https://twitter.com/keshav_Vishwkar
[Email]: mailto:[email protected]