Handle Multiple AWSConfiguration In one Viewcontroller IOS Swift - ios

I am trying to log in to the app using two options one is OTP based and the other is QR based. I am looking for an option where I can have multiple AWSconfiguration.json files in one project and the AWSMobileClient can choose from one depending on the type of login in the Login View controller. I tried solutions given on some of the StackOverflow links but unfortunately, not getting the expected result.
Thanks In Advance

Related

How UIActivityViewController title and description works?

How the title and description parts of the header on UIActivityViewController works by default on iOS and other platforms? In cases, where there's no customization and any other works done to set them, how these 2 elements are generated by the system.
There can be multiple scenarios according to the type of element that's being shared and their related attributes. So, understanding this default mechanisms of the system requires trial and error attempts to figure them out. It would be better to have a common system design of it.
For iOS13+ it is possible with LPLinkMetadata for UIActivityViewController. Check this tutorial for full info: Composing Rich Link Previews Using LinkPresentation in Swift

How to modify a ShareViewController so that choosing an app in the share sheet results in saving media and launching the selected app?

The ability to import media files from various apps (like Photos, Files, WhatsApp) to an app I am building (referred to as "My App" from hereon) using a share button is what I am seeking to achieve.
The user interaction process should be as follows:
Step 1: Select media file from any app
Step 2: tap share button which should list "My App" among others
So far, I have been able to get my app listed on the sharesheet sorted based on this article. I have also looked at this post that makes use of SLComposeServiceViewController which caters to the more of a social media like popup from a sharesheet. Neither of these have helped reach a solution.
However, I am unable to achieve my desired outcome from user action of selecting "My App" from the sharesheet, which is:
a. have selected media copied into a directory accessible to "My App"; and
b. launch "My App" in the View that shows the contents of this directory. (As the capitalisation of View demonstrates, I am writing "My App" in SwiftUI.)
Working through the aforementioned tutorial, I was unable to figure out how to achieve the described outcome; this might have to with my quite limited experience of to manipulating UIViewControllers, which I have managed to avoid so far with SwiftUI.
Any guidance on this matter would be highly appreciated.
For those looking for a pure SwiftUI and code-only approach way of solving the problem of importing media/data into your app, the most straightforward solution I found was to use .fileImporter in a View. An excellent explanation and example code is available here. The only drawback is that your app is not on the sharesheet but that is okay, in my opinion/use case.
The beauty of this solution is that:
It is code only and doesn't require you to mess around with the info.plist file to define the UTI as per this tutorial
better yet, you do not deal with the Share Extensions and the corresponding ShareViewController, which is no fun to figure out for a purely SwiftUI-based developer.

How to add items in Firebase using react native

I'm still a newbie in react native and it's also my first time using Firebase database. So, using the official documentation i've managed to add items (composed only by title ) in the database but only using an alertIos.
Now I need to navigate to other screen, add items and I need the items themselves composed by title and genre for example. Thank you
PS: here is the tutorial that i used : https://firebase.googleblog.com/2016/01/the-beginners-guide-to-react-native-and_84.html
Also, I used a workaround when accessing to the Firebase database : i changed the rules to read and write for everybody (thing I'm sure is wrong), so can you help me access in a secure way.

Instant searching using the UISearchBar/UISearchController in swift 3

I am trying to add the instant search functionality into my existing controller using the UISearchBar or
UISearchController
When user enters 3 characters on searchbar, should start fetching the data & show in the tableview. For that I added the API call on searchBar Delegate, but it takes time to fetch the data , while user again start entering the data, each time user enters a character , it hits one api.
What approach should we follow to achieve it ?
Is there any good library or open source to do it?
You can use InstantSearch iOS, which is an open-source library providing UI components to help you easily build instant search experiences on iOS with Algolia.
It is available on GitHub. See for example the InstantSearch E-commerce app:
You can start with the Getting Started Guide which will take you through the main steps to use the library.
The example application is also a great addition to the guide as it’ll help you get an idea of what you can build with InstantSearch iOS.
Disclaimer: I am the author of InstantSearch iOS

Xcode 6 - iOS8: Allow Master User To Update Information

I was wondering if anyone could point me to any useful tutorials on allowing a master user to update information for their app. I am looking into creating an application for a local restaurant and I want the owner to be able to update information like the soup of the day and such by themselves.
I have been looking into JSON and CMS for this, but I am unable to find any useful information regarding iOS 8 or xCode 6. If anyone could provide me with this information, or any other suggestions on how to achieve this I would be very grateful!
(I am using Swift not Objective-C)
This is not a code issue, rather it is a development concept issue. You have many choices including making an API that is updated by the restaurant. The app then connects to the API and gets the recipes. If you feel you need to do this via the App make a special username that is allowed access to modify the menu. This can be accomplished via matching username exactly or via using a regex. It all really depends on the structure of your app platform.

Resources