Skip to content

Commit

Permalink
Release 1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DixaRobot committed Mar 11, 2024
1 parent 2636189 commit 8d02a9e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion DixaMessengerKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'DixaMessengerKit'
s.version = '1.8.5.1'
s.version = '1.8.5'
s.summary = 'DixaMessenger for iOS'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ let package = Package(
targets: ["DixaMessenger"]),
],
targets: [
.binaryTarget(name: "DixaMessenger", url: "https://github.com/dixahq/ios-messenger/releases/download/1.8.5.1/DixaMessenger.xcframework.zip", checksum: "e9a08c1a74950d45ca0966716b8d74d10dcb0c52df8392b29196137421a0f351")
.binaryTarget(name: "DixaMessenger", url: "https://github.com/dixahq/ios-messenger/releases/download/1.8.5/DixaMessenger.xcframework.zip", checksum: "226738c2e4959b361de33e6c9202cc2f3074d024922c3b42e2cf49b48a251a37")
]
)
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

## Requirements
- iOS 15+
- Xcode 15.2+

## Installation
The Dixa Messenger SDK can be installed using Swift package manager, cocoa pods or by manually downloading and adding it to the project.
Expand Down Expand Up @@ -195,15 +196,33 @@ struct YourHostingView: View {
// MARK: - States
@State var openMessenger: Bool = false

// MARK: - Config
var config: DixaConfiguration {
DixaConfiguration()
.logLevel(.all)
.pushEnvironment(.production)
.logLevel(.warning)
.apikey("API Key")
}

// MARK: - View
var body: some View {
VStack {
Button {
openMessenger.toggle()
} label: {
Text("Contact Support")
.foregroundStyle(.black)
}
}
.onAppear(perform: {

/// MARK: - Configure the SDK
Messenger.configure(config)
})
.fullScreenCover(isPresented: $openMessenger) {

/// MARK: - Present it
Messenger.openMessenger()
}
}
Expand All @@ -214,7 +233,6 @@ struct YourHostingView: View {
}
```


**UIKit**

All you need to do, is to supply a view controller from where the messenger should be presented.
Expand Down

0 comments on commit 8d02a9e

Please sign in to comment.