Skip to content

go-acoustic/SampleCode_Connect_SwiftUI

Repository files navigation

SwiftUIMindBlowing

SwiftUIMindBlowing is a SwiftUI sample application that shows how to integrate Connect SDK following docs.

Getting Started

Prerequisites

You need to have recent cocoapods version install on your Mac OS. Current version is 1.10.1. Please refer to cocoapods website for the details.

For SDK prerequisites and documentation, please refer to the SDK documentation here

Installing

Clone the sample app code from git hub location

git clone https://github.com/go-acoustic/SampleCode_Connect_SwiftUI.git

Go to the sample app location

cd SampleCode_Connect_SwiftUI

Open Podfile in a text editor of your choice and note the following lines in the Podfile

Note that use_frameworks is uncommented

use_frameworks!

In the respective targets for your project in the Podfile add the following line if you want to use Connect SDK's release version

pod 'AcousticConnect'

In the respective targets for your project in the Podfile add the following line if you want to use Connect SDK's debug version

pod 'AcousticConnectDebug'

You will notice that by default the sample application uses pod 'AcousticConnectDebug'

Note that you can use only one of pod 'AcousticConnect' or pod 'AcousticConnectDebug'. Do not use both at the same time.

Now you need to install the pods by running one of the following commands.

pod install

or to update

pod update

Above pod command (install or update) should complete with no errors. If you do see errors run the same command with --verbose option and share the error log with us.

Open SwiftUIMindBlowing.xcworkspace file and not the SwiftUIMindBlowing.xcodeproj file. Once you open the workspace file, please use target CXA to build the sample app and run it. There are multiple targets in the project however the only one that serves for this example is the SwiftUIMindBlowing target.

Troubleshooting

If you are using Debug version of Connect SDK. i.e. pod 'AcousticConnectDebug' , then you may edit your project's scheme in XCode and add environmental variable EODebug and set its value to 1; also add environmental variable CONNECT_DEBUG and set its value to 1. This will make the SDK to start writing debug logs to your xcode console window. If and when you want to report issues, the Connect support engineers will ask you for these logs.

Step 1


Taken original code from SwiftUIMindBlowing

SwiftUI MindBlowing 🤯

License License License License

Collections of mind-blowing SwiftUI snippets and projects.

Why another awesome-swiftui?

SwiftUI has come with a blast during and after WWDC 2019. The technology is so exciting so that the Swift Community has quickly come up with different tutorials, sample projects and experiments showing the potential of it.

Since I am a big fan of learning by doing and from the others, I create this app for my own learning and the app serves as my effort to contribute to the community, to consolidate as many tips & tricks from the community as possible, from basic to advanced SwiftUI usages, and also to showcase many cool 🤯 projects, experiments from other developers.

The app is organized in 5 main sections:

  • Basic: showing how to use primitive elements SwiftUI.

Screenshot

  • Animation: showing how to make basic animations with SwiftUI.
  • MindBlowing: super cool, mind-blowing experiments from the community.
  • Projects: full-blown simple to advanced projects using SwiftUI (and Combine).
  • More: some miscellaneous stuffs related to SwiftUI (SFSymbols, Tips & Tricks ...).

Open and Community-driven

As SwiftUI is new and is still evolving very fast, I would welcome everyone to join me to make the app more useful to the community. PRs/New ideas are warmly welcome.

👉 Currently, I need some help to design a logo and a banner for the repo, if you have some basic design knowledge, please don't hesitate to contact me.

Requirements

  • macOS 15 (optional to view previews)
  • Xcode 11.1
  • iOS 13.1+

License

I try to integrate only MIT license friendly code. The code are copyrighted by their respective authors. I always attach the links to the original repos alongside the code.

The app itself is also licensed under MIT license as stated in LICENSE

About

SwiftUI application with Connect integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages