Skip to content

Commit

Permalink
rm deprecated accentColor view modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
zmian committed Feb 11, 2024
1 parent 6522031 commit 3df1179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ private struct TextFieldPreviewBox<Content: View>: View {
var body: some View {
Section {
content
.accentColor(.secondary)
.readSize {
height = $0.height
}
Expand Down Expand Up @@ -56,7 +55,6 @@ private struct ShowcaseFieldPreview: View {
Button("\(disableFloatingPlaceholder ? "Enable" : "Disable") Floating Placeholder") {
disableFloatingPlaceholder.toggle()
}
.accentColor(Color(UIColor.link))

// Style Picker
Picker("", selection: $style) {
Expand Down Expand Up @@ -119,14 +117,12 @@ private struct NumberFieldPreview: View {
decimal = 500
integer = 500
}
.accentColor(Color(UIColor.link))

Button("Change to 1,000,000") {
money = 1_000_000.00
decimal = 1_000_000.00
integer = 1_000_000
}
.accentColor(Color(UIColor.link))
}
}
}
Expand Down Expand Up @@ -155,6 +151,7 @@ private struct DataFormatTypesFieldPreview: View {
print("Phone Number: \($0)")
}
}
.tint(.secondary)
.textFieldAttributes {
$0.disableFloatingPlaceholder = false
}
Expand All @@ -170,8 +167,8 @@ private struct DataFormatTypesFieldPreview: View {
extension Samples {
public static var dynamicTextFieldPreviews: some View {
List {
NumberFieldPreview()
ShowcaseFieldPreview()
NumberFieldPreview()
DataFormatTypesFieldPreview()
}
}
Expand Down
1 change: 0 additions & 1 deletion Sources/Xcore/SwiftUI/Extensions/View+Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ extension Window {
.environment(\.popupTextAlignment, env.popupTextAlignment)
.environment(\.theme, env.theme)
.tint(env.theme.tintColor)
.accentColor(env.theme.tintColor)
.preferredColorScheme(env.colorScheme)
}

Expand Down

0 comments on commit 3df1179

Please sign in to comment.