⭐️ Updated my visionOS 'Safari Tab Bar' sample code to use the new custom hover effects introduced in visionOS 2.0, so the address bar now expands when you look at it (something impossible in earlier versions of the OS)

#samplecode

https://github.com/steventroughtonsmith/SafariTabBar

⭐️ New sample code: VisionImmersiveDockableUIKit

"This is a simplified example showing how to spawn a fully immersive scene using UIKit and UIHostingSceneDelegate in visionOS 26.

Additionally, it demonstrates using private API to dock the main window in the immersive scene, in a similar way to how video players work on visionOS."

#samplecode

https://github.com/steventroughtonsmith/VisionImmersiveDockableUIKit

GitHub - steventroughtonsmith/VisionImmersiveDockableUIKit: Spawn a fully immersive scene using UIKit and UIHostingSceneDelegate in visionOS 26

Spawn a fully immersive scene using UIKit and UIHostingSceneDelegate in visionOS 26 - steventroughtonsmith/VisionImmersiveDockableUIKit

GitHub

I updated my VisionVolumetricUIKit sample project to use the new API, if you're curious

https://github.com/steventroughtonsmith/VisionVolumetricUIKit

#samplecode

The handy and dandy getopts, that allow the creation of bash scripts with interesting command lines.

How to Use Bash Getopts With Examples
https://kodekloud.com/blog/bash-getopts/

#programming #samplecode #tutorial #overview #howto

How to Use Bash Getopts With Examples

Learn what getopts is, and how it can be effectively used to parse command line options, overcoming some of the limitations of positional parameters.

DevOps Blog

Advanced Animations in Frontend Development: CSS, SVG, and JavaScript

#CSS #FrontendDevelopment #SampleCode #Animations #SVG #JavaScript #PerformanceOptimization

https://g.omid.dev/S7CDGcu

Advanced Animations in Frontend Development: CSS, SVG, and JavaScript

Animations have become a crucial aspect of modern web design, enhancing user experience and adding a dynamic quality to websites and applications. While basic animations can be achieved with simple CSS transitions, advanced animations often require a combination of CSS, SVG, and JavaScript. This post will delve into advanced techniques for creating animations, focusing on performance optimization, easing functions, and best practices to ensure smooth and engaging animations. CSS Animations CSS animations are the backbone of web animations, offering a powerful and efficient way to create sophisticated animations with minimal code.

Advanced CSS Grid Layouts: Techniques and Tricks for Responsive Design

#CSS #CSS3 #FrontendDevelopment #ResponsiveDesign #SampleCode

https://g.omid.dev/CbHGRie

Advanced CSS Grid Layouts: Techniques and Tricks for Responsive Design

In the evolving world of web design, creating flexible and dynamic layouts that work seamlessly across devices is paramount. CSS Grid Layout, introduced with CSS3, revolutionizes the way we build web layouts by providing a two-dimensional grid-based layout system. While many designers are familiar with basic grid concepts, mastering advanced CSS Grid techniques can elevate your responsive design skills to a new level. In this post, we’ll dive into complex grid layouts, responsive design strategies, and best practices for ensuring cross-browser compatibility.

Algorithms and Data Structures implemented in #JavaScript
and #TypeScript for beginners, following best practices.

https://github.com/TheAlgorithms/Javascript

#Programming #Tutorials #Algorithms #DataStructures #SampleCode #GitHub

GitHub - TheAlgorithms/JavaScript: Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices. - TheAlgorithms/JavaScript

GitHub
Algorithms and Data Structures implemented in #JavaScript and #TypeScript for beginners, following best practices. github.com/TheAlgorithm... #Programming #Tutorials #Algorithms #DataStructures #SampleCode #GitHub
Algorithms and Data Structures implemented in #JavaScript for beginners, following best practices. github.com/TheAlgorithm... #Programming #Tutorials #algorithms #DataStructures #SampleCode

⭐️ Threw together a little proxy UIView subclass for visionOS that lets you set z position, transform and glass effects/radius while abstracting away the SwiftUI hosting so you don't really need to know about it. Not complete, but thought it might be useful.

In the video below, it's used in a UICollectionViewCell subclass.

I wish these properties were just exposed on UIView.

https://gist.github.com/steventroughtonsmith/279a8596e37f269657554156d9a37075

#samplecode

UIKit proxy for visionOS 3D transforms and effects

UIKit proxy for visionOS 3D transforms and effects - V3DViewContainer.swift

Gist