Skip to content

Releases: pres/PREBorderView

3.3.1

28 Jan 21:55

Choose a tag to compare

Updated

  • Add missing nullability annotations.

3.3.0

22 Sep 19:21

Choose a tag to compare

Updated

  • Improved support for iOS 13 Dark Mode: layoutSubviewBorders now not only layouts all borders but also updates the color to match the appearance (dark or light) of the current trait collection when using dynamic colors. layoutSubviewBorders could e.g. called in -traitCollectionDidChange:.

3.2.2

22 Jan 19:01

Choose a tag to compare

Fixes

  • -removeAllBorders did not remove all borders. Borders added to all sides using -addRetinaPixelBorder, -addRetinaPixelBorderWithColor: or -addBorderWithColor:andWidth: haven't been removed. They will be now.

3.2.1

05 Jun 18:35
a89bdfd

Choose a tag to compare

Updated

  • Prefixed _defaultBorderColor to pre_defaultBorderColor to make name clashes more unlikely.

3.2.0

09 Dec 18:56

Choose a tag to compare

Added

  • Added functionality to add a margin to each border, for cases when you don't want the border span the whole width/height of the corresponding view.

3.1.1

21 Oct 16:57

Choose a tag to compare

Fixes

  • Fixed an issue with Auto Layout where layoutSubviewBorders did not correctly layout all borders.

3.1.0

24 Apr 19:24

Choose a tag to compare

Added

  • Added functionality to easily update all borders to size changes of views, which improves compatibility with auto layout.
    • Use layoutBorders to update borders of a view.
    • Use layoutSubviewBorders to update borders of a view, as well as all borders of subviews.

3.0

24 Apr 19:25

Choose a tag to compare

3.0

Added

  • You can now specify if a border is dranw inside or outside of the view
    • Current behaviour does not change
    • Extended PREBorderPosition to add *Outside variants.

Updated

  • Removed methods deprecated in 2.1
  • Switched from enum to NS_ENUM for PREBorderPosition