Skip to content

Commit

Permalink
Merge pull request #50 from hyperoslo/fix/device-model
Browse files Browse the repository at this point in the history
Fix device model enum
  • Loading branch information
zenangst committed Mar 18, 2016
2 parents 9594b05 + 66187f7 commit 084ec7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import UIKit

public extension UIDevice {

public enum Model: String {
public enum Model {
case iPhone4
case iPhone5
case iPhone6
Expand All @@ -12,7 +12,7 @@ public extension UIDevice {
}

public var model: Model {
guard UIDevice().userInterfaceIdiom == .Phone else {
guard userInterfaceIdiom == .Phone else {
return .iPad
}

Expand Down
2 changes: 1 addition & 1 deletion Sugar.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "Sugar"
s.summary = "Something sweet that goes great with your Cocoa"
s.version = "1.0.8"
s.version = "1.0.9"
s.homepage = "https://github.com/hyperoslo/Sugar"
s.license = 'MIT'
s.author = { "Hyper Interaktiv AS" => "[email protected]" }
Expand Down
8 changes: 4 additions & 4 deletions Sugar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
BDAF15621C3917110008A5D6 /* Then.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDAF15611C3917110008A5D6 /* Then.swift */; };
BDAF15631C3917110008A5D6 /* Then.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDAF15611C3917110008A5D6 /* Then.swift */; };
BDAF15651C3917A90008A5D6 /* TestThen.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDAF15641C3917A90008A5D6 /* TestThen.swift */; };
D527EDA01C9C0B7D0092AD6B /* UIDevice.swift in Sources */ = {isa = PBXBuildFile; fileRef = D527ED9F1C9C0B7D0092AD6B /* UIDevice.swift */; };
D527EDA01C9C0B7D0092AD6B /* UIDevice+Model.swift in Sources */ = {isa = PBXBuildFile; fileRef = D527ED9F1C9C0B7D0092AD6B /* UIDevice+Model.swift */; };
D52D72431C3BDEA5009A4426 /* Swizzler.swift in Sources */ = {isa = PBXBuildFile; fileRef = D52D72421C3BDEA5009A4426 /* Swizzler.swift */; };
D52D72441C3BDEA5009A4426 /* Swizzler.swift in Sources */ = {isa = PBXBuildFile; fileRef = D52D72421C3BDEA5009A4426 /* Swizzler.swift */; };
D52D72461C3BDFAB009A4426 /* TestSwizzler.swift in Sources */ = {isa = PBXBuildFile; fileRef = D52D72451C3BDFAB009A4426 /* TestSwizzler.swift */; };
Expand Down Expand Up @@ -105,7 +105,7 @@
BDA4481B1C295A01003FDEAD /* TestStringExtensionCoreFoundation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestStringExtensionCoreFoundation.swift; sourceTree = "<group>"; };
BDAF15611C3917110008A5D6 /* Then.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Then.swift; sourceTree = "<group>"; };
BDAF15641C3917A90008A5D6 /* TestThen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestThen.swift; sourceTree = "<group>"; };
D527ED9F1C9C0B7D0092AD6B /* UIDevice.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIDevice.swift; sourceTree = "<group>"; };
D527ED9F1C9C0B7D0092AD6B /* UIDevice+Model.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIDevice+Model.swift"; sourceTree = "<group>"; };
D52D72421C3BDEA5009A4426 /* Swizzler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Swizzler.swift; sourceTree = "<group>"; };
D52D72451C3BDFAB009A4426 /* TestSwizzler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestSwizzler.swift; sourceTree = "<group>"; };
D5619C191C97FEB8006C8176 /* UIImage+RenderingMode.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIImage+RenderingMode.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -175,7 +175,7 @@
BD0E01CD1C3BD7AC0092C477 /* UITableView+Indexes.swift */,
BD0E01D01C3BD93C0092C477 /* UICollectionView+Indexes.swift */,
D5619C191C97FEB8006C8176 /* UIImage+RenderingMode.swift */,
D527ED9F1C9C0B7D0092AD6B /* UIDevice.swift */,
D527ED9F1C9C0B7D0092AD6B /* UIDevice+Model.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -521,7 +521,7 @@
BDA447B21C29471C003FDEAD /* Application.swift in Sources */,
BDA447B31C29471C003FDEAD /* UIView+Optimize.swift in Sources */,
BD0E01CB1C3BCFEF0092C477 /* Localization.swift in Sources */,
D527EDA01C9C0B7D0092AD6B /* UIDevice.swift in Sources */,
D527EDA01C9C0B7D0092AD6B /* UIDevice+Model.swift in Sources */,
BDA447B41C29471C003FDEAD /* Screen.swift in Sources */,
BDA447B51C29471C003FDEAD /* Simulator.swift in Sources */,
BDA4481A1C29588F003FDEAD /* String+CoreFoundation.swift in Sources */,
Expand Down

0 comments on commit 084ec7e

Please sign in to comment.