lib/juxtapose/strategy/mac_bacon_strategy.rb in motion-juxtapose-0.2.0 vs lib/juxtapose/strategy/mac_bacon_strategy.rb in motion-juxtapose-0.3.0
- old
+ new
@@ -14,10 +14,12 @@
end
def device_name
name = [UIDevice.currentDevice.model.gsub(/\s+Simulator/, '').downcase]
name << 'retina' if UIScreen.mainScreen.scale > 1
- name << '5' if UIScreen.mainScreen.bounds.size.height > 480
+ name << '5' if UIScreen.mainScreen.bounds.size.height == 568.0
+ name << '6' if UIScreen.mainScreen.bounds.size.height == 667.0
+ name << '6-plus' if UIScreen.mainScreen.bounds.size.height == 736.0
name.join('-')
end
def save_current(filename)
application = UIApplication.sharedApplication