symbolEffectsRemoved
Returns a new view with its inherited symbol image effects either removed or left unchanged.
Declaration
compose().symbolEffectsRemoved(isEnabled?: boolean)@export(implementation) nonisolated func symbolEffectsRemoved(
_ isEnabled: Bool = true
) -> some ViewParameters
isEnabledbooleanWhether to remove inherited symbol effects or not.
Return value
a copy of the view with its symbol effects either removed or left unchanged.
Discussion
The following example adds a repeating pulse effect to two symbol images, but then disables the effect on one of them:
VStack {
Image(systemName: "bolt.slash.fill") // does not pulse
.symbolEffectsRemoved()
Image(systemName: "folder.fill.badge.person.crop") // pulses
}
.symbolEffect(.pulse)See also
More in Text and symbols.
- allowsTighteningSets whether text in this view can compress the space between characters when necessary to fit text in a line.
- autocorrectionDisabledSets whether to disable autocorrection for this view.
- baselineOffsetSets the vertical offset for the text relative to its baseline in this view.
- boldApplies a bold font weight to the text in this view.
- findDisabledPrevents find and replace operations in a text editor.
- findNavigatorProgrammatically presents the find and replace interface for text editor views.
- fontSets the default font for text in this view.
- fontDesignSets the font design of the text in this view.
- fontWeightSets the font weight of the text in this view.
- fontWidthSets the font width of the text in this view.
- interactionActivityTrackingTagSets a tag that you use for tracking interactivity.
- italicApplies italics to the text in this view.