Skip to content

Commit

Permalink
Fix compatibleTopBarTrailing in MacOS and api tests (#4226)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro authored Aug 29, 2024
1 parent d40eb11 commit b4379b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import SwiftUI
internal extension ToolbarItemPlacement {

static var compatibleTopBarTrailing: ToolbarItemPlacement {
#if swift(>=5.9)
#if swift(>=5.9) && !os(macOS)
if #available(iOS 14.0, tvOS 14.0, watchOS 10.0, *) {
return .topBarTrailing
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ func checkCustomerCenterConfigData(_ data: CustomerCenterConfigData) {
let localization: CustomerCenterConfigData.Localization = data.localization
let support: CustomerCenterConfigData.Support = data.support
let lastPublishedAppVersion = data.lastPublishedAppVersion
let productId = data.productId

let _: CustomerCenterConfigData = .init(screens: screens,
appearance: appearance,
localization: localization,
support: support,
lastPublishedAppVersion: lastPublishedAppVersion)
lastPublishedAppVersion: lastPublishedAppVersion,
productId: productId)
}

func checkHelpPath(_ path: CustomerCenterConfigData.HelpPath) {
Expand Down

0 comments on commit b4379b1

Please sign in to comment.