Skip to content

Commit 760f131

Browse files
Updated UI library iOS sample
1 parent 9c3d593 commit 760f131

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

articles/communication-services/quickstarts/ui-library/includes/get-started-chat/ios.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ In Xcode, create a new project.
4949

5050
target 'UILibraryQuickStart' do
5151
use_frameworks!
52-
pod 'AzureCommunicationUIChat', '1.0.0-beta.4'
52+
pod 'AzureCommunicationUIChat', '1.0.0-beta.5'
5353
end
5454
```
5555

5656
1. Run `pod install --repo-update`.
5757

5858
1. In Xcode, open the generated *xcworkspace* file.
5959

60-
### Turn off Bitcode
60+
### Turn off User Script Sandboxing
6161

62-
In the Xcode project, under **Build Settings**, set the **Enable Bitcode** option to **No**. To find the setting, change the filter from **Basic** to **All** or use the search bar.
62+
In the Xcode project, under **Build Settings**, set the **User Script Sandboxing** option to **No**. To find the setting, change the filter from **Basic** to **All** or use the search bar.
6363

64-
:::image type="content" source="../../media/xcode-bitcode-option.png" alt-text="Screenshot that shows the Build Settings option to turn off Bitcode.":::
64+
:::image type="content" source="../../media/xcode-sandbox-option.png" alt-text="Screenshot that shows the Build Settings option to turn off User Script Sandboxing.":::
6565

6666
## Initialize the composite
6767

@@ -83,9 +83,11 @@ To initialize the composite:
8383
super.viewDidLoad()
8484
8585
let button = UIButton()
86-
button.contentEdgeInsets = UIEdgeInsets(top: 10.0, left: 20.0, bottom: 10.0, right: 20.0)
86+
var configuration = UIButton.Configuration.filled()
87+
configuration.contentInsets = NSDirectionalEdgeInsets(top: 10.0, leading: 20.0, bottom: 10.0, trailing: 20.0)
88+
configuration.baseBackgroundColor = .systemBlue
89+
button.configuration = configuration
8790
button.layer.cornerRadius = 10
88-
button.backgroundColor = .systemBlue
8991
button.setTitle("Start Experience", for: .normal)
9092
button.addTarget(self, action: #selector(startChatComposite), for: .touchUpInside)
9193
45.7 KB
Loading

0 commit comments

Comments
 (0)