Skip to content

Commit

Permalink
Fix info icon #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Sep 2, 2023
1 parent 7a8deb7 commit 8e2b1be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/OversizeKit/SettingsKit/Views/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ import SwiftUI
var infoIcon: Image {
switch iconStyle {
case .line:
return Image.Base.info
return Image.Base.Info.circle
case .fill:
return Image.Base.Info.Circle.fill
case .twoTone:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import SwiftUI
#if os(iOS)
public struct SoundsAndVibrationsSettingsView: View {
@Environment(\.verticalSizeClass) private var verticalSizeClass
@Environment(\.iconStyle) var iconStyle: IconStyle
@Environment(\.isPortrait) var isPortrait
@Environment(\.presentationMode) var presentationMode
@State var offset = CGPoint(x: 0, y: 0)
Expand All @@ -21,7 +22,7 @@ import SwiftUI
public var body: some View {
PageView(title) {
iOSSettings
.surfaceContentRowInsets()
.surfaceContentRowMargins()
}
.leadingBar {
if !isPortrait, verticalSizeClass == .regular {
Expand Down Expand Up @@ -69,12 +70,23 @@ import SwiftUI
if FeatureFlags.app.vibration.valueOrFalse {
Switch(isOn: $settingsService.vibrationEnabled) {
Row(L10n.Settings.vibration) {
IconDeprecated(.radio)
vibrationIcon
}
}
}
}
}
}

var vibrationIcon: Image {
switch iconStyle {
case .line:
return Image.Mobile.vibration
case .fill:
return Image.Mobile.Vibration.fill
case .twoTone:
return Image.Mobile.Vibration.twoTone
}
}
}
#endif

0 comments on commit 8e2b1be

Please sign in to comment.