Create a Screen protocol that requires one XCUIApplication object.
protocol Screen {
var app: XCUIApplication { get set }
}
package com.example.compose_debug | |
import androidx.compose.animation.EnterTransition | |
import androidx.compose.animation.ExitTransition | |
import androidx.compose.animation.core.CubicBezierEasing | |
import androidx.compose.animation.core.Easing | |
import androidx.compose.animation.core.FastOutLinearInEasing | |
import androidx.compose.animation.core.FastOutSlowInEasing | |
import androidx.compose.animation.core.LinearOutSlowInEasing | |
import androidx.compose.animation.core.PathEasing |
// | |
// CloudCompositingView.swift | |
// OpenSwiftUIDesigns | |
// | |
// Created by Amos Gyamfi on 9.4.2024. | |
// | |
import SwiftUI | |
struct CloudCompositingView: View { |
data class ColorItemState( | |
val id: Int, | |
val color: Color, | |
val name: String, | |
) | |
val CoolColors = listOf( | |
ColorItemState( | |
id = 1, | |
color = Color(0xFFEF4444), |
import android.graphics.BlurMaskFilter | |
import android.graphics.ColorMatrix | |
import android.graphics.ColorMatrixColorFilter | |
import androidx.compose.runtime.Stable | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.draw.clip | |
import androidx.compose.ui.draw.drawWithCache | |
import androidx.compose.ui.geometry.Size | |
import androidx.compose.ui.graphics.Canvas | |
import androidx.compose.ui.graphics.ClipOp |
/* | |
* Copyright (c) 2023. Héctor de Isidro - hector6872 | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
@OptIn(ExperimentalFoundationApi::class) | |
fun Modifier.bounceClickable( | |
dampingRatio: Float = 0.85f, | |
enabled: Boolean = true, | |
onClick: () -> Unit = {}, | |
onDoubleClick: (() -> Unit)? = null, | |
onLongClick: (() -> Unit)? = null, | |
shape: Shape = RectangleShape, | |
useHapticFeedback: Boolean = true, | |
) = composed { |