Is there a way to somehow affect the color of a label which is under vibrancy effect or at least bring some contrast by setting some tint/alpha/background/whatever properties? As you can see below, in my case the vibrancy created almost unreadable text...
iOS Change color of label affected by UIVibrancyEffect
1.5k Views Asked by frangulyan At
3
There are 3 best solutions below
1
Tapansinh Solanki
On
Yes u can. To render vibrant text, create a UILabel and add it to the vibrancy UIVisualEffectView's contentView. The color of the UILabel does not affect its appearance.
Go through the following link for demo project. https://github.com/ide/UIVisualEffects
0
Maayan Zalevas
On
I don't think that what you're asking for is doable, but I had a similar problem and this link helped me improve my design.
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in UITABLEVIEW
- How to make tableview reload correct data?
- UITableView hierarchy is not in a single line
- How to delete the space between UITableViewCell in plain style UITableView on visionOS?
- Dropping Pin into Map view when table view cell is selected
- UITableView not showing class array data
- Inconsistent Index Path Printing in UITableView Cell with UIButton Inside
- Potential race condition on Combine's @Published property wrapper
- UITableView gets cut off at the bottom / UIScrollView, UITableView, uitableviewdiffabledatasource
- Cannot Convert Custom ExpyTableView Type in Swift
- How to create the following design using Swift UIKit?
- UITextView textContainer.exclusionPaths not working well
- The content of UIHostingController has a weird offset when it is placed in each uitableviewcell
- UITableView's cellForRowAt not being called
- How do I inject reference types in a table view cell and reload the row of the said cell without causing a memory leak?
- Animation in UICollectionViewCell Stops When Reloading Array Data
Related Questions in UIVISUALEFFECTVIEW
- UINavigationController glitchy animation when pushing new view controller
- Background blur effect based on image
- UIVisualEffectView glitches
- `UIVisualEffectView` with blur alters hue and makes image darker or lighter - how to fix?
- Swift blur effect repeating on view change
- How do I add both shadow and rounded corners to a UIVisualEffectView?
- How draw a rectangle hole on UIBlurEffect and move it on x axis (UIKit)
- Swift. Layer with UIVisualEffect overlaps the screen so that the user is blocked from doing interactions
- UIVisualEffectView is erroneously also influenced by layers above it
- How to achieve pure black UIVisualEffectView when on top of black background?
- UIView Not Blurring Like Expected
- UIBlurEffect and UIVibrancyEffect image doesn't show on a view controller's view
- Adding a completion handler to UIViewPropertyAnimator in Swift
- Blur view with adjustable blur radius in UIKit
- swift UIVisualEffectView with mask autolayout varies by iOS device
Related Questions in UIBLUREFFECT
- UIVisualEffectView glitches
- Backdrop-filter blur not working on submenu
- How to use UIBlurEffect for Buttons in Swift
- I have troubleshoot with change View Background to Nav Bar Blur in SwiftUI
- Swift blur effect repeating on view change
- flutter blur effect between two views
- Glassmorphism/Blur effect in part of the image with Jetpack Compose?
- Swift - Blur UICollectionView Cell background
- How draw a rectangle hole on UIBlurEffect and move it on x axis (UIKit)
- UIVisualEffectView is erroneously also influenced by layers above it
- How do I add a blur effect at the top and bottom edge of vertical scrollView in flutter
- Add a blur effect for image behind a UITableView
- How to get tableView content to scroll behind blur effect in swift iOS
- Blurring the image shown on screen when flipping camera - Swift
- How do I set the blur intensity of a system material in SwiftUI 3?
Related Questions in UIVIBRANCYEFFECT
- Why Electron Vibrancy Effect Not Working At All
- Electron Multi-monitor bug with vibrancy/transparency on MacOS Big Sur
- Implement vibrancy effect on NSTextField
- UIBlurEffect and UIVibrancyEffect image doesn't show on a view controller's view
- UITableViewVibrantCell on UITableView
- How to achieve blur/frost/fibrancy background effect on views (NOT ON IMAGES) like on the Instagram app
- Emoji on UILabel with vibrancy not readable
- How to turn vibrancy off for a specific subview - Swift
- UIImageView inside UIVisualEffectView - vibrancy not applied
- Swift - Blurred vibrant background view (like the notification center over the home screen)
- How can I make a UILabel's text style adapt to the blurred background in tvOS?
- keep interface builder constraints on button when adding to vibrancy
- Title of UIButton is not visible when UIVibrancyEffect is applied
- Legibility of text on a transparent background
- How to add vibrancy effect to an image
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

When I went through 2014 WWDC video I found at least some way to affect the appearance of the vibrancy. You can set the background color of the original blur view's contentView like this:
which will unfortunately also affect the whole blur (by tinting) on which the vibrancy was based. But at least the text is much more readable after that.