Object Fit

Class Properties
t.objectContain resizeMode: 'contain'
t.objectCover resizeMode: 'cover'
t.objectStretch resizeMode: 'stretch'
t.objectCenter resizeMode: 'center'
t.objectRepeat resizeMode: 'repeat'
t.resizeContain resizeMode: 'contain'
t.resizeCover resizeMode: 'cover'
t.resizeStretch resizeMode: 'stretch'
t.resizeCenter resizeMode: 'center'
t.resizeRepeat resizeMode: 'repeat'

Contain

Resize an element’s content to stay contained within its container using t.objectContain.

t.objectContain

Cover

Resize an element’s content to cover its container using t.objectCover.

t.objectCover

Stretch

Stretch an element’s content to fit its container using t.objectStretch.

t.objectStretch

Center

Resize an element’s content to stay contained within its container using t.objectCenter.

t.objectCenter

Repeat

Resize an element’s content to stay contained within its container using t.objectRepeat.

t.objectRepeat