Browse Source

Update parameter names to reflect Apple's style pattern

Lucas Brown 5 years ago
parent
commit
77e0ff8bf7

+ 2 - 2
Sources/SwiftUIVisualEffects/View Extensions/View+blurEffectStyle.swift

@@ -7,7 +7,7 @@ import SwiftUI
 
 
 public extension View {
 public extension View {
 	/// The intensity of a blur effect.
 	/// The intensity of a blur effect.
-	func blurEffectStyle(_ value: UIBlurEffect.Style) -> some View {
-		environment(\.blurEffectStyle, value)
+	func blurEffectStyle(_ style: UIBlurEffect.Style) -> some View {
+		environment(\.blurEffectStyle, style)
 	}
 	}
 }
 }

+ 2 - 2
Sources/SwiftUIVisualEffects/View Extensions/View+vibrancyEffectStyle.swift

@@ -7,7 +7,7 @@ import SwiftUI
 
 
 public extension View {
 public extension View {
 	/// The style that defines what level of vibrancy to apply to content.
 	/// The style that defines what level of vibrancy to apply to content.
-	func vibrancyEffectStyle(_ value: UIVibrancyEffectStyle) -> some View {
-		environment(\.vibrancyEffectStyle, value)
+	func vibrancyEffectStyle(_ style: UIVibrancyEffectStyle) -> some View {
+		environment(\.vibrancyEffectStyle, style)
 	}
 	}
 }
 }