All rules

Sheath rule

native-glass-modifier

NativePHP glass utilities must use supported effect modifiers.
Package
NativePHP
Category
Native
Default severity
warning by default
Auto-fix
Manual fix

#Why

An unknown segment after glass: is ignored, and the utility falls back to the base glass effect. The screen still renders, but not with the requested variant.

#Examples

#Bad

{{-- interactve is unknown, so the class falls back to plain glass. --}}
<native:column class="glass:interactve" />

#Good

{{-- Both modifiers are supported. --}}
<native:column class="glass:prominent:interactive" />

#Notes

Multiple supported modifiers may be combined. iOS and Android prefixes are removed before each glass segment is checked.

Dynamic class values are skipped because the final token is not known.

#Options

All NativePHP rules accept nativeViewPaths. The default is ['views/native/']. See Native View Detection for path configuration.

#See Also

Related class rules cover unsupported tokens and numeric interpretation: