Latest 1.0.0
Homepage https://github.com/LesykMelnychuk/ScalableItems
License MIT MIT License

Copyright (c) 2018 Les

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.

Platforms ios 9.0, requires ARC
Dependencies DeviceKit
Frameworks UIKit
Authors

GitHub license

UI elements that are proportionally changing their size to fit the screen size, without line of code.

Installation

CocoaPods

Add pod 'ScalableItems' to your Podfile

Manual

Simply drop neccessary files into your project and it is ready to use.

Usage

  1. Create a new class that subclass’ one of ‘scalable class’ like

    class CustomView: ScalableLabel {
    
    }
  2. If you need auto resized text label – place a UILabel and change Class to ScalableLabel
    Label:
    Set custom class

    Constaint:

    Set custom height constraint class
    Set custom width constraint class

  3. Design your auto text scalable labels and textfields

  4. If you want to have library available everywere in project – just use this code in AppDelegate or in other suitable place:
    @_exported import ScalableItems

Thanks

  • To all Moxi team

Contact

Find me on LinkedIn

License

ScalableItems is released under an MIT license. See LICENSE for more information.

Release Notes

Version 1.0.0

  • Initial release

Latest podspec

{
    "name": "ScalableItems",
    "platforms": {
        "ios": "9.0"
    },
    "version": "1.0.0",
    "summary": "Forget about updating UI for every screen, use autoresizing items.",
    "requires_arc": true,
    "authors": {
        "Les Melnychuk": "[email protected]"
    },
    "homepage": "https://github.com/LesykMelnychuk/ScalableItems",
    "source": {
        "git": "https://github.com/LesykMelnychuk/ScalableItems.git",
        "branch": "master",
        "tag": "1.0.0"
    },
    "frameworks": "UIKit",
    "dependencies": {
        "DeviceKit": []
    },
    "source_files": "ScalableItems/**/*.{swift}",
    "swift_version": "4.2",
    "license": {
        "type": "MIT",
        "text": "  MIT Licensenn  Copyright (c) 2018 Lesn  n  Permission is hereby granted, free of charge, to any person obtaining a copyn  of this software and associated documentation files (the "Software"), to dealn  in the Software without restriction, including without limitation the rightsn  to use, copy, modify, merge, publish, distribute, sublicense, and/or selln  copies of the Software, and to permit persons to whom the Software isn  furnished to do so, subject to the following conditions:n  n  The above copyright notice and this permission notice shall be included in alln  copies or substantial portions of the Software.n  n  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORn  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,n  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEn  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERn  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,n  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THEn  SOFTWARE.n"
    }
}

Pin It on Pinterest

Share This