Skip to content

Commit

Permalink
fix other issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio committed Aug 27, 2024
1 parent e9627e6 commit 3317212
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ let package = Package(
dependencies: [
"BrowserServicesKit"
],
resources: [
.process("Resources")
],
swiftSettings: [
.define("DEBUG", .when(configuration: .debug))
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,3 @@ private let strokeColor = Color.blue
return ContextualOnboardingListView(list: list) { _ in }
.padding()
}


public let bundle = Bundle.module
4 changes: 2 additions & 2 deletions Sources/Onboarding/DaxDialogs/DaxDialogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public struct DaxDialogView<Content: View>: View {

@ViewBuilder
private var daxLogo: some View {
let icon = Image(.daxIconExperiment)
let icon = Image("DaxIconExperiment", bundle: bundle)
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: DaxDialogMetrics.DaxLogo.size, height: DaxDialogMetrics.DaxLogo.size)
Expand All @@ -122,7 +122,7 @@ public struct DaxDialogView<Content: View>: View {
}

private var wrappedContent: some View {
let backgroundColor = Color(.surface)
let backgroundColor = Color("surface", bundle: bundle)
let shadowColors: (Color, Color) = colorScheme == .light ?
(.black.opacity(0.08), .black.opacity(0.1)) :
(.black.opacity(0.20), .black.opacity(0.16))
Expand Down
22 changes: 22 additions & 0 deletions Sources/Onboarding/global.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// global.swift
//
// Copyright © 2024 DuckDuckGo. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import Foundation

/// After importing Onboarding you can access this with `Onboarding.bundle`
public let bundle = Bundle.module

0 comments on commit 3317212

Please sign in to comment.