Skip to content

Macaw.image.srcVar do not change image on change src #491

Closed
@mkdk

Description

@mkdk

Need help urgent! :(
On xcode 9 our code was worked well, but after start working with xcode 10 Macaw.image.srcVar do not change image if we change srcVar on the fly.

Maybe I misunderstood something, but I expecting that if I we change scrVar it will rerender image in the node....

here is code example:

substrate.onTap { _ in
       if !self.pickedSeats.contains(index) {
                self.pickedSeats.insert(index)
                seatView.sView.srcVar.value = SeatType.picked.getSrc()
                seatView.sView.opacityVar.animate(to: 0.9)
                seatView.text.font = Font(name: "MullerExtraBold", size: 13)
                self.delegate?.seatPicked(id: seat.id, unselect: false, publicPid: seat.publicPid)
        } else {
                self.pickedSeats.remove(index)
                seatView.sView.srcVar.value = seat.type.getSrc()
                seatView.text.font = Font(name: "MullerMedium", size: 12)
                self.delegate?.seatPicked(id: seat.id, unselect: true, publicPid: seat.publicPid)
           }
   }

> seatView.sView.srcVar.value = SeatType.picked.getSrc()
> seatView.sView.srcVar.value = seat.type.getSrc()

This lines worked, but now no.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions