motion-prime/views/view_styler.rb in motion-prime-0.9.6 vs motion-prime/views/view_styler.rb in motion-prime-0.9.7

- old
+ new

@@ -145,9 +145,12 @@ def set_text_options(key, value) if key == 'content_horizontal_alignment' && value.is_a?(Symbol) && %[left right center fill].include?(value.to_s) view.setValue "UIControlContentHorizontalAlignment#{value.camelize}".constantize, forKey: camelize_factory(key) true + elsif key == 'content_vertical_alignment' && value.is_a?(Symbol) && %[top bottom center fill].include?(value.to_s) + view.setValue "UIControlContentHorizontalAlignment#{value.camelize}".constantize, forKey: camelize_factory(key) + true elsif key.end_with?('alignment') && value.is_a?(Symbol) view.setValue value.uitextalignment, forKey: camelize_factory(key) true elsif key.end_with?('line_break_mode') && value.is_a?(Symbol) view.setValue value.uilinebreakmode, forKey: camelize_factory(key) \ No newline at end of file