Andrew Watson
CATransaction.begin() CATransaction.setValue(true, kCATransactionDisableActions) view.layer.setFrame(rect) avPlayerViewController.view.layer.frame = rect CATransaction.commit()
Per Jaakonantti
UIKitView( modifier = modifier, factory = { avPlayerViewController.player = player avPlayerViewController.videoGravity = AVLayerVideoGravityResizeAspectFill avPlayerViewController.showsPlaybackControls = false val playerContainer = UIView() playerContainer.apply { addSubview(avPlayerViewController.view) } playerContainer }, update = { view -> avPlayerViewController.view.layer.frame = view.bounds }, )
Krille-Alster
patrickdelconte
A modern programming language that makes developers happier.