Ensure node top layer can only be set internally to the type (#189)

This commit is contained in:
Jake Wharton 2023-06-11 00:27:43 -04:00 committed by GitHub
parent e162e5fa4c
commit 469f87b75a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,7 @@ internal class MosaicNode(
private val bottomLayer: MosaicNodeLayer = BottomLayer(this)
var topLayer: MosaicNodeLayer = bottomLayer
private set
var modifiers: Modifier = Modifier
set(value) {