You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1586,7 +1597,7 @@ private class ObservableAsyncOpenStorage: ObservableObject {
1586
1597
}
1587
1598
1588
1599
// We don't want to use the `defaultConfiguration` from the environment, we only want to use this environment value in @AsyncOpen if is not the default one
1589
-
if configuration !=.defaultConfiguration,self.configuration != configuration {
1600
+
if configuration ==.defaultConfiguration,self.configuration != configuration {
@@ -1705,9 +1716,9 @@ private class ObservableAsyncOpenStorage: ObservableObject {
1705
1716
- parameter timeout: The maximum number of milliseconds to allow for a connection to
1706
1717
become fully established., if empty or `nil` no connection timeout is set.
1707
1718
1708
-
- note: This intialiser will use either the configuration or build a configuration from the partition value using `user.configuration(partitionValue:)`.
1719
+
- note: This intializer will use either the configuration (if not nil) with the given partition value, or build a configuration from the
1720
+
partition value using `user.configuration(partitionValue:)`.
1709
1721
*/
1710
-
@available(*, deprecated, message:"This API will be deprecated. Use init(appId:partitionValue:timeout) if you want are connecting to a partition based sync without a configuration, or init(appId:configuration:timeout) in case you are using a configuration")
1711
1722
publicinit<Partition>(appId:String?=nil,
1712
1723
partitionValue:Partition,
1713
1724
configuration:Realm.Configuration?=nil,
@@ -1718,11 +1729,14 @@ private class ObservableAsyncOpenStorage: ObservableObject {
1718
1729
}
1719
1730
1720
1731
/**
1721
-
Initialize the property wrapper with a configuration.
1732
+
Initialize the property wrapper for a flexible sync app.
1722
1733
- parameter appId: The unique identifier of your Realm app, if empty or `nil` will try to retrieve latest singular cached app.
1723
1734
- parameter configuration: A configuration `Realm.configuration` to use when opening the Realm.
1724
1735
- parameter timeout: The maximum number of milliseconds to allow for a connection to
1725
1736
become fully established., if empty or `nil` no connection timeout is set.
1737
+
1738
+
- note: This intializer will use either the configuration (if not nil), or build a configuration from the
1739
+
partition value using `user.flexibleSyncConfiguration()`.
1726
1740
*/
1727
1741
publicinit(appId:String?=nil,
1728
1742
configuration:Realm.Configuration?=nil,
@@ -1732,34 +1746,6 @@ private class ObservableAsyncOpenStorage: ObservableObject {
@@ -1846,7 +1832,6 @@ private class ObservableAsyncOpenStorage: ObservableObject {
1846
1832
1847
1833
- note: This intialiser will use either the configuration or build a configuration from the partition value using `user.configuration(partitionValue:)`.
1848
1834
*/
1849
-
@available(*, deprecated, message:"This API will be deprecated. Use init(appId:partitionValue:timeout) if you want are connecting to a partition based sync without a configuration, or init(appId:configuration:timeout) in case you are using a configuration")
1850
1835
publicinit<Partition>(appId:String?=nil,
1851
1836
partitionValue:Partition,
1852
1837
configuration:Realm.Configuration?=nil,
@@ -1871,35 +1856,6 @@ private class ObservableAsyncOpenStorage: ObservableObject {
0 commit comments