   return nil
 }
 
-/**
-This method returns the hardware number not actual but logically.
-e.g. if the hardware string is 5,1 then hardware number would be 5.1
-*/
+///
+/// This method returns the hardware number not actual but logically.
+/// e.g. if the hardware string is 5,1 then hardware number would be 5.1
+///
 public func hardwareNumber(hardware: Hardware) -> CGFloat {
   switch (hardware) {
   case Hardware.IPHONE_2G:                         return 1.1
   case Hardware.IPHONE_3G:                         return 1.2
   case Hardware.IPHONE_3GS:                        return 2.1
+    
   case Hardware.IPHONE_4:                          return 3.1
   case Hardware.IPHONE_4_CDMA:                     return 3.3
   case Hardware.IPHONE_4S:                         return 4.1
+    
   case Hardware.IPHONE_5:                          return 5.1
   case Hardware.IPHONE_5_CDMA_GSM:                 return 5.2
   case Hardware.IPHONE_5C:                         return 5.3
   case Hardware.IPHONE_5C_CDMA_GSM:                return 5.4
   case Hardware.IPHONE_5S:                         return 6.1
   case Hardware.IPHONE_5S_CDMA_GSM:                return 6.2
+    
   case Hardware.IPHONE_6_PLUS:                     return 7.1
   case Hardware.IPHONE_6:                          return 7.2
-    
   case Hardware.IPHONE_6S_PLUS:                    return 8.2
   case Hardware.IPHONE_6S:                         return 8.1
     

  case SIMULATOR
}

/** This method retruns the hardware type */
public func hardwareString() -> String {
  var name: [Int32] = [CTL_HW, HW_MACHINE]
  var size: Int = 2

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

