@@ -392,7 +392,7 @@ func (s *cursedRenderer) render(v View) {
392392 defer s .mu .Unlock ()
393393
394394 frameArea := uv .Rect (0 , 0 , s .width , s .height )
395- if v .Layer == nil {
395+ if v .Content == nil {
396396 // If the component is nil, we should clear the screen buffer.
397397 frameArea .Max .Y = 0
398398 }
@@ -405,7 +405,7 @@ func (s *cursedRenderer) render(v View) {
405405 // list. This is different from the alt screen buffer, which has a
406406 // fixed height and width.
407407 frameHeight := frameArea .Dy ()
408- switch l := v .Layer .(type ) {
408+ switch l := v .Content .(type ) {
409409 case * uv.StyledString :
410410 frameHeight = l .Height ()
411411 case interface { Bounds () uv.Rectangle }:
@@ -428,8 +428,8 @@ func (s *cursedRenderer) render(v View) {
428428 // Clear our screen buffer before copying the new frame into it to ensure
429429 // we erase any old content.
430430 s .buf .Clear ()
431- if v .Layer != nil {
432- v .Layer .Draw (s .buf , s .buf .Bounds ())
431+ if v .Content != nil {
432+ v .Content .Draw (s .buf , s .buf .Bounds ())
433433 }
434434
435435 // If the frame height is greater than the screen height, we drop the
@@ -450,7 +450,7 @@ func (s *cursedRenderer) hit(mouse MouseMsg) []Msg {
450450 return nil
451451 }
452452
453- if l := s .lastView .Layer ; l != nil {
453+ if l := s .lastView .Content ; l != nil {
454454 if h , ok := l .(Hittable ); ok {
455455 m := mouse .Mouse ()
456456 if id := h .Hit (m .X , m .Y ); id != "" {
0 commit comments