Update of the comments

This commit is contained in:
Lukas Korba 2022-02-22 15:10:53 +01:00
parent bbf5498fe2
commit e1c1ec62e7
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
// NeumorphicDesignModifier.swift // NeumorphicDesignModifier.swift
// secant-testnet // secant-testnet
// //
// Created by Lukáš Korba on 21.02.2022. // Created by Lukáš Korba on 02/21/22.
// //
import SwiftUI import SwiftUI
@ -12,6 +12,7 @@ import SwiftUI
/// - Parameters: /// - Parameters:
/// - colorScheme: The light is using full neumorphic design while dark is limited to soft shadow only /// - colorScheme: The light is using full neumorphic design while dark is limited to soft shadow only
/// - isPressed: When the button is pressed, there are different behaviours for light vs. dark colorScheme /// - isPressed: When the button is pressed, there are different behaviours for light vs. dark colorScheme
/// This design is mostly used for CircularFrame, not designed for a button (see NeumorphicButtonDesign)
struct NeumorphicDesign: ViewModifier { struct NeumorphicDesign: ViewModifier {
@Environment(\.colorScheme) var colorScheme @Environment(\.colorScheme) var colorScheme
let isPressed: Bool let isPressed: Bool
@ -42,6 +43,7 @@ struct NeumorphicDesign: ViewModifier {
/// - Parameters: /// - Parameters:
/// - colorScheme: The light is using full neumorphic design while dark is limited to soft shadow only /// - colorScheme: The light is using full neumorphic design while dark is limited to soft shadow only
/// - isPressed: When the button is pressed, there are different behaviours for light vs. dark colorScheme /// - isPressed: When the button is pressed, there are different behaviours for light vs. dark colorScheme
/// This design is specifically crafted for buttons. The colors and positions of the shadows are different.
struct NeumorphicButtonDesign: ViewModifier { struct NeumorphicButtonDesign: ViewModifier {
@Environment(\.colorScheme) var colorScheme @Environment(\.colorScheme) var colorScheme
let isPressed: Bool let isPressed: Bool

View File

@ -2,7 +2,7 @@
// SecantButtonStyles.swift // SecantButtonStyles.swift
// secant-testnet // secant-testnet
// //
// Created by Lukáš Korba on 22.02.2022. // Created by Lukáš Korba on 02/22/22.
// //
import SwiftUI import SwiftUI