Skip to content

Instantly share code, notes, and snippets.

@mathebox
mathebox / InnerShadowView.swift
Last active November 24, 2024 21:04
UIView with inner shadow in Swift
import UIKit
class InnerShadowView: UIView {
lazy var innerShadowLayer: CAShapeLayer = {
let shadowLayer = CAShapeLayer()
shadowLayer.shadowColor = UIColor.black.cgColor
shadowLayer.shadowOffset = CGSize(width: 0.0, height: 0.0)
shadowLayer.shadowOpacity = 0.1
shadowLayer.shadowRadius = 14

Features and Step Definitions

Gherkin Keywords

  • Feature
  • Background
  • Scenario
  • Given
  • When
  • Then
  • And