Sha256: 64f92cf5a68d31928a8927c5370f36482ae98c2f29966b3a117d2ef07f75dd51

Contents?: true

Size: 693 Bytes

Versions: 21

Compression:

Stored size: 693 Bytes

Contents

# @requires MotionKit::UIViewHelpers
module MotionKit
  class UIViewHelpers

    def content_compression_resistance_priority(value, for_axis: axis)
      axis = Constraint.axis_lookup(axis)
      target.setContentCompressionResistancePriority(value, forAxis: axis)
    end

    def compression_priority(value, for_axis: axis)
      content_compression_resistance_priority(value, for_axis: axis)
    end

    def content_hugging_priority(value, for_axis: axis)
      axis = Constraint.axis_lookup(axis)
      target.setContentHuggingPriority(value, forAxis: axis)
    end

    def hugging_priority(value, for_axis: axis)
      content_hugging_priority(value, for_axis: axis)
    end

  end
end

Version data entries

21 entries across 15 versions & 1 rubygems

Version Path
motion-kit-1.1.1 lib/motion-kit-tvos/helpers/constraints_helpers.rb
motion-kit-1.1.1 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-1.1.0 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-1.1.0 lib/motion-kit-tvos/helpers/constraints_helpers.rb
motion-kit-1.0.3 lib/motion-kit-tvos/helpers/constraints_helpers.rb
motion-kit-1.0.3 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-1.0.2 lib/motion-kit-tvos/helpers/constraints_helpers.rb
motion-kit-1.0.2 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-1.0.1 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-1.0.1 lib/motion-kit-tvos/helpers/constraints_helpers.rb
motion-kit-1.0.0 lib/motion-kit-tvos/helpers/constraints_helpers.rb
motion-kit-1.0.0 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.18.0 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.17.0 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.16.0 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.15.0 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.14.2 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.14.1 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.14.0 lib/motion-kit-ios/helpers/constraints_helpers.rb
motion-kit-0.13.0 lib/motion-kit-ios/helpers/constraints_helpers.rb