Latest 0.1.0
Homepage https://github.com/Appnroll/jalapeno-tiles
License MIT
Platforms ios 10.0
Frameworks UIKit
Authors

Version
License
Platform

Example

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

Requirements

iOS 10.0+
Xcode 10.0+

Installation

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

pod 'JalapenoTiles'

Usage

  1. Import JalapenoTiles in the view where you want to use it:
import JalapenoTiles
  1. Create Array with JalapenoModel in which you declare all items displayed in Tails.
let data = [JalapenoModel(id: "1",title: "First Item", imageName: "ImageName", price: 10.99), 
            JalapenoModel(id: "2",title: "Second Item", imageName: "ImageName", price: 29.99)]

id : String – identifier (to find later Your item in a basket)
title : String – title displayed in cell
imageName: String – image name wich displayed in cell
price: Double – number displayed on right top in cell

  1. Create an instance of JalapenoTilesView with the data created above:
let jalapenioCollectionView = JalapenoTilesView(data: data)
  1. Use autolayout or another code based method to set up sizes (I use VFL):
self.view.addConstraintsWithFormat(format: "H:|[v0]|", views: jalapenioCollectionView)
self.view.addConstraintsWithFormat(format: "V:|[v0]|", views: jalapenioCollectionView)

Customization

showPriceTags: Bool – Responsible for that if you want the price tag to be displayed or not.
textColor: UIColor – Changes the title label color in the cell.
accentColor: UIColor – Chanes the price label, count label and buttons (add,remove) color in the cell

Author

Namedix, [email protected]

License

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

Latest podspec

{
    "name": "JalapenoTiles",
    "version": "0.1.0",
    "summary": "A simple way to create a store screen.",
    "description": "The library was created to help developers create store screens. It adapts to each screen in a very simple and transparent way.",
    "homepage": "https://github.com/Appnroll/jalapeno-tiles",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Namedix": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Appnroll/jalapeno-tiles.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/appnroll",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "JalapenoTiles/**/*.{swift}",
    "resources": "JalapenoTiles/Assets/*.{png,jpeg,jpg,storyboard,xib,xcassets}",
    "frameworks": "UIKit",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This