fcl-swift icon indicating copy to clipboard operation
fcl-swift copied to clipboard

Allow using custom AccessAPI

Open highskore opened this issue 1 year ago • 2 comments

Currently we are forced to only use the .mainnet or .testnet networks configs for the fcl.config object and can't specify a custom access node. The same functionality is already allowed by the flow-swift-sdk so I don't see why fcl-swift doesn't support it.

https://github.com/portto/flow-swift-sdk/blob/52448238d0e887af02fc0bdaf50ca76426317289/README.md?plain=1#L463

highskore avatar Mar 22 '23 11:03 highskore

Will this PR help?

andrew54068 avatar Mar 23 '23 02:03 andrew54068

@andrew54068 I guess so, but it's not really clean. We should be able to initialise client here: https://github.com/portto/fcl-swift/blob/d1b62c97b9dfc8c44f6c2f21c83d37a45b8af566/Sources/FCL-SDK/FCL.swift#L31

highskore avatar Mar 26 '23 02:03 highskore