Skip to content

Commit

Permalink
Provide LocalInspectionMode by default (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-e authored Nov 2, 2023
1 parent 5e491e7 commit 80d4480
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalInspectionMode
import androidx.compose.ui.unit.Density
import com.emergetools.snapshots.shared.ComposePreviewSnapshotConfig
import com.emergetools.snapshots.shared.EMGLocale
Expand Down Expand Up @@ -37,6 +38,7 @@ fun SnapshotVariantProvider(
}

val providedValues = arrayOf(
LocalInspectionMode provides true,
LocalContext provides wrappedContext,
LocalConfiguration provides localConfiguration,
config.fontScale?.let { LocalDensity provides fontScaleDensity }
Expand Down

0 comments on commit 80d4480

Please sign in to comment.