Files
wallet/apps/mobile/ios/Components/ScrollFadeExtensions.swift
zeekay 55a7f247ca init: extract wallet from lux/exchange monorepo
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config,
utilities, sessions, gating, notifications, analytics, eslint-config,
prices) into a standalone pnpm workspace.  Resolves merge conflict
markers in extension and mobile package.json files, strips build
artifacts (.wxt, .output, Pods).
2026-04-11 01:59:19 -07:00

31 lines
615 B
Swift

//
// ScrollExtension.swift
<<<<<<< HEAD
// Lux
=======
// Uniswap
>>>>>>> upstream/main
//
// Created by Gary Ye on 8/31/23.
//
import SwiftUI
extension View {
func fadeOutBottom(fadeLength:CGFloat=32) -> some View {
return mask(
VStack(spacing: 0) {
Rectangle().fill(Color.black)
LinearGradient(gradient:
Gradient(
colors: [Color.black, Color.black.opacity(0)]),
startPoint: .top, endPoint: .bottom
)
.frame(height: fadeLength)
}
)
}
}