Latest 1.2.1
Homepage https://github.com/KeithGapusan/iOSCommonUI
License MIT
Platforms ios 10.3
Authors

Packagist
Swift 4.0.x
Version

A boiler plate of iOS common custom made UIViewControllers , UIViews, UITableViewCells, UICollectionViewCells and Loaders.

CocoaPods

https://cocoapods.org/pods/iOSCommonUI

Support:

Swift 4.2 or later

target 'MyApp' do
pod 'iOSCommonUI', '~> 1.2'
end

Swift 3.0 to 4.0

target 'MyApp' do
  pod 'iOSCommonUI', '~> 1.1'
end

FeedbackView

A custom view for internal app rating.

Example:

import iOSCommonUI

class YourViewController: UIViewController, FeedbackDelegate {

var feedbackView : FeedBackView!
var feedbackDelegate : FeedbackDelegate!

//feedback implements protocol
    func didUserPressSubmit(sender: [String : Any]) {
        /**sender will return the Dictionary of textfields and ratings**/ 
        self.showFeedback(show: false)
    }

    fileprivate func showFeedback(show: Bool) {
        if show {
            feedbackView = FeedBackView(frame:  CGRect.init(x: 0, y: 0, width: self.view.frame.width, height: 560))
            feedbackView.setFeedbackTitle(title: "show title")

            self.view.addSubview(feedbackView)
            feedbackView.delegate = self
        }else{
            self.feedbackView.removeFromSuperview()
            self.feedbackView = nil
        }
    }

}

LoginView

A custom view for internal app rating.

Example:

import iOSCommonUI

class YourViewController: UIViewController, LoginGoogleDelegateV2 {

var loginView : LoginViewGoogleV2!
var loginViewDelegate : LoginGoogleDelegateV2!

    //loginView implements protocol
    func didUserPressSubmit(sender: [String : Any]) {
        /**sender will return the Dictionary of textfields and ratings**/
        self.showLogin(show: false)
    }

    fileprivate func showLogin(show: Bool) {
        if show {
            loginView = FeedBackView(frame:  self.view.frame)

            self.view.addSubview(loginView)
            loginView.delegate = self
        }else{
            self.loginView.removeFromSuperview()
            self.loginView = nil
        }
    }

}

Custom TableView Cell

import iOSCommonUI

class YourViewController: UIViewController{
var headerCell : HeaderTableViewCell!

        override func viewDidLoad() {
           headerCell = HeaderTableViewCell()
           //register the nibfile of cell in tableview
           headerCell.registerNib(tableView: self.tableView)
        }
}
// Dequeing cell 
 self.tableView.dequeueReusableCell(withIdentifier:headerCell.getCellId()) as? HeaderTableViewCell {
        //insert your customization here
 }

Here are the list of available cell class.

-HeaderTableViewCell
-LoaderCustomTableViewCell
-TwoColumnContactTableViewCell
-TextViewTableViewCell
-TextFieldTableViewCellV2
-TextFieldTableViewCell
-TableViewCell_ImageView
-SubmitBtnTableViewCell
-PickerButtonTableViewCell
-LoaderTableViewCell
-LabelTableViewCell
-LabelCollectionViewCell
-ImageViewTitleTableViewCell
-ImageViewTableViewCell
-HeaderWithSeparatorTableViewCell
-CheckBoxWithLabelTableViewCellv2
-CheckBoxWithLabelTableViewCell
-ButtonTableViewCellv2

Shimmery Loader

  Loader.addLoaderTo(self.tableView)

Latest podspec

{
    "name": "iOSCommonUI",
    "version": "1.2.1",
    "source": {
        "git": "https://github.com/KeithGapusan/iOSCommonUI.git",
        "tag": "v1.2.1"
    },
    "summary": "A boiler plate of iOS common custom view.",
    "description": "A boiler plate of iOS common custom made UIViewControllers , UIViews, UITableViewCells, UICollectionViewCells and Loaders.",
    "homepage": "https://github.com/KeithGapusan/iOSCommonUI",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Keith Randell Gapusan": "[email protected]"
    },
    "social_media_url": "https://www.instagram.com/keithgapusan/",
    "platforms": {
        "ios": "10.3"
    },
    "source_files": "iOSCommonUI/**/*.{h,m,swift,storyboard,xib.json}",
    "resource_bundles": {
        "iOSCommonUI": [
            "iOSCommonUI/**/*.{storyboard,xib,xcassets,json,imageset,png}"
        ]
    }
}

Pin It on Pinterest

Share This