   return CGSizeZero
 }
 
-/**
-Internal method for loggin, you don't need this method
-*/
+/// Internal method for loggin, you don't need this method
+///
+/// - parameters:
+///     - hardware: `String` hardware type of the device
+///
 public func logMessage(hardware: String) {
   print("This is a device which is not listed in this category. Please visit https://github.com/InderKumarRathore/UIDeviceUtil and add a comment there.");
   print("Your device hardware string is: %@", hardware);

  
  if (hardware == "iPhone7,1")         { return Hardware.IPHONE_6_PLUS }
  if (hardware == "iPhone7,2")         { return Hardware.IPHONE_6 }
    
  if (hardware == "iPhone8,2")         { return Hardware.IPHONE_6S_PLUS }
  if (hardware == "iPhone8,1")         { return Hardware.IPHONE_6S }
    

import Foundation
import UIKit

/// Enum for different iPhone/iPad devices
public enum Hardware: NSInteger {
  case NOT_AVAILABLE
  
  case IPHONE_2G
  case IPHONE_3G
  case IPHONE_3GS
  
  case IPHONE_4
  case IPHONE_4_CDMA
  case IPHONE_4S
  
  case IPHONE_5
  case IPHONE_5_CDMA_GSM
  case IPHONE_5C
  case IPHONE_5C_CDMA_GSM
  case IPHONE_5S
  case IPHONE_5S_CDMA_GSM
  
  case IPHONE_6
  case IPHONE_6_PLUS
  case IPHONE_6S
  case IPHONE_6S_PLUS

