lib/ProMotion/helpers/measure_helper.rb in ProMotion-0.7.3 vs lib/ProMotion/helpers/measure_helper.rb in ProMotion-0.7.4
- old
+ new
@@ -1,10 +1,10 @@
module ProMotion
class MeasureHelper
class << self
def content_height(view)
- warn "[DEPRECATION] `MeasureHelper.content_height` is deprecated. Include the module `ScreenElements` to get access to this method (already included in Screen)."
+ PM.logger.deprecated "`MeasureHelper.content_height` is deprecated. Include the module `ScreenElements` to get access to this method (already included in Screen)."
height = 0
view.subviews.each do |subview|
next if subview.isHidden
y = subview.frame.origin.y
@@ -15,6 +15,6 @@
end
height
end
end
end
-end
\ No newline at end of file
+end