mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
move swift examples (#100)
* move swift examples * swift workflow * fixup * rewirte gettingStarted * add README for swift * update fiat examples and addresss feedback
This commit is contained in:
13
snippets/swift/BreezSDKExamples/Sources/main.swift
Normal file
13
snippets/swift/BreezSDKExamples/Sources/main.swift
Normal file
@@ -0,0 +1,13 @@
|
||||
// The Swift Programming Language
|
||||
// https://docs.swift.org/swift-book
|
||||
|
||||
print("Hello, tester!")
|
||||
if let sdk = try gettingStarted(){
|
||||
if let fiarRates = getFiatCurrencyAndRates(sdk: sdk) {
|
||||
for fiat in fiarRates {
|
||||
print("rate \(fiat)\n")
|
||||
print("------------------------")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user