Skip to content

Commit

Permalink
Fixed dark mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KartheekPa-Kore committed Mar 11, 2024
1 parent 26c180e commit 103b491
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class FeedbackSliderViewController: UIViewController, UITextViewDelegate {

override func viewDidLoad() {
super.viewDidLoad()

if #available(iOS 13.0, *) {
overrideUserInterfaceStyle = .light
}
// Do any additional setup after loading the view.
descriptionLabel.isHidden = true
descriptionTextView.isHidden = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class PdfShowViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
if #available(iOS 13.0, *) {
overrideUserInterfaceStyle = .light
}

self.view.addSubview(pdfView)
//print("pdf url \(pdfUrl!)")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class ListWidgetDetailsViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
if #available(iOS 13.0, *) {
overrideUserInterfaceStyle = .light
}
subView.layer.masksToBounds = false
subView?.layer.shadowColor = UIColor.lightGray.cgColor
subView?.layer.shadowOffset = CGSize.zero
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class ListViewDetailsViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
if #available(iOS 13.0, *) {
overrideUserInterfaceStyle = .light
}
getData()
self.tableview.tableFooterView = UIView(frame:.zero)
self.tableview.register(Bundle.xib(named: listCellIdentifier), forCellReuseIdentifier: listCellIdentifier)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class TaskMenuViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
if #available(iOS 13.0, *) {
overrideUserInterfaceStyle = .light
}
subView.layer.masksToBounds = false
subView?.layer.shadowColor = UIColor.lightGray.cgColor
subView?.layer.shadowOffset = CGSize.zero
Expand Down
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ Kore Bot SDK for iOS enables you to talk to Kore bots over a web socket. This re
### Configuration changes

* If you are using Cocoapods project Setting up clientId, clientSecret, botId, chatBotName and identity in Examples/CocoapodsDemo/KoreBotSDKDemo/ViewController.swift

![SDKConfiguration setup](https://github.com/Koredotcom/iOS-kore-sdk/blob/Appkit/sdk_configuration.png)

(or)

If you are using SPM project Setting up clientId, clientSecret, botId, chatBotName and identity in Examples/SwiftPackageManagerDemo/KoreBotSDKDemo/ViewController.swift

![SDKConfiguration setup](https://github.com/Koredotcom/iOS-kore-sdk/blob/Appkit/sdk_configuration.png)

Client id - Copy this id from Bot Builder SDK Settings ex. cs-5250bdc9-6bfe-5ece-92c9-ab54aa2d4285
Expand Down Expand Up @@ -128,21 +130,21 @@ Enable the webhook channel - This should be either true (in case of Webhook conn
Privacy - Photo Library Usage Description --- Allow access to photo library.
Privacy - Speech Recognition Usage Description --- Speech recognition will be used to determine which words you speak into this device's microphone.

###### b. Using CocoaPods
Add the following to your Podfile:
pod 'KoreBotSDK', :git => 'https://github.com/Koredotcom/iOS-kore-sdk.git’, :branch => 'Appkit'
###### a. Using CocoaPods
Add the following to your Podfile:
pod 'KoreBotSDK', :git => 'https://github.com/Koredotcom/iOS-kore-sdk.git’, :branch => 'Appkit'

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
Run pod install in your project folder.
end
end
end

Run "pod install" in your project folder.

###### a. In your ViewController add below lines
###### b. In your ViewController add below lines
1. import KoreBotSDK
2. let botConnect = BotConnect()
3. Add below lines in button action method
Expand All @@ -165,7 +167,7 @@ end
// MARK: Show Bot window
botConnect.show()
###### b. Add below permissions in info.plist
###### c. Add below permissions in info.plist
Privacy - Camera Usage Description --- Allow access to camera.
Privacy - Microphone Usage Description --- Allow access to microphone.
Privacy - Photo Library Usage Description --- Allow access to photo library.
Expand Down

0 comments on commit 103b491

Please sign in to comment.