2 "name": "VLUniversalControl",
4 "summary": "VLUniversalControl is a Swift framework for easily adding paging.",
5 "swift_version": "5.0",
9 "homepage": "https://github.com/VitaliiDeveloper/VLUniversalControl",
12 "Vitalii Lavreniuk": "lavreniuk.vitalii@gmail.com"
14 "social_media_url": "https://twitter.com/vit_lavreniuk",
15 "frameworks": "UIKit",
17 "git": "https://github.com/VitaliiDeveloper/VLUniversalControl.git",
20 "source_files": "VLUniversalControl/**/*",
21 "exclude_files": "VLUniversalControl/**/*.plist",
22 "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```"