मुख्य सामग्री पर जाएँ
Skillpedia
मोबाइल ऐप7.4k · #13249

swiftui-liquid-glass

यह क्या करती है

यह स्किल किसी फ़ीचर को बनाने, सुधारने या जाँचने के लिए SwiftUI में Apple के ग्लास डिज़ाइन इफ़ेक्ट के इस्तेमाल का मार्गदर्शन करती है। यह नए Liquid Glass लुक को अपनाने वाले iOS डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आप चाहते हैं कि कोई SwiftUI स्क्रीन Liquid Glass स्टाइल इस्तेमाल करे।
  • ✓जब आप चाहते हैं कि कोई मौजूदा फ़ीचर सही ग्लास इस्तेमाल के लिए जाँचा जाए।
  • ✓जब आपको ग्लास इफ़ेक्ट के साथ पुराने iOS वर्शन भी सँभालने हों।

Skill का लिंक

https://github.com/steipete/agent-scripts/blob/main/skills/swiftui-liquid-glass/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/steipete/agent-scripts/blob/main/skills/swiftui-liquid-glass/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस SwiftUI टूलबार को Liquid Glass स्टाइल में अपडेट कीजिए, और पुराने iOS वर्शन के लिए फ़ॉलबैक के साथ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट नेटिव ग्लास इफ़ेक्ट और कंटेनर इस्तेमाल करता है, जहाँ उपयोगी हो वहाँ टैप होने वाले तत्वों पर उन्हें जोड़ता है, और iOS 26 व उसके बाद के लिए उपलब्धता जाँचकर समझदार फ़ॉलबैक रखता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

SwiftUI Liquid Glass

Attribution: copied from @Dimillian’s Dimillian/Skills (2025-12-31).

Overview

Use this skill to build or review SwiftUI features that fully align with the iOS 26+ Liquid Glass API. Prioritize native APIs (glassEffect, GlassEffectContainer, glass button styles) and Apple design guidance. Keep usage consistent, interactive where needed, and performance aware.

Workflow Decision Tree

Choose the path that matches the request:

1) Review an existing feature

  • Inspect where Liquid Glass should be used and where it should not.
  • Verify correct modifier order, shape usage, and container placement.
  • Check for iOS 26+ availability handling and sensible fallbacks.

2) Improve a feature using Liquid Glass

  • Identify target components for glass treatment (surfaces, chips, buttons, cards).
  • Refactor to use GlassEffectContainer where multiple glass elements appear.
  • Introduce interactive glass only for tappable or focusable elements.

3) Implement a new feature using Liquid Glass

  • Design the glass surfaces and interactions first (shape, prominence, grouping).
  • Add glass modifiers after layout/appearance modifiers.
  • Add morphing transitions only when the view hierarchy changes with animation.

Core Guidelines

  • Prefer native Liquid Glass APIs over custom blurs.
  • Use GlassEffectContainer when multiple glass elements coexist.
  • Apply .glassEffect(...) after layout and visual modifiers.
  • Use .interactive() for elements that respond to touch/pointer.
  • Keep shapes consistent across related elements for a cohesive look.
  • Gate with #available(iOS 26, *) and provide a non-glass fallback.

Review Checklist

  • Availability: #available(iOS 26, *) present with fallback UI.
  • Composition: Multiple glass views wrapped in GlassEffectContainer.
  • Modifier order: glassEffect applied after layout/appearance modifiers.
  • Interactivity: interactive() only where user interaction exists.
  • Transitions: glassEffectID used with @Namespace for morphing.
  • Consistency: Shapes, tinting, and spacing align across the feature.

Implementation Checklist

  • Define target elements and desired glass prominence.
  • Wrap grouped glass elements in GlassEffectContainer and tune spacing.
  • Use .glassEffect(.regular.tint(...).interactive(), in: .rect(cornerRadius: ...)) as needed.
  • Use .buttonStyle(.glass) / .buttonStyle(.glassProminent) for actions.
  • Add morphing transitions with glassEffectID when hierarchy changes.
  • Provide fallback materials and visuals for earlier iOS versions.

Quick Snippets

Use these patterns directly and tailor shapes/tints/spacing.

if #available(iOS 26, *) {
    Text("Hello")
        .padding()
        .glassEffect(.regular.interactive(), in: .rect(cornerRadius: 16))
} else {
    Text("Hello")
        .padding()
        .background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 16))
}
GlassEffectContainer(spacing: 24) {
    HStack(spacing: 24) {
        Image(systemName: "scribble.variable")
            .frame(width: 72, height: 72)
            .font(.system(size: 32))
            .glassEffect()
        Image(systemName: "eraser.fill")
            .frame(width: 72, height: 72)
            .font(.system(size: 32))
            .glassEffect()
    }
}
Button("Confirm") { }
    .buttonStyle(.glassProminent)

Resources

  • Reference guide: references/liquid-glass.md
  • Prefer Apple docs for up-to-date API details.
अक्सर पूछे जाने वाले सवाल

क्या कस्टम ब्लर इस्तेमाल करने चाहिए?

नहीं। स्किल कहती है कि कस्टम ब्लर की जगह नेटिव Liquid Glass API को प्राथमिकता दें।

कौन-से डिवाइस लक्षित हैं?

iOS 26 और उसके बाद के, साथ में पुराने वर्शन के लिए फ़ॉलबैक।

ग्लास इफ़ेक्ट कहाँ लगाए जाते हैं?

लेआउट और दिखावट के मॉडिफ़ायर के बाद, और कई दिखें तो एक कंटेनर में समूहित करके।

जानकारी

लेखक का मूल विवरण

SwiftUI Liquid Glass: implement, adopt, refactor, review correctness/perf/design.

repo: steipete/agent-scripts

लोकप्रियता

GitHub स्टार
7.4k
रैंकिंग में स्थान
#13249
लाइसेंस
MIT
अपडेट की गई
30/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

beeper

7.4k

आपके एजेंट को आपकी लोकल Beeper चैट हिस्ट्री में संदेश खोजने और यह पता करने में मदद करती है कि कोई अस्पष्ट संकेत किस चैट या संपर्क का है।

डेटाडेटाबेस

cloudflare-registrar

7.4k

आपके एजेंट को Cloudflare Registrar पर डोमेन की कीमत और उपलब्धता जाँचने, और पुष्टि के बाद डोमेन रजिस्टर या सूचीबद्ध करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

codexbar

7.4k

आपके एजेंट को Codex, Claude और Kimi जैसी AI सेवाओं पर आपका कितना उपयोग बचा है, यह जाँचने में मदद करती है, जिसमें सीमा, क्रेडिट और रीसेट का समय शामिल है।

AI और एजेंटएजेंट

create-cli

7.4k

आपके एजेंट को कमांड लाइन टूल के कमांड, फ़्लैग, हेल्प टेक्स्ट, आउटपुट और एरर इस तरह डिज़ाइन करने में मदद करती है कि वह लोगों और स्क्रिप्ट दोनों के लिए काम करे।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills