Skip to content

Commit 4fe61a1

Browse files
committed
Ktlint fix
1 parent 3a178d9 commit 4fe61a1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

sample/shared/src/commonMain/kotlin/com/kevinnzou/sample/BasicWebViewSample.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import androidx.compose.material.icons.Icons
1919
import androidx.compose.material.icons.filled.ArrowBack
2020
import androidx.compose.material.icons.filled.Close
2121
import androidx.compose.runtime.Composable
22-
import androidx.compose.runtime.DisposableEffect
2322
import androidx.compose.runtime.LaunchedEffect
2423
import androidx.compose.runtime.getValue
2524
import androidx.compose.runtime.mutableStateOf
@@ -54,12 +53,13 @@ import kotlinx.coroutines.flow.filter
5453
@Composable
5554
internal fun BasicWebViewSample(navHostController: NavHostController? = null) {
5655
val initialUrl = "https://github.com/KevinnZou/compose-webview-multiplatform"
57-
val state = rememberWebViewState(url = initialUrl) {
58-
logSeverity = KLogSeverity.Debug
59-
customUserAgentString =
60-
"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/625.20 (KHTML, like Gecko) Version/14.3.43 Safari/625.20"
61-
iOSWebSettings.isInspectable = true
62-
}
56+
val state =
57+
rememberWebViewState(url = initialUrl) {
58+
logSeverity = KLogSeverity.Debug
59+
customUserAgentString =
60+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/625.20 (KHTML, like Gecko) Version/14.3.43 Safari/625.20"
61+
iOSWebSettings.isInspectable = true
62+
}
6363
val navigator = rememberWebViewNavigator()
6464
var textFieldValue by remember(state.lastLoadedUrl) {
6565
mutableStateOf(state.lastLoadedUrl)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ sealed class PlatformWebSettings {
251251
* Whether a user gesture is required to play media. The default is {@code true}.
252252
*/
253253
var mediaPlaybackRequiresUserGesture: Boolean = true,
254-
255254
/**
256255
* Whether the WebView supports inspection via MacOS Safari. The default value is {@code false}.
257256
*/

0 commit comments

Comments
 (0)