Skip to content

Commit

Permalink
move to some more swiftui 5.5 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Jun 8, 2021
1 parent 08c5d15 commit 21ab1ea
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Nudge/UI/SimpleMode/SimpleMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ struct SimpleMode: View {
.foregroundColor(.secondary)
}
)
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.help("Click for more information about the security update".localized(desiredLanguage: getDesiredLanguage()))
.onHover { inside in
if inside {
Expand Down
2 changes: 1 addition & 1 deletion Nudge/UI/StandardMode/DeviceInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct DeviceInfo: View {
.frame(width: 20, height: 20)
.foregroundColor(.red)
}
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.help("Click to close".localized(desiredLanguage: getDesiredLanguage()))
.onHover { inside in
if inside {
Expand Down
4 changes: 2 additions & 2 deletions Nudge/UI/StandardMode/LeftSide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct StandardModeLeftSide: View {
}) {
Image(systemName: "questionmark.circle")
}
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.padding(.top, -25.0)
.padding(.leading, 5.0)
// TODO: This is broken because of the padding
Expand Down Expand Up @@ -135,7 +135,7 @@ struct StandardModeLeftSide: View {
.foregroundColor(.secondary)
}
)
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.help("Click for more information about the security update".localized(desiredLanguage: getDesiredLanguage()))
.onHover { inside in
if inside {
Expand Down
4 changes: 2 additions & 2 deletions Nudge/UI/StandardMode/RightSide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct StandardModeRightSide: View {
.aspectRatio(contentMode: .fit)
.frame(maxHeight: 120)
}
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.help("Click to zoom into screenshot".localized(desiredLanguage: getDesiredLanguage()))
.sheet(isPresented: $showSSDetail) {
ScreenShotZoom()
Expand All @@ -179,7 +179,7 @@ struct StandardModeRightSide: View {
.aspectRatio(contentMode: .fit)
.frame(maxHeight: 120)
}
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.hidden()
.help("Click to zoom into screenshot".localized(desiredLanguage: getDesiredLanguage()))
.sheet(isPresented: $showSSDetail) {
Expand Down
4 changes: 2 additions & 2 deletions Nudge/UI/StandardMode/ScreenShotZoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ScreenShotZoom: View {
.frame(width: 20, height: 20)
.foregroundColor(.red)
}
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.help("Click to close".localized(desiredLanguage: getDesiredLanguage()))
.onHover { inside in
if inside {
Expand Down Expand Up @@ -59,7 +59,7 @@ struct ScreenShotZoom: View {
}
}
)
.buttonStyle(PlainButtonStyle())
.buttonStyle(.plain)
.help("Click to close".localized(desiredLanguage: getDesiredLanguage()))
.onHover { inside in
if inside {
Expand Down

0 comments on commit 21ab1ea

Please sign in to comment.