Skip to content

Commit 92f1bf3

Browse files
authored
feat: support macos
1 parent a92d242 commit 92f1bf3

File tree

8 files changed

+171
-360
lines changed

8 files changed

+171
-360
lines changed

Package.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import PackageDescription
66
let package = Package(
77
name: "BitcoinUI",
88
platforms: [
9-
.iOS(.v16)
9+
.iOS(.v16),
10+
.macOS(.v13),
1011
],
1112
products: [
1213
// Products define the executables and libraries a package produces, and make them visible to other packages.
@@ -24,7 +25,8 @@ let package = Package(
2425
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2526
.target(
2627
name: "BitcoinUI",
27-
dependencies: []
28+
dependencies: [],
29+
resources: [.process("Images.xcassets")]
2830
),
2931
.testTarget(
3032
name: "BitcoinUITests",

Sources/BitcoinUI/BitcoinUI.docc/Resources/code-files/01-02-colors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct ColorsTutorial: View {
66

77
Text("Bitcoin Orange")
88
.font(.caption)
9-
.foregroundColor(Color(UIColor.bitcoinOrange))
9+
.foregroundColor(Color.bitcoinOrange)
1010
.multilineTextAlignment(.center)
1111

1212
}

Sources/BitcoinUI/ButtonStyles.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ struct ButtonStylesView: View {
230230
var body: some View {
231231

232232
ZStack {
233-
Color(UIColor.systemBackground)
233+
Color.bitcoinNeutral1
234234

235235
VStack {
236236

0 commit comments

Comments
 (0)