尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Shattter: crack, shatter and prank your screen. iPhone, iPad and iPhone Duo.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗The ultimate glass-breaking gag app for iPhone Duo. Native UIKit + SwiftUI, no dependencies.
| File | Responsibility |
|---|---|
Shattter/Glass/FractureGeometry.swift | Seeded, grid-accelerated Voronoi fractures plus procedural cracks for all 20 patterns, hinge stress webs and multi-impact patterns. Neighbouring shards share identical jagged edges. |
Shattter/Glass/CrackPattern.swift | The 20 crack patterns and their web parameters. |
Shattter/Glass/GlassView+Crackgate.swift | Crackgate Mode: crease crack, stuck pixel block, gotcha card. |
Shattter/Glass/GlassView.swift | Multi-hit crack webs (pre-built pool for instant cracks), hinge stress, intro, effects. |
Shattter/Glass/GlassView+Shatter.swift | Shatter styles, shard physics, Fade In and Rewind repairs. |
Shattter/Screens/ScreenArt.swift | Fake Lock Screen, Home Screen, Messages, Screen Off and photo. |
Shattter/Options/ | Settings model and the hidden SwiftUI options sheet. |
Shattter/Glass/GlassViewController.swift | UIHingeInteraction (iOS 27.1) hinge angle/status updates and shake handling. |
Shattter/Glass/PaneArtwork.swift | Renders the pane and pre-cuts shard sprites off the main thread while cracks spread. |
Shattter/Audio/GlassSynth.swift | Procedural glass synthesis: noise-excited resonator shards, micro-fracture crackle, band-limited crash, ringing pane modes and a diffuse room. No audio files. |
Shattter/Audio/SoundPack.swift | The 10 sound packs and their recipes. |
Shattter/Audio/GlassSound.swift | Pack loading and previews, pooled players, Core Haptics. |
project.yml is the source of truth; run xcodegen generate after adding files.
xcodebuild -project Shattter.xcodeproj -scheme Shattter \
-destination 'platform=iOS Simulator,name=iPhone Duo' -derivedDataPath build build
xcodebuild -project Shattter.xcodeproj -scheme Shattter \
-destination 'platform=iOS Simulator,name=iPhone 18 Pro' -derivedDataPath build-tests test
./scripts/testflight.sh # archive + upload to App Store Connect (build numbers auto-increment)
Tuning tools:
swiftc scripts/FracturePreview/main.swift Shattter/Glass/FractureGeometry.swift Shattter/Glass/CrackPattern.swift -o build/fracture-preview && build/fracture-preview /tmp/patterns.png
swiftc scripts/AppIcon/main.swift Shattter/Glass/FractureGeometry.swift Shattter/Glass/CrackPattern.swift -o build/appicon && build/appicon Shattter/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png
Debug builds accept -ShowOptions to open the options sheet at launch. On the simulator, agent-device fold open|half-open|closed --keyframes '[{"atMs":0,"angle":180},{"atMs":800,"angle":120}]' drives the hinge.