diff --git a/DeviceLayout.podspec b/DeviceLayout.podspec
index d315b69..ade8436 100644
--- a/DeviceLayout.podspec
+++ b/DeviceLayout.podspec
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'DeviceLayout'
- s.version = '0.1.1'
+ s.version = '0.1.2'
s.summary = 'Auto Layout can be set differently for each device.'
# This description is used to generate tags and improve search results.
diff --git a/Example/DeviceLayout/Base.lproj/Main.storyboard b/Example/DeviceLayout/Base.lproj/Main.storyboard
index 0401a10..7f97ab0 100644
--- a/Example/DeviceLayout/Base.lproj/Main.storyboard
+++ b/Example/DeviceLayout/Base.lproj/Main.storyboard
@@ -173,7 +173,7 @@
-
+
diff --git a/Sources/DeviceLayoutConstraint.swift b/Sources/DeviceLayoutConstraint.swift
index 02f2ec8..c201086 100644
--- a/Sources/DeviceLayoutConstraint.swift
+++ b/Sources/DeviceLayoutConstraint.swift
@@ -28,7 +28,7 @@ class DeviceLayoutConstraint: NSLayoutConstraint {
}
open func deviceSize() -> Size {
- return Device.size()
+ return Device.deviceSize
}
open func layoutIfNeeded() {
@@ -36,3 +36,7 @@ class DeviceLayoutConstraint: NSLayoutConstraint {
self.secondItem?.layoutIfNeeded()
}
}
+
+fileprivate extension Device {
+ static let deviceSize = Device.size()
+}