Blur - Tai-Kimura/SwiftJsonUI GitHub Wiki

Blur

class: SJUIVisualEffectView inherites: UIVisualEffectView

Platform Support

  • UIKit: Full support (All attributes available)
  • SwiftUI: Full support (Maps to custom blur modifier)

Attributes for Blur

attribute name UIKit SwiftUI type in json details remarks
effectStyle string Blur style: Light, Dark, ExtraLight, Regular, Prominent, SystemUltraThinMaterial, SystemThinMaterial, SystemMaterial, SystemThickMaterial, SystemChromeMaterial
intensity float Blur intensity (0.0 to 1.0)
vibrancy boolean Enable vibrancy effect UIKit only
onclick string Tap gesture selector
All View attributes - Inherits view attributes for positioning See View

Functions for Blur

public class func createFromJSON(attr: JSON, target: Any, views: inout [String: UIView]) -> SJUIVisualEffectView

This method will be called when it's created from json file. Override This method when you create classes inherite SJUIVisualEffectView class.