Apple was working on the investing feature at a time of zero interest rates during Covid, when consumers were stuck at home and spending more of their time and their record savings in trading shares, including meme stocks like and , from their smartphones.

Apple's conversations with Goldman began during that hype cycle in 2020, two sources said. Their work progressed, and an Apple investing feature was meant to roll out in 2022. One hypothetical use case pitched by executives involved the ability for iPhone users with extra cash to put money into Apple shares, one person said.

But as markets were roiled by higher rates and soaring inflation, the Apple team feared user backlash if people lost money in the stock market with the assistance of an Apple product, the sources said. That's when the iPhone maker and Goldman switched directions and pushed the plan to launch savings accounts, which benefit from higher rates.

The status of the stock-trading project is unclear after Goldman CEO David Solomon bowed to internal and external pressure and decided to from nearly all of the bank's consumer efforts. One source said the infrastructure for an investing feature is mostly built and ready to go should Apple eventually decide to move forward with it.

The Apple Card with much fanfare three years ago, but the business brought regulatory and racked up losses as its user base expanded. Earlier this year, Goldman rolled out a high-interest account for Apple Card users, offering a 4.15% annual percentage yield.

Goldman was also central to Apple's offering. The product, called Apple Pay Later, can be used for purchases of $50 to $100 "at most websites and apps that accept Apple Pay," according to the . Borrowers can split a purchase into four payments over six weeks without incurring interest or fees.

Before Goldman's away from retail banking, the company examined ways to expand its partnership with Apple, sources said. More recently, Goldman was in to offload both its card and savings account to .

Had plans for the trading app progressed, Apple would have entered a market with stiff competition, featuring the likes of Robinhood, and Square, along with traditional brokerage firms such as and E-Trade.

Stock trading has become another way for financial firms to keep customers and drive engagement on their platforms. Apple was pursuing the same approach, one source said. It's a move that could capture the interest of regulators, who have scrutinized Apple for its App Store practices. Robinhood has also been grilled by regulators for what they as "gamifying" markets.

Other tech companies have been pushing into the space. X, formerly known as Twitter, is on a way to let users buy stocks and cryptocurrencies through a partnership with eToro. to launch stock trading after hiring a key industry executive in 2021. But the company abandoned those plans, and said on an earnings call that it would cut spending and refocus on its core e-commerce business.

WATCH: