Remove positions when removing fixed position

This commit is contained in:
Garth Vander Houwen 2024-05-04 14:27:31 -07:00
parent 016a3b748f
commit cd0ee611eb

View file

@ -280,6 +280,9 @@ struct PositionConfig: View {
print("Set Position Failed")
}
print("Remove a fixed position here")
let mutablePositions = node?.positions?.mutableCopy() as? NSMutableOrderedSet
mutablePositions?.removeAllObjects()
node?.positions = mutablePositions
node?.positionConfig?.fixedPosition = false
do {
try context.save()