API Reference > imodeljs-frontend > Views > ViewState > viewFlags viewFlags AccessorReadOnly Get the ViewFlags from the DisplayStyleState of this ViewState. get: ViewFlags note Do not modify this object directly. Instead, use the setter as follows: ```typescript const flags = viewState.viewFlags.clone(); flags.renderMode = RenderMode.SmoothShade; // or whatever alterations are desired viewState.viewFlags = flags; ```typescript Returns - ViewFlags Defined in core/frontend/src/ViewState.ts Line 259 Last Updated: 13 June, 2024