iOSRectangle.SetEffect

From Xojo Documentation

Method

iOSRectangle.SetEffect(blurStyle as iOSRectangle.BlurStyles, vibrancyStyle as iOSRectangle.VibrancyStyles = VibrancyStyles.None, vibrantContent as iOSContainerControl = Nil)

New in 2019r3

Supported on Mobile (iOS) .

Sets the blur effect for the rectangle.

Notes

  • blurStyle as iOSRectangle.BlurStyles - The type of blur. The BlurStyles enum defines 21 different styles, the first 6 work on all supported versions of iOS (10-13) styles 7-21 were introduced with iOS 13 and will only work on those devices.
  • vibrancyStyle as iOSRectangle.VibrancyStyles - Specifies the type of vibrancy you'd like to use with this rectangle. iOS 10-12 support two of the eight styles (Label and Fill) whereas iOS 13 supports all eight styles.
  • vibrancyContent as iOSContainerControl - the content that you'd like to have exhibit vibrancy within the rectangle.

In order for the effect to take place, the background color of the parent view must to be set to clear. For example: ParentRectangle.FillColor = Color.Clear