All Projects β†’ lucasbrown β†’ Swiftui Visual Effects

lucasbrown / Swiftui Visual Effects

Licence: mit
View modifiers that wrap UIVisualEffectView, with environment integration.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Swiftui Visual Effects

ALProgressView
Animated and fully customizable progress view with 2 styles: ring and bar.
Stars: ✭ 72 (-47.45%)
Mutual labels:  apple, uikit
Compositional Layouts Kit
πŸ“ A set of advanced compositional layouts for UICollectionView with examples [Swift 5.3, iOS 13].
Stars: ✭ 317 (+131.39%)
Mutual labels:  apple, uikit
ALButtonMenu
A simple, fully customizable menu solution for iOS.
Stars: ✭ 45 (-67.15%)
Mutual labels:  apple, uikit
Instagramactivityindicator
Activity Indicator similar to Instagram's.
Stars: ✭ 138 (+0.73%)
Mutual labels:  apple, uikit
Spalert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
Stars: ✭ 1,014 (+640.15%)
Mutual labels:  apple, uikit
ALRadioButtons
RadioButtons for iOS. Inherited from UIControl, support 2 native styles, fully customizable.
Stars: ✭ 65 (-52.55%)
Mutual labels:  apple, uikit
WWDC
🌈 𝐖𝐖𝐃𝐂 π’πžπ¬π¬π’π¨π§ 𝐍𝐨𝐭𝐞𝐬 πŸ‘©πŸ»β€πŸ’» ✨
Stars: ✭ 31 (-77.37%)
Mutual labels:  apple, uikit
KBImageView
UIImageView with Ken Burns effect.
Stars: ✭ 48 (-64.96%)
Mutual labels:  apple, uikit
Statusalert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.
Stars: ✭ 809 (+490.51%)
Mutual labels:  apple, uikit
Swiftui
A collaborative list of awesome SwiftUI resources. Feel free to contribute!
Stars: ✭ 774 (+464.96%)
Mutual labels:  apple, uikit
LPThumbnailView
A thumbnail view for iOS to give context to multiple images/videos using thumbnails and counter.
Stars: ✭ 54 (-60.58%)
Mutual labels:  apple, uikit
Swiftautolayout
Write constraints in a concise, expressive, Swifty way.
Stars: ✭ 83 (-39.42%)
Mutual labels:  apple, uikit
About Swiftui
Gathering all info published, both by Apple and by others, about new framework SwiftUI.
Stars: ✭ 5,954 (+4245.99%)
Mutual labels:  apple, uikit
Fruity
Rusty bindings for Apple libraries
Stars: ✭ 72 (-47.45%)
Mutual labels:  apple, uikit
Drawer View
πŸ“€ Custom UI component for iOS, replication of Apple's Apple Music player and Shortcuts’ components view [Swift 5.0, iOS 12].
Stars: ✭ 136 (-0.73%)
Mutual labels:  apple, uikit
Multiplatform Compose
A Kotlin library to use Jetpack Compose in Android and iOS. Allow to write UI for both in Kotin. Still experimental as many compose features are not yet available.
Stars: ✭ 126 (-8.03%)
Mutual labels:  uikit
Overlap
Tiny iOS library to achieve overlap visual effect
Stars: ✭ 133 (-2.92%)
Mutual labels:  uikit
Pbtreeview
An UITreeView implementation from UITableView that Apple missed in its UIKit framework. And it is in pure Swift.
Stars: ✭ 128 (-6.57%)
Mutual labels:  uikit
Kgnautolayout
Making AutoLayout Easy
Stars: ✭ 127 (-7.3%)
Mutual labels:  uikit
Centroui
CentroUI is a library for building user interfaces for WebVR
Stars: ✭ 135 (-1.46%)
Mutual labels:  uikit

SwiftUI Visual Effects


System materials in SwiftUI

View modifiers that wrap UIVisualEffectView and all of its associated objects, with environment integration for storing effect styles. Vibrancy effects will always use the current blur effect style for proper vibrancy-effect layering.

Adding and Styling a Blur Effect

YourView()
  // Add a blur effect.
  .blurEffect()
  // Style the blur effect.
  .blurEffectStyle(.systemChromeMaterial)

Adding and Styling a Vibrancy Effect

YourView()
  // Add a vibrancy effect.
  .vibrancyEffect()
  // Style the vibrancy effect.
  .vibrancyEffectStyle(.fill)

Adding and Styling Blur and Vibrancy Effects

ZStack {
  YourBackgroundContent()
    // Add a blur effect.
    .blurEffect()

  YourForegroundContent()
    // Add a vibrancy effect.
    .vibrancyEffect()
}
// Set the style for blur effects within this view.
.blurEffectStyle(.systemChromeMaterial)
// Set the style for vibrancy effects within this view.
.vibrancyEffectStyle(.fill)

Adding Blur and Vibrancy Effects Directly to a View

Adding both a blur and vibrancy effect directly to a view only displays the blur effect.

If you’d like to blur the view’s background content, while adding vibrancy to the view’s foreground content, use the .background() modifier, and pass BlurEffect() as its argument. Although BlurEffect may not be very Apple-like, it’s better than the .blurEffect() modifier implementation below.

YourView()
  .vibrancyEffect()
  .background(BlurEffect())

// as opposed to:

YourView()
  .vibrancyEffect()
  .background(
    Color.clear
      .blurEffect()
  )
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].