Skip to content

Commit 12caae8

Browse files
author
river
committed
fix(backgroundColor scrolling): ios opaque params default false
1 parent 010d88d commit 12caae8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

webview/src/commonMain/kotlin/com/multiplatform/webview/setting/PlatformWebSettings.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,22 +190,22 @@ sealed class PlatformWebSettings {
190190
data class IOSWebSettings(
191191
/**
192192
* The ios default opaque display
193-
* The default value is {@code true}.
193+
* The default value is {@code false}.
194+
* When Value is true will turn off these two properties:
195+
* @param backgroundColor,@param underPageBackgroundColor
194196
*/
195-
var opaque: Boolean = true,
197+
var opaque: Boolean = false,
196198
/**
197199
* The background color of the WebView client. The default value is {@code null}.
198200
* Will use WebSettings backgroundColor when null.
199201
*
200-
* @param opaque need set into false
201202
* @param backgroundColor a color value
202203
*/
203204
var backgroundColor: Color? = null,
204205
/**
205206
* The background color shown when the WebView client scrolls past the bounds of the active page.
206207
* The default value is {@code null}. Will use WebSettings backgroundColor when null.
207208
*
208-
* @param opaque need set into false
209209
* @param underPageBackgroundColor a color value
210210
*/
211211
var underPageBackgroundColor: Color? = null,

0 commit comments

Comments
 (0)