blob: 073221cc67261d87eedf95c9d966ec3b128c1c54 [file] [log] [blame]
{
"name": "VLUniversalControl",
"version": "0.1.1",
"summary": "VLUniversalControl is a Swift framework for easily adding paging.",
"swift_version": "5.0",
"platforms": {
"ios": "11.0"
},
"homepage": "https://github.com/VitaliiDeveloper/VLUniversalControl",
"license": "MIT",
"authors": {
"Vitalii Lavreniuk": "lavreniuk.vitalii@gmail.com"
},
"social_media_url": "https://twitter.com/vit_lavreniuk",
"frameworks": "UIKit",
"source": {
"git": "https://github.com/VitaliiDeveloper/VLUniversalControl.git",
"tag": "v0.1.1"
},
"source_files": "VLUniversalControl/**/*",
"exclude_files": "VLUniversalControl/**/*.plist",
"description": "## Usage\n\n```swift\nimport VLUniversalControl\n```\n\n```swift\nself.universalControlView = VLUniversalControlView()\n//give your frame size for VLUniversalControlView\n//or add constraints\n//item height will equel to (VLUniversalControlView *)universalControlView.frame.size.height\nself.view.addSubview(self.universalControlView) \n\n// Each as you add new attributes control will be update\nuniversalControlView.items.set(items: [standartViewAttribute,...,standartViewAttribute])\n//To append item\nuniversalControlView.items.append(item:standartViewAttribute)\n```\n\nAvailable item attributes:\n```swift\n// Only for title and image\nlet standartViewAttribute = VLStandartViewCellAttribute()\n // If alignment only image it will be non creating\n standartView.title = \"Your Title\" \n // If alignment only title it will be non creating\n standartView.imageName = \"Your Image\" \n standartView.alignment = .onlyImage\n\n// Only for adding inside container `yourview`\nlet containerViewAttribute = VLContainerViewCellAttribute()\n containerView.view = yourView\n```\n\nVLUniversalControlView already have a lot different style properties.\nYou can add style to item or for items.\n\n### For item\n```swift\nlet standartView = VLStandartViewCellAttribute()\n // only for cell style\n standartView.style = standartViewStyle \n```\n\n### For items\n```swift\nvar style = VLCollectionViewStyle()\n style.backgroundColor = UIColor.brown\n style.itemsBackgroundColor = UIColor.red\n style.itemWidth = 175\n style.spacingBetweenItems = 5\n \n style.itemsBorderColor = UIColor.green\n style.itemBorderRadius = ([.layerMaxXMaxYCorner], 5)\n style.itemsBorderSide = [.top, .bottom]\n style.itemsBorderWidth = 10\n style.itemsBorderColor = .green\n \n self.universalControlView.optionsUniversalControl.style = style\n```"
}