update()
Updates the OpenGL context’s drawable object.
Declaration
@MainActor func update()Discussion
Call this method whenever the receiver’s drawable object changes size or location. A multithreaded application must synchronize all threads that access the same drawable object and call update() for each thread’s context serially.