diff --git a/DTTableViewManager.xcodeproj/project.pbxproj b/DTTableViewManager.xcodeproj/project.pbxproj index 441e8f2..760db9a 100644 --- a/DTTableViewManager.xcodeproj/project.pbxproj +++ b/DTTableViewManager.xcodeproj/project.pbxproj @@ -1174,7 +1174,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MACOSX_DEPLOYMENT_TARGET = 10.15; ONLY_ACTIVE_ARCH = YES; OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=150"; @@ -1184,7 +1184,7 @@ SWIFT_SWIFT3_OBJC_INFERENCE = Off; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3,4"; - TVOS_DEPLOYMENT_TARGET = 11.0; + TVOS_DEPLOYMENT_TARGET = 12.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; @@ -1225,7 +1225,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MACOSX_DEPLOYMENT_TARGET = 10.15; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvsimulator appletvos"; @@ -1233,7 +1233,7 @@ SWIFT_SWIFT3_OBJC_INFERENCE = Off; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3,4"; - TVOS_DEPLOYMENT_TARGET = 11.0; + TVOS_DEPLOYMENT_TARGET = 12.0; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; }; diff --git a/DTTableViewManager.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/DTTableViewManager.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index b379845..6fa45d1 100644 --- a/DTTableViewManager.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/DTTableViewManager.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,4 +1,5 @@ { + "originHash" : "be4f6867adfebf7a2a613fab8cbb79ea7c62c436f1182c9af68110069060528d", "pins" : [ { "identity" : "changeset", @@ -15,9 +16,9 @@ "location" : "https://github.com/DenTelezhkin/DTModelStorage", "state" : { "branch" : "main", - "revision" : "49f408f61d61917f31d1dd2ccba73813c7698f1f" + "revision" : "1473c7ed4970b9572e93cf0305c80d54855b3cdf" } } ], - "version" : 2 + "version" : 3 } diff --git a/Sources/DTTableViewManager/DTTableViewDelegate.swift b/Sources/DTTableViewManager/DTTableViewDelegate.swift index e5bb4a0..5ccf809 100644 --- a/Sources/DTTableViewManager/DTTableViewDelegate.swift +++ b/Sources/DTTableViewManager/DTTableViewDelegate.swift @@ -28,6 +28,8 @@ import DTModelStorage /// Object, that implements `UITableViewDelegate` for `DTTableViewManager`. open class DTTableViewDelegate : DTTableViewDelegateWrapper, UITableViewDelegate { + // swiftlint:disable:previous type_body_length + override func delegateWasReset() { tableView?.delegate = nil tableView?.delegate = self diff --git a/Sources/DTTableViewManager/DTTableViewManager.swift b/Sources/DTTableViewManager/DTTableViewManager.swift index 53f554f..0202846 100644 --- a/Sources/DTTableViewManager/DTTableViewManager.swift +++ b/Sources/DTTableViewManager/DTTableViewManager.swift @@ -47,7 +47,9 @@ public extension DTTableViewManageable { } /// This key is used to store `DTTableViewManager` instance on `DTTableViewManageable` class using object association. -private var DTTableViewManagerAssociatedKey = "DTTableViewManager Associated Key" +/// malloc is used per recommendation from Eskimo <3 https://forums.swift.org/t/handling-the-new-forming-unsaferawpointer-warning/65523/7 +private var DTTableViewManagerAssociatedKey = malloc(1)! +// swiftlint:disable:previous force_unwrapping /// Default implementation for `DTTableViewManageable` protocol, that will inject `manager` property to any object, that declares itself `DTTableViewManageable`. extension DTTableViewManageable