Skip to content

Instantly share code, notes, and snippets.

Vivek Gupta vivekguptaraw

View GitHub Profile
View RightTableHeaderView.swift
//
// RightTableHeaderView.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 14/05/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
import UIKit
@vivekguptaraw
vivekguptaraw / HRScrollTableView.swift
Created May 14, 2018
Custom Horizontal+Vertical table view source code
View HRScrollTableView.swift
//
// HRScrollTableView.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 11/05/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
@vivekguptaraw
vivekguptaraw / HRScrollDemo.swift
Last active May 14, 2018
Demo view controller.
View HRScrollDemo.swift
//
// HRScrollDemo.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 11/05/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
import UIKit
@vivekguptaraw
vivekguptaraw / TableViewCustomController.swift
Last active May 8, 2018
Dynamic UI inside TableView generated with collection view as carousel in one cell
View TableViewCustomController.swift
//
// TableViewCustomController.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 26/04/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
import UIKit
@vivekguptaraw
vivekguptaraw / CustomGeneratedView.swift
Created May 8, 2018
Actual view with child elements
View CustomGeneratedView.swift
//
// CustomGeneratedView.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 26/04/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
import UIKit
@vivekguptaraw
vivekguptaraw / WithoutTableViewController.swift
Created May 8, 2018
Dynamic view generated on ViewController
View WithoutTableViewController.swift
//
// WithoutTableViewController.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 07/05/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
import UIKit
@vivekguptaraw
vivekguptaraw / ControlCreateModel.swift
Created May 8, 2018
Custom model class to hold View information
View ControlCreateModel.swift
//
// ControlCreateModel.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 19/04/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
import Foundation
import UIKit
@vivekguptaraw
vivekguptaraw / DataManager.swift
Created May 8, 2018
Data Manager for creating controls array
View DataManager.swift
//
// DataManager.swift
// DynamicUIDemo
//
// Created by Vivek Gupta on 20/04/18.
// Copyright © 2018 Vivek Gupta. All rights reserved.
//
import Foundation
import UIKit
@vivekguptaraw
vivekguptaraw / dynamicJson.swift
Created May 8, 2018
JSON for Dynamic UI (Swift iOS)
View dynamicJson.swift
import Foundation
let jsonObject: [[[String: Any]]] =
[
[[ "type" : "carousel",
"portionCoveredPerc": 30,
"number": 1,
"backgroundColor" : "00ffff",
"padding" : 0,
"autoSpreadChild" : true,
You can’t perform that action at this time.