react-native-attachment-kit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +327 -0
  3. package/android/CMakeLists.txt +31 -0
  4. package/android/build.gradle +121 -0
  5. package/android/src/main/AndroidManifest.xml +2 -0
  6. package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
  7. package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +1159 -0
  8. package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitPackage.kt +37 -0
  9. package/android/src/oldarch/java/com/rnattachmentkit/NativeRNAttachmentKitSpec.kt +19 -0
  10. package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +1142 -0
  11. package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitPackage.kt +19 -0
  12. package/ios/README.md +213 -0
  13. package/ios/RNAttachmentKit.m +132 -0
  14. package/ios/RNAttachmentKit.swift +1787 -0
  15. package/ios/RNAttachmentKit.xcframework/Info.plist +44 -0
  16. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
  17. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib +0 -0
  18. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/Info.plist +0 -0
  19. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib +0 -0
  20. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +581 -0
  21. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Info.plist +0 -0
  22. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +34376 -0
  23. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +517 -0
  24. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  25. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +517 -0
  26. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/module.modulemap +3 -0
  27. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Pretendard-SemiBold.otf +0 -0
  28. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  29. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  30. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  31. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  32. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  33. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  34. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  35. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  36. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  37. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  38. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  39. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  40. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  41. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  42. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  43. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  44. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  45. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  46. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  47. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  48. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  49. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  50. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  51. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  52. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
  53. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  54. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeRequirements +0 -0
  55. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +498 -0
  56. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
  57. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
  58. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib +0 -0
  59. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/Info.plist +0 -0
  60. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib +0 -0
  61. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +1158 -0
  62. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Info.plist +0 -0
  63. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +34376 -0
  64. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +517 -0
  65. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  66. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +517 -0
  67. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +34376 -0
  68. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +517 -0
  69. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  70. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +517 -0
  71. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/module.modulemap +3 -0
  72. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Pretendard-SemiBold.otf +0 -0
  73. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  74. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  75. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  76. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  77. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  78. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  79. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  80. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  81. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  82. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  83. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  84. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  85. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  86. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  87. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  88. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  89. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  90. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  91. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  92. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  93. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  94. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  95. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  96. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  97. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
  98. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  99. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeRequirements +0 -0
  100. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +553 -0
  101. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
  102. package/ios/RNAttachmentKitAssets/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
  103. package/ios/RNAttachmentKitAssets/Assets.xcassets/AppIcon.appiconset/Contents.json +13 -0
  104. package/ios/RNAttachmentKitAssets/Assets.xcassets/Contents.json +6 -0
  105. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_back.imageset/Contents.json +24 -0
  106. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_back.imageset/ic_back_dark.png +0 -0
  107. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_back.imageset/ic_back_normal.png +0 -0
  108. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_delete.imageset/Contents.json +56 -0
  109. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_delete.imageset/delete_dark.webp +0 -0
  110. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_delete.imageset/delete_normal.webp +0 -0
  111. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_forward.imageset/Contents.json +56 -0
  112. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_forward.imageset/forward_dark.webp +0 -0
  113. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_forward.imageset/forward_normal.webp +0 -0
  114. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_reward.imageset/Contents.json +56 -0
  115. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_reward.imageset/reward_dark.webp +0 -0
  116. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_reward.imageset/reward_normal.webp +0 -0
  117. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_crop.imageset/Contents.json +52 -0
  118. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_crop.imageset/crop_dark.webp +0 -0
  119. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_crop.imageset/crop_normal.webp +0 -0
  120. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_drawing.imageset/Contents.json +52 -0
  121. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_drawing.imageset/drawing_dark.webp +0 -0
  122. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_drawing.imageset/drawing_normal.webp +0 -0
  123. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_effect.imageset/Contents.json +52 -0
  124. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_effect.imageset/effect_dark.webp +0 -0
  125. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_effect.imageset/effect_normal.webp +0 -0
  126. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_emoji.imageset/Contents.json +52 -0
  127. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_emoji.imageset/emoji_dark.webp +0 -0
  128. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_emoji.imageset/emoji_normal.webp +0 -0
  129. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_text.imageset/Contents.json +52 -0
  130. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_text.imageset/text_dark.webp +0 -0
  131. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_text.imageset/text_norml.webp +0 -0
  132. package/ios/RNAttachmentKitAssets/Assets.xcassets/rotate_icon.imageset/Contents.json +32 -0
  133. package/ios/RNAttachmentKitAssets/Assets.xcassets/rotate_icon.imageset/rotate_dark.png +0 -0
  134. package/ios/RNAttachmentKitAssets/Assets.xcassets/rotate_icon.imageset/rotate_normal.png +0 -0
  135. package/ios/RNAttachmentKitAssets/Fonts/Pretendard-SemiBold.otf +0 -0
  136. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  137. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  138. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  139. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  140. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  141. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  142. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  143. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  144. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  145. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  146. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  147. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  148. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  149. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  150. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  151. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  152. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  153. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  154. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  155. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  156. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  157. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  158. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  159. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~light.webp +0 -0
  160. package/package.json +68 -0
  161. package/react-native-attachment-kit.podspec +51 -0
  162. package/react-native.config.js +14 -0
  163. package/src/NativeAttachmentKit.ts +26 -0
  164. package/src/index.d.ts +56 -0
  165. package/src/index.ts +359 -0
  166. package/src/types.ts +317 -0
@@ -0,0 +1,1158 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
4
+ #ifndef RNATTACHMENTKIT_SWIFT_H
5
+ #define RNATTACHMENTKIT_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif // defined(__OBJC__)
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
38
+ #else
39
+ #include <stdint.h>
40
+ #include <stddef.h>
41
+ #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #pragma clang diagnostic push
46
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
47
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
48
+ # include <ptrauth.h>
49
+ #else
50
+ #pragma clang diagnostic push
51
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
52
+ # ifndef __ptrauth_swift_value_witness_function_pointer
53
+ # define __ptrauth_swift_value_witness_function_pointer(x)
54
+ # endif
55
+ # ifndef __ptrauth_swift_class_method_pointer
56
+ # define __ptrauth_swift_class_method_pointer(x)
57
+ # endif
58
+ #pragma clang diagnostic pop
59
+ #endif
60
+ #pragma clang diagnostic pop
61
+ #endif
62
+
63
+ #if !defined(SWIFT_TYPEDEFS)
64
+ # define SWIFT_TYPEDEFS 1
65
+ # if __has_include(<uchar.h>)
66
+ # include <uchar.h>
67
+ # elif !defined(__cplusplus)
68
+ typedef unsigned char char8_t;
69
+ typedef uint_least16_t char16_t;
70
+ typedef uint_least32_t char32_t;
71
+ # endif
72
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
73
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
74
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
75
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
76
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
77
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
78
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
79
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
80
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
81
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
82
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
83
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
84
+ #endif
85
+
86
+ #if !defined(SWIFT_PASTE)
87
+ # define SWIFT_PASTE_HELPER(x, y) x##y
88
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
89
+ #endif
90
+ #if !defined(SWIFT_METATYPE)
91
+ # define SWIFT_METATYPE(X) Class
92
+ #endif
93
+ #if !defined(SWIFT_CLASS_PROPERTY)
94
+ # if __has_feature(objc_class_property)
95
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
96
+ # else
97
+ # define SWIFT_CLASS_PROPERTY(...)
98
+ # endif
99
+ #endif
100
+ #if !defined(SWIFT_RUNTIME_NAME)
101
+ # if __has_attribute(objc_runtime_name)
102
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
103
+ # else
104
+ # define SWIFT_RUNTIME_NAME(X)
105
+ # endif
106
+ #endif
107
+ #if !defined(SWIFT_COMPILE_NAME)
108
+ # if __has_attribute(swift_name)
109
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
110
+ # else
111
+ # define SWIFT_COMPILE_NAME(X)
112
+ # endif
113
+ #endif
114
+ #if !defined(SWIFT_METHOD_FAMILY)
115
+ # if __has_attribute(objc_method_family)
116
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
117
+ # else
118
+ # define SWIFT_METHOD_FAMILY(X)
119
+ # endif
120
+ #endif
121
+ #if !defined(SWIFT_NOESCAPE)
122
+ # if __has_attribute(noescape)
123
+ # define SWIFT_NOESCAPE __attribute__((noescape))
124
+ # else
125
+ # define SWIFT_NOESCAPE
126
+ # endif
127
+ #endif
128
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
129
+ # if __has_attribute(ns_consumed)
130
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
131
+ # else
132
+ # define SWIFT_RELEASES_ARGUMENT
133
+ # endif
134
+ #endif
135
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
136
+ # if __has_attribute(warn_unused_result)
137
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
138
+ # else
139
+ # define SWIFT_WARN_UNUSED_RESULT
140
+ # endif
141
+ #endif
142
+ #if !defined(SWIFT_NORETURN)
143
+ # if __has_attribute(noreturn)
144
+ # define SWIFT_NORETURN __attribute__((noreturn))
145
+ # else
146
+ # define SWIFT_NORETURN
147
+ # endif
148
+ #endif
149
+ #if !defined(SWIFT_CLASS_EXTRA)
150
+ # define SWIFT_CLASS_EXTRA
151
+ #endif
152
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
153
+ # define SWIFT_PROTOCOL_EXTRA
154
+ #endif
155
+ #if !defined(SWIFT_ENUM_EXTRA)
156
+ # define SWIFT_ENUM_EXTRA
157
+ #endif
158
+ #if !defined(SWIFT_CLASS)
159
+ # if __has_attribute(objc_subclassing_restricted)
160
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
161
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
162
+ # else
163
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
164
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
165
+ # endif
166
+ #endif
167
+ #if !defined(SWIFT_RESILIENT_CLASS)
168
+ # if __has_attribute(objc_class_stub)
169
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
170
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
171
+ # else
172
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
173
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
174
+ # endif
175
+ #endif
176
+ #if !defined(SWIFT_PROTOCOL)
177
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
178
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
179
+ #endif
180
+ #if !defined(SWIFT_EXTENSION)
181
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
182
+ #endif
183
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
184
+ # if __has_attribute(objc_designated_initializer)
185
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
186
+ # else
187
+ # define OBJC_DESIGNATED_INITIALIZER
188
+ # endif
189
+ #endif
190
+ #if !defined(SWIFT_ENUM_ATTR)
191
+ # if __has_attribute(enum_extensibility)
192
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
193
+ # else
194
+ # define SWIFT_ENUM_ATTR(_extensibility)
195
+ # endif
196
+ #endif
197
+ #if !defined(SWIFT_ENUM)
198
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
199
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
200
+ # if __has_feature(generalized_swift_name)
201
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
202
+ # else
203
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
204
+ # endif
205
+ # else
206
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
207
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
208
+ # endif
209
+ #endif
210
+ #if !defined(SWIFT_ENUM_TAG)
211
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
212
+ # define SWIFT_ENUM_TAG enum
213
+ # else
214
+ # define SWIFT_ENUM_TAG
215
+ # endif
216
+ #endif
217
+ #if !defined(SWIFT_ENUM_FWD_DECL)
218
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
219
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
220
+ # else
221
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
222
+ # endif
223
+ #endif
224
+ #if !defined(SWIFT_UNAVAILABLE)
225
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
226
+ #endif
227
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
228
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
229
+ #endif
230
+ #if !defined(SWIFT_AVAILABILITY)
231
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
232
+ #endif
233
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
234
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
235
+ #endif
236
+ #if !defined(SWIFT_WEAK_IMPORT)
237
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
238
+ #endif
239
+ #if !defined(SWIFT_DEPRECATED)
240
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
241
+ #endif
242
+ #if !defined(SWIFT_DEPRECATED_MSG)
243
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
244
+ #endif
245
+ #if !defined(SWIFT_DEPRECATED_OBJC)
246
+ # if __has_feature(attribute_diagnose_if_objc)
247
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
248
+ # else
249
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
250
+ # endif
251
+ #endif
252
+ #if defined(__OBJC__)
253
+ #if !defined(IBSegueAction)
254
+ # define IBSegueAction
255
+ #endif
256
+ #endif
257
+ #if !defined(SWIFT_EXTERN)
258
+ # if defined(__cplusplus)
259
+ # define SWIFT_EXTERN extern "C"
260
+ # else
261
+ # define SWIFT_EXTERN extern
262
+ # endif
263
+ #endif
264
+ #if !defined(SWIFT_CALL)
265
+ # define SWIFT_CALL __attribute__((swiftcall))
266
+ #endif
267
+ #if !defined(SWIFT_INDIRECT_RESULT)
268
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
269
+ #endif
270
+ #if !defined(SWIFT_CONTEXT)
271
+ # define SWIFT_CONTEXT __attribute__((swift_context))
272
+ #endif
273
+ #if !defined(SWIFT_ERROR_RESULT)
274
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
275
+ #endif
276
+ #if defined(__cplusplus)
277
+ # define SWIFT_NOEXCEPT noexcept
278
+ #else
279
+ # define SWIFT_NOEXCEPT
280
+ #endif
281
+ #if !defined(SWIFT_C_INLINE_THUNK)
282
+ # if __has_attribute(always_inline)
283
+ # if __has_attribute(nodebug)
284
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
285
+ # else
286
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
287
+ # endif
288
+ # else
289
+ # define SWIFT_C_INLINE_THUNK inline
290
+ # endif
291
+ #endif
292
+ #if defined(_WIN32)
293
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
294
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
295
+ #endif
296
+ #else
297
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
298
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
299
+ #endif
300
+ #endif
301
+ #if !__has_feature(nullability)
302
+ # define _Nonnull
303
+ # define _Nullable
304
+ # define _Null_unspecified
305
+ #elif !defined(__OBJC__)
306
+ # pragma clang diagnostic ignored "-Wnullability-extension"
307
+ #endif
308
+ #if !__has_feature(nullability_nullable_result)
309
+ # define _Nullable_result _Nullable
310
+ #endif
311
+ #if __has_feature(objc_modules)
312
+ #if __has_warning("-Watimport-in-framework-header")
313
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
314
+ #endif
315
+ #endif
316
+
317
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
318
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
319
+ #if __has_warning("-Wpragma-clang-attribute")
320
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
321
+ #endif
322
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
323
+ #pragma clang diagnostic ignored "-Wnullability"
324
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
325
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
326
+
327
+ #if __has_attribute(external_source_symbol)
328
+ # pragma push_macro("any")
329
+ # undef any
330
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RNAttachmentKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
331
+ # pragma pop_macro("any")
332
+ #endif
333
+
334
+ #if defined(__cplusplus)
335
+ extern "C" {
336
+ #endif
337
+
338
+ #if defined(__cplusplus)
339
+ } // extern "C"
340
+ #endif
341
+ #if __has_attribute(external_source_symbol)
342
+ # pragma clang attribute pop
343
+ #endif
344
+ #if defined(__OBJC__)
345
+ #if __has_feature(objc_modules)
346
+ #if __has_warning("-Watimport-in-framework-header")
347
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
348
+ #endif
349
+ @import CoreFoundation;
350
+ @import Foundation;
351
+ @import ObjectiveC;
352
+ @import UIKit;
353
+ #endif
354
+
355
+ #endif // defined(__OBJC__)
356
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
357
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
358
+ #if __has_warning("-Wpragma-clang-attribute")
359
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
360
+ #endif
361
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
362
+ #pragma clang diagnostic ignored "-Wnullability"
363
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
364
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
365
+
366
+ #if __has_attribute(external_source_symbol)
367
+ # pragma push_macro("any")
368
+ # undef any
369
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RNAttachmentKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
370
+ # pragma pop_macro("any")
371
+ #endif
372
+
373
+ #if defined(__OBJC__)
374
+
375
+ @class NSCoder;
376
+ @class UITraitCollection;
377
+ @class NSString;
378
+ @class NSBundle;
379
+ SWIFT_CLASS("_TtC15RNAttachmentKit25GalleryBaseViewController")
380
+ @interface GalleryBaseViewController : UIViewController
381
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
382
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
383
+ - (void)viewDidLoad;
384
+ - (void)viewWillAppear:(BOOL)animated;
385
+ - (void)viewDidAppear:(BOOL)animated;
386
+ - (void)traitCollectionDidChange:(UITraitCollection * _Nullable)previousTraitCollection;
387
+ - (void)viewWillDisappear:(BOOL)animated;
388
+ - (void)viewDidDisappear:(BOOL)animated;
389
+ - (void)didReceiveMemoryWarning;
390
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
391
+ @end
392
+
393
+ @class UIPresentationController;
394
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIAdaptivePresentationControllerDelegate>
395
+ - (void)presentationControllerDidDismiss:(UIPresentationController * _Nonnull)presentationController;
396
+ @end
397
+
398
+ @class UISheetPresentationController;
399
+ SWIFT_AVAILABILITY(ios,introduced=15.0)
400
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UISheetPresentationControllerDelegate>
401
+ - (void)sheetPresentationControllerDidChangeSelectedDetentIdentifier:(UISheetPresentationController * _Nonnull)sheetPresentationController;
402
+ @end
403
+
404
+ @class UICollectionView;
405
+ @class NSIndexPath;
406
+ @class UICollectionViewCell;
407
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource>
408
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
409
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
410
+ @end
411
+
412
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSourcePrefetching>
413
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
414
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView cancelPrefetchingForItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
415
+ @end
416
+
417
+ @class UIImagePickerController;
418
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIImagePickerControllerDelegate, UINavigationControllerDelegate>
419
+ - (void)imagePickerController:(UIImagePickerController * _Nonnull)picker didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey, id> * _Nonnull)info;
420
+ - (void)imagePickerControllerDidCancel:(UIImagePickerController * _Nonnull)picker;
421
+ @end
422
+
423
+ @class UIScrollView;
424
+ @class UICollectionViewLayout;
425
+ @protocol UIViewControllerTransitionCoordinator;
426
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDelegateFlowLayout>
427
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
428
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
429
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
430
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
431
+ - (CGSize)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
432
+ - (void)viewDidLayoutSubviews;
433
+ - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id <UIViewControllerTransitionCoordinator> _Nonnull)coordinator;
434
+ @end
435
+
436
+ SWIFT_CLASS("_TtC15RNAttachmentKit21GalleryViewController")
437
+ @interface GalleryViewController : GalleryBaseViewController
438
+ - (void)viewDidLoad;
439
+ - (void)viewWillAppear:(BOOL)animated;
440
+ - (void)traitCollectionDidChange:(UITraitCollection * _Nullable)previousTraitCollection;
441
+ - (void)viewDidLayoutSubviews;
442
+ - (void)viewDidAppear:(BOOL)animated;
443
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
444
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
445
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
446
+ @end
447
+
448
+ @protocol UIViewControllerAnimatedTransitioning;
449
+ SWIFT_CLASS("_TtC15RNAttachmentKit29ImageEditorTransitionDelegate")
450
+ @interface ImageEditorTransitionDelegate : NSObject <UIViewControllerTransitioningDelegate>
451
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
452
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForPresentedController:(UIViewController * _Nonnull)presented presentingController:(UIViewController * _Nonnull)presenting sourceController:(UIViewController * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
453
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForDismissedController:(UIViewController * _Nonnull)dismissed SWIFT_WARN_UNUSED_RESULT;
454
+ @end
455
+
456
+ SWIFT_CLASS("_TtC15RNAttachmentKit25ImageEditorViewController")
457
+ @interface ImageEditorViewController : UIViewController
458
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
459
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
460
+ - (void)viewDidLoad;
461
+ - (void)traitCollectionDidChange:(UITraitCollection * _Nullable)previousTraitCollection;
462
+ - (void)viewDidLayoutSubviews;
463
+ - (void)viewWillDisappear:(BOOL)animated;
464
+ - (void)viewDidDisappear:(BOOL)animated;
465
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
466
+ @end
467
+
468
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource>
469
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)cv numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
470
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)cv cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
471
+ @end
472
+
473
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSourcePrefetching>
474
+ - (void)collectionView:(UICollectionView * _Nonnull)cv prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
475
+ - (void)collectionView:(UICollectionView * _Nonnull)cv cancelPrefetchingForItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
476
+ @end
477
+
478
+ @class UIGestureRecognizer;
479
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIGestureRecognizerDelegate>
480
+ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT;
481
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT;
482
+ @end
483
+
484
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDelegateFlowLayout>
485
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
486
+ - (CGSize)collectionView:(UICollectionView * _Nonnull)cv layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
487
+ @end
488
+
489
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit))
490
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
491
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
492
+ - (void)scrollViewDidEndScrollingAnimation:(UIScrollView * _Nonnull)scrollView;
493
+ @end
494
+
495
+ /// 사진 모아보기 화면. 피커 갤러리(GalleryViewController)와 같은 바텀시트(60% → 확장, 아래로 끌어 닫기),
496
+ /// 같은 상단 바·칸 모양·스크롤바/날짜 표시를 씁니다. 칸을 누르면 뷰어가 그 칸에서 줌으로 열리고,
497
+ /// 뷰어에서 몇 장을 넘기든 닫으면 지금 보던 사진의 칸으로 돌아갑니다.
498
+ /// <code>makePresentableController()</code> 로 감싼 UINavigationController 를 present 하세요.
499
+ SWIFT_CLASS("_TtC15RNAttachmentKit26MediaGalleryViewController")
500
+ @interface MediaGalleryViewController : UIViewController
501
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
502
+ @property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
503
+ - (void)viewDidLoad;
504
+ - (void)viewWillAppear:(BOOL)animated;
505
+ - (void)viewDidAppear:(BOOL)animated;
506
+ - (void)viewDidLayoutSubviews;
507
+ - (void)viewDidDisappear:(BOOL)animated;
508
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
509
+ @end
510
+
511
+ @interface MediaGalleryViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource, UICollectionViewDataSourcePrefetching, UICollectionViewDelegate>
512
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
513
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
514
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didEndDisplayingCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
515
+ - (BOOL)collectionView:(UICollectionView * _Nonnull)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
516
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
517
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
518
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView cancelPrefetchingForItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
519
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
520
+ - (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
521
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
522
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
523
+ @end
524
+
525
+ SWIFT_CLASS("_TtC15RNAttachmentKit31RemoteImageViewerViewController")
526
+ @interface RemoteImageViewerViewController : UIViewController
527
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
528
+ - (void)viewDidLoad;
529
+ - (void)viewDidLayoutSubviews;
530
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
531
+ @end
532
+
533
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIGestureRecognizerDelegate>
534
+ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT;
535
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT;
536
+ @end
537
+
538
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIScrollViewDelegate>
539
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
540
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
541
+ @end
542
+
543
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource, UICollectionViewDelegate>
544
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
545
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
546
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
547
+ @end
548
+
549
+ @class UICollectionViewLayoutAttributes;
550
+ SWIFT_CLASS("_TtC15RNAttachmentKit21TelegramGalleryLayout")
551
+ @interface TelegramGalleryLayout : UICollectionViewLayout
552
+ - (void)prepareLayout;
553
+ @property (nonatomic, readonly) CGSize collectionViewContentSize;
554
+ - (NSArray<UICollectionViewLayoutAttributes *> * _Nullable)layoutAttributesForElementsInRect:(CGRect)rect SWIFT_WARN_UNUSED_RESULT;
555
+ - (UICollectionViewLayoutAttributes * _Nullable)layoutAttributesForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
556
+ - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds SWIFT_WARN_UNUSED_RESULT;
557
+ - (void)invalidateLayout;
558
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
559
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
560
+ @end
561
+
562
+ @protocol UIViewControllerContextTransitioning;
563
+ SWIFT_CLASS("_TtC15RNAttachmentKit22ZoomTransitionAnimator")
564
+ @interface ZoomTransitionAnimator : NSObject <UIViewControllerAnimatedTransitioning>
565
+ - (NSTimeInterval)transitionDuration:(id <UIViewControllerContextTransitioning> _Nullable)transitionContext SWIFT_WARN_UNUSED_RESULT;
566
+ - (void)animateTransition:(id <UIViewControllerContextTransitioning> _Nonnull)transitionContext;
567
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
568
+ @end
569
+
570
+ #endif // defined(__OBJC__)
571
+ #if __has_attribute(external_source_symbol)
572
+ # pragma clang attribute pop
573
+ #endif
574
+ #if defined(__cplusplus)
575
+ #endif
576
+ #pragma clang diagnostic pop
577
+ #endif
578
+
579
+ #elif defined(__x86_64__) && __x86_64__
580
+ // Generated by Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
581
+ #ifndef RNATTACHMENTKIT_SWIFT_H
582
+ #define RNATTACHMENTKIT_SWIFT_H
583
+ #pragma clang diagnostic push
584
+ #pragma clang diagnostic ignored "-Wgcc-compat"
585
+
586
+ #if !defined(__has_include)
587
+ # define __has_include(x) 0
588
+ #endif
589
+ #if !defined(__has_attribute)
590
+ # define __has_attribute(x) 0
591
+ #endif
592
+ #if !defined(__has_feature)
593
+ # define __has_feature(x) 0
594
+ #endif
595
+ #if !defined(__has_warning)
596
+ # define __has_warning(x) 0
597
+ #endif
598
+
599
+ #if __has_include(<swift/objc-prologue.h>)
600
+ # include <swift/objc-prologue.h>
601
+ #endif
602
+
603
+ #pragma clang diagnostic ignored "-Wauto-import"
604
+ #if defined(__OBJC__)
605
+ #include <Foundation/Foundation.h>
606
+ #endif // defined(__OBJC__)
607
+ #if defined(__cplusplus)
608
+ #include <cstdint>
609
+ #include <cstddef>
610
+ #include <cstdbool>
611
+ #include <cstring>
612
+ #include <stdlib.h>
613
+ #include <new>
614
+ #include <type_traits>
615
+ #else
616
+ #include <stdint.h>
617
+ #include <stddef.h>
618
+ #include <stdbool.h>
619
+ #include <string.h>
620
+ #endif
621
+ #if defined(__cplusplus)
622
+ #pragma clang diagnostic push
623
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
624
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
625
+ # include <ptrauth.h>
626
+ #else
627
+ #pragma clang diagnostic push
628
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
629
+ # ifndef __ptrauth_swift_value_witness_function_pointer
630
+ # define __ptrauth_swift_value_witness_function_pointer(x)
631
+ # endif
632
+ # ifndef __ptrauth_swift_class_method_pointer
633
+ # define __ptrauth_swift_class_method_pointer(x)
634
+ # endif
635
+ #pragma clang diagnostic pop
636
+ #endif
637
+ #pragma clang diagnostic pop
638
+ #endif
639
+
640
+ #if !defined(SWIFT_TYPEDEFS)
641
+ # define SWIFT_TYPEDEFS 1
642
+ # if __has_include(<uchar.h>)
643
+ # include <uchar.h>
644
+ # elif !defined(__cplusplus)
645
+ typedef unsigned char char8_t;
646
+ typedef uint_least16_t char16_t;
647
+ typedef uint_least32_t char32_t;
648
+ # endif
649
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
650
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
651
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
652
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
653
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
654
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
655
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
656
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
657
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
658
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
659
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
660
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
661
+ #endif
662
+
663
+ #if !defined(SWIFT_PASTE)
664
+ # define SWIFT_PASTE_HELPER(x, y) x##y
665
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
666
+ #endif
667
+ #if !defined(SWIFT_METATYPE)
668
+ # define SWIFT_METATYPE(X) Class
669
+ #endif
670
+ #if !defined(SWIFT_CLASS_PROPERTY)
671
+ # if __has_feature(objc_class_property)
672
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
673
+ # else
674
+ # define SWIFT_CLASS_PROPERTY(...)
675
+ # endif
676
+ #endif
677
+ #if !defined(SWIFT_RUNTIME_NAME)
678
+ # if __has_attribute(objc_runtime_name)
679
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
680
+ # else
681
+ # define SWIFT_RUNTIME_NAME(X)
682
+ # endif
683
+ #endif
684
+ #if !defined(SWIFT_COMPILE_NAME)
685
+ # if __has_attribute(swift_name)
686
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
687
+ # else
688
+ # define SWIFT_COMPILE_NAME(X)
689
+ # endif
690
+ #endif
691
+ #if !defined(SWIFT_METHOD_FAMILY)
692
+ # if __has_attribute(objc_method_family)
693
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
694
+ # else
695
+ # define SWIFT_METHOD_FAMILY(X)
696
+ # endif
697
+ #endif
698
+ #if !defined(SWIFT_NOESCAPE)
699
+ # if __has_attribute(noescape)
700
+ # define SWIFT_NOESCAPE __attribute__((noescape))
701
+ # else
702
+ # define SWIFT_NOESCAPE
703
+ # endif
704
+ #endif
705
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
706
+ # if __has_attribute(ns_consumed)
707
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
708
+ # else
709
+ # define SWIFT_RELEASES_ARGUMENT
710
+ # endif
711
+ #endif
712
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
713
+ # if __has_attribute(warn_unused_result)
714
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
715
+ # else
716
+ # define SWIFT_WARN_UNUSED_RESULT
717
+ # endif
718
+ #endif
719
+ #if !defined(SWIFT_NORETURN)
720
+ # if __has_attribute(noreturn)
721
+ # define SWIFT_NORETURN __attribute__((noreturn))
722
+ # else
723
+ # define SWIFT_NORETURN
724
+ # endif
725
+ #endif
726
+ #if !defined(SWIFT_CLASS_EXTRA)
727
+ # define SWIFT_CLASS_EXTRA
728
+ #endif
729
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
730
+ # define SWIFT_PROTOCOL_EXTRA
731
+ #endif
732
+ #if !defined(SWIFT_ENUM_EXTRA)
733
+ # define SWIFT_ENUM_EXTRA
734
+ #endif
735
+ #if !defined(SWIFT_CLASS)
736
+ # if __has_attribute(objc_subclassing_restricted)
737
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
738
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
739
+ # else
740
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
741
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
742
+ # endif
743
+ #endif
744
+ #if !defined(SWIFT_RESILIENT_CLASS)
745
+ # if __has_attribute(objc_class_stub)
746
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
747
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
748
+ # else
749
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
750
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
751
+ # endif
752
+ #endif
753
+ #if !defined(SWIFT_PROTOCOL)
754
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
755
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
756
+ #endif
757
+ #if !defined(SWIFT_EXTENSION)
758
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
759
+ #endif
760
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
761
+ # if __has_attribute(objc_designated_initializer)
762
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
763
+ # else
764
+ # define OBJC_DESIGNATED_INITIALIZER
765
+ # endif
766
+ #endif
767
+ #if !defined(SWIFT_ENUM_ATTR)
768
+ # if __has_attribute(enum_extensibility)
769
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
770
+ # else
771
+ # define SWIFT_ENUM_ATTR(_extensibility)
772
+ # endif
773
+ #endif
774
+ #if !defined(SWIFT_ENUM)
775
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
776
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
777
+ # if __has_feature(generalized_swift_name)
778
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
779
+ # else
780
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
781
+ # endif
782
+ # else
783
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
784
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
785
+ # endif
786
+ #endif
787
+ #if !defined(SWIFT_ENUM_TAG)
788
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
789
+ # define SWIFT_ENUM_TAG enum
790
+ # else
791
+ # define SWIFT_ENUM_TAG
792
+ # endif
793
+ #endif
794
+ #if !defined(SWIFT_ENUM_FWD_DECL)
795
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
796
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
797
+ # else
798
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
799
+ # endif
800
+ #endif
801
+ #if !defined(SWIFT_UNAVAILABLE)
802
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
803
+ #endif
804
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
805
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
806
+ #endif
807
+ #if !defined(SWIFT_AVAILABILITY)
808
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
809
+ #endif
810
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
811
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
812
+ #endif
813
+ #if !defined(SWIFT_WEAK_IMPORT)
814
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
815
+ #endif
816
+ #if !defined(SWIFT_DEPRECATED)
817
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
818
+ #endif
819
+ #if !defined(SWIFT_DEPRECATED_MSG)
820
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
821
+ #endif
822
+ #if !defined(SWIFT_DEPRECATED_OBJC)
823
+ # if __has_feature(attribute_diagnose_if_objc)
824
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
825
+ # else
826
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
827
+ # endif
828
+ #endif
829
+ #if defined(__OBJC__)
830
+ #if !defined(IBSegueAction)
831
+ # define IBSegueAction
832
+ #endif
833
+ #endif
834
+ #if !defined(SWIFT_EXTERN)
835
+ # if defined(__cplusplus)
836
+ # define SWIFT_EXTERN extern "C"
837
+ # else
838
+ # define SWIFT_EXTERN extern
839
+ # endif
840
+ #endif
841
+ #if !defined(SWIFT_CALL)
842
+ # define SWIFT_CALL __attribute__((swiftcall))
843
+ #endif
844
+ #if !defined(SWIFT_INDIRECT_RESULT)
845
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
846
+ #endif
847
+ #if !defined(SWIFT_CONTEXT)
848
+ # define SWIFT_CONTEXT __attribute__((swift_context))
849
+ #endif
850
+ #if !defined(SWIFT_ERROR_RESULT)
851
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
852
+ #endif
853
+ #if defined(__cplusplus)
854
+ # define SWIFT_NOEXCEPT noexcept
855
+ #else
856
+ # define SWIFT_NOEXCEPT
857
+ #endif
858
+ #if !defined(SWIFT_C_INLINE_THUNK)
859
+ # if __has_attribute(always_inline)
860
+ # if __has_attribute(nodebug)
861
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
862
+ # else
863
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
864
+ # endif
865
+ # else
866
+ # define SWIFT_C_INLINE_THUNK inline
867
+ # endif
868
+ #endif
869
+ #if defined(_WIN32)
870
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
871
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
872
+ #endif
873
+ #else
874
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
875
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
876
+ #endif
877
+ #endif
878
+ #if !__has_feature(nullability)
879
+ # define _Nonnull
880
+ # define _Nullable
881
+ # define _Null_unspecified
882
+ #elif !defined(__OBJC__)
883
+ # pragma clang diagnostic ignored "-Wnullability-extension"
884
+ #endif
885
+ #if !__has_feature(nullability_nullable_result)
886
+ # define _Nullable_result _Nullable
887
+ #endif
888
+ #if __has_feature(objc_modules)
889
+ #if __has_warning("-Watimport-in-framework-header")
890
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
891
+ #endif
892
+ #endif
893
+
894
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
895
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
896
+ #if __has_warning("-Wpragma-clang-attribute")
897
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
898
+ #endif
899
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
900
+ #pragma clang diagnostic ignored "-Wnullability"
901
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
902
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
903
+
904
+ #if __has_attribute(external_source_symbol)
905
+ # pragma push_macro("any")
906
+ # undef any
907
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RNAttachmentKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
908
+ # pragma pop_macro("any")
909
+ #endif
910
+
911
+ #if defined(__cplusplus)
912
+ extern "C" {
913
+ #endif
914
+
915
+ #if defined(__cplusplus)
916
+ } // extern "C"
917
+ #endif
918
+ #if __has_attribute(external_source_symbol)
919
+ # pragma clang attribute pop
920
+ #endif
921
+ #if defined(__OBJC__)
922
+ #if __has_feature(objc_modules)
923
+ #if __has_warning("-Watimport-in-framework-header")
924
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
925
+ #endif
926
+ @import CoreFoundation;
927
+ @import Foundation;
928
+ @import ObjectiveC;
929
+ @import UIKit;
930
+ #endif
931
+
932
+ #endif // defined(__OBJC__)
933
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
934
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
935
+ #if __has_warning("-Wpragma-clang-attribute")
936
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
937
+ #endif
938
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
939
+ #pragma clang diagnostic ignored "-Wnullability"
940
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
941
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
942
+
943
+ #if __has_attribute(external_source_symbol)
944
+ # pragma push_macro("any")
945
+ # undef any
946
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RNAttachmentKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
947
+ # pragma pop_macro("any")
948
+ #endif
949
+
950
+ #if defined(__OBJC__)
951
+
952
+ @class NSCoder;
953
+ @class UITraitCollection;
954
+ @class NSString;
955
+ @class NSBundle;
956
+ SWIFT_CLASS("_TtC15RNAttachmentKit25GalleryBaseViewController")
957
+ @interface GalleryBaseViewController : UIViewController
958
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
959
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
960
+ - (void)viewDidLoad;
961
+ - (void)viewWillAppear:(BOOL)animated;
962
+ - (void)viewDidAppear:(BOOL)animated;
963
+ - (void)traitCollectionDidChange:(UITraitCollection * _Nullable)previousTraitCollection;
964
+ - (void)viewWillDisappear:(BOOL)animated;
965
+ - (void)viewDidDisappear:(BOOL)animated;
966
+ - (void)didReceiveMemoryWarning;
967
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
968
+ @end
969
+
970
+ @class UIPresentationController;
971
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIAdaptivePresentationControllerDelegate>
972
+ - (void)presentationControllerDidDismiss:(UIPresentationController * _Nonnull)presentationController;
973
+ @end
974
+
975
+ @class UISheetPresentationController;
976
+ SWIFT_AVAILABILITY(ios,introduced=15.0)
977
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UISheetPresentationControllerDelegate>
978
+ - (void)sheetPresentationControllerDidChangeSelectedDetentIdentifier:(UISheetPresentationController * _Nonnull)sheetPresentationController;
979
+ @end
980
+
981
+ @class UICollectionView;
982
+ @class NSIndexPath;
983
+ @class UICollectionViewCell;
984
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource>
985
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
986
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
987
+ @end
988
+
989
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSourcePrefetching>
990
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
991
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView cancelPrefetchingForItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
992
+ @end
993
+
994
+ @class UIImagePickerController;
995
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIImagePickerControllerDelegate, UINavigationControllerDelegate>
996
+ - (void)imagePickerController:(UIImagePickerController * _Nonnull)picker didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey, id> * _Nonnull)info;
997
+ - (void)imagePickerControllerDidCancel:(UIImagePickerController * _Nonnull)picker;
998
+ @end
999
+
1000
+ @class UIScrollView;
1001
+ @class UICollectionViewLayout;
1002
+ @protocol UIViewControllerTransitionCoordinator;
1003
+ @interface GalleryBaseViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDelegateFlowLayout>
1004
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
1005
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1006
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
1007
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
1008
+ - (CGSize)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1009
+ - (void)viewDidLayoutSubviews;
1010
+ - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id <UIViewControllerTransitionCoordinator> _Nonnull)coordinator;
1011
+ @end
1012
+
1013
+ SWIFT_CLASS("_TtC15RNAttachmentKit21GalleryViewController")
1014
+ @interface GalleryViewController : GalleryBaseViewController
1015
+ - (void)viewDidLoad;
1016
+ - (void)viewWillAppear:(BOOL)animated;
1017
+ - (void)traitCollectionDidChange:(UITraitCollection * _Nullable)previousTraitCollection;
1018
+ - (void)viewDidLayoutSubviews;
1019
+ - (void)viewDidAppear:(BOOL)animated;
1020
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1021
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1022
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
1023
+ @end
1024
+
1025
+ @protocol UIViewControllerAnimatedTransitioning;
1026
+ SWIFT_CLASS("_TtC15RNAttachmentKit29ImageEditorTransitionDelegate")
1027
+ @interface ImageEditorTransitionDelegate : NSObject <UIViewControllerTransitioningDelegate>
1028
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1029
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForPresentedController:(UIViewController * _Nonnull)presented presentingController:(UIViewController * _Nonnull)presenting sourceController:(UIViewController * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
1030
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForDismissedController:(UIViewController * _Nonnull)dismissed SWIFT_WARN_UNUSED_RESULT;
1031
+ @end
1032
+
1033
+ SWIFT_CLASS("_TtC15RNAttachmentKit25ImageEditorViewController")
1034
+ @interface ImageEditorViewController : UIViewController
1035
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1036
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
1037
+ - (void)viewDidLoad;
1038
+ - (void)traitCollectionDidChange:(UITraitCollection * _Nullable)previousTraitCollection;
1039
+ - (void)viewDidLayoutSubviews;
1040
+ - (void)viewWillDisappear:(BOOL)animated;
1041
+ - (void)viewDidDisappear:(BOOL)animated;
1042
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
1043
+ @end
1044
+
1045
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource>
1046
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)cv numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
1047
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)cv cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1048
+ @end
1049
+
1050
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSourcePrefetching>
1051
+ - (void)collectionView:(UICollectionView * _Nonnull)cv prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
1052
+ - (void)collectionView:(UICollectionView * _Nonnull)cv cancelPrefetchingForItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
1053
+ @end
1054
+
1055
+ @class UIGestureRecognizer;
1056
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIGestureRecognizerDelegate>
1057
+ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT;
1058
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT;
1059
+ @end
1060
+
1061
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDelegateFlowLayout>
1062
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
1063
+ - (CGSize)collectionView:(UICollectionView * _Nonnull)cv layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1064
+ @end
1065
+
1066
+ @interface ImageEditorViewController (SWIFT_EXTENSION(RNAttachmentKit))
1067
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
1068
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
1069
+ - (void)scrollViewDidEndScrollingAnimation:(UIScrollView * _Nonnull)scrollView;
1070
+ @end
1071
+
1072
+ /// 사진 모아보기 화면. 피커 갤러리(GalleryViewController)와 같은 바텀시트(60% → 확장, 아래로 끌어 닫기),
1073
+ /// 같은 상단 바·칸 모양·스크롤바/날짜 표시를 씁니다. 칸을 누르면 뷰어가 그 칸에서 줌으로 열리고,
1074
+ /// 뷰어에서 몇 장을 넘기든 닫으면 지금 보던 사진의 칸으로 돌아갑니다.
1075
+ /// <code>makePresentableController()</code> 로 감싼 UINavigationController 를 present 하세요.
1076
+ SWIFT_CLASS("_TtC15RNAttachmentKit26MediaGalleryViewController")
1077
+ @interface MediaGalleryViewController : UIViewController
1078
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1079
+ @property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
1080
+ - (void)viewDidLoad;
1081
+ - (void)viewWillAppear:(BOOL)animated;
1082
+ - (void)viewDidAppear:(BOOL)animated;
1083
+ - (void)viewDidLayoutSubviews;
1084
+ - (void)viewDidDisappear:(BOOL)animated;
1085
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
1086
+ @end
1087
+
1088
+ @interface MediaGalleryViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource, UICollectionViewDataSourcePrefetching, UICollectionViewDelegate>
1089
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
1090
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1091
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didEndDisplayingCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
1092
+ - (BOOL)collectionView:(UICollectionView * _Nonnull)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1093
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
1094
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
1095
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView cancelPrefetchingForItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
1096
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1097
+ - (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
1098
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
1099
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
1100
+ @end
1101
+
1102
+ SWIFT_CLASS("_TtC15RNAttachmentKit31RemoteImageViewerViewController")
1103
+ @interface RemoteImageViewerViewController : UIViewController
1104
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1105
+ - (void)viewDidLoad;
1106
+ - (void)viewDidLayoutSubviews;
1107
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
1108
+ @end
1109
+
1110
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIGestureRecognizerDelegate>
1111
+ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT;
1112
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT;
1113
+ @end
1114
+
1115
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIScrollViewDelegate>
1116
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1117
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
1118
+ @end
1119
+
1120
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource, UICollectionViewDelegate>
1121
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
1122
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1123
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
1124
+ @end
1125
+
1126
+ @class UICollectionViewLayoutAttributes;
1127
+ SWIFT_CLASS("_TtC15RNAttachmentKit21TelegramGalleryLayout")
1128
+ @interface TelegramGalleryLayout : UICollectionViewLayout
1129
+ - (void)prepareLayout;
1130
+ @property (nonatomic, readonly) CGSize collectionViewContentSize;
1131
+ - (NSArray<UICollectionViewLayoutAttributes *> * _Nullable)layoutAttributesForElementsInRect:(CGRect)rect SWIFT_WARN_UNUSED_RESULT;
1132
+ - (UICollectionViewLayoutAttributes * _Nullable)layoutAttributesForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1133
+ - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds SWIFT_WARN_UNUSED_RESULT;
1134
+ - (void)invalidateLayout;
1135
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1136
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
1137
+ @end
1138
+
1139
+ @protocol UIViewControllerContextTransitioning;
1140
+ SWIFT_CLASS("_TtC15RNAttachmentKit22ZoomTransitionAnimator")
1141
+ @interface ZoomTransitionAnimator : NSObject <UIViewControllerAnimatedTransitioning>
1142
+ - (NSTimeInterval)transitionDuration:(id <UIViewControllerContextTransitioning> _Nullable)transitionContext SWIFT_WARN_UNUSED_RESULT;
1143
+ - (void)animateTransition:(id <UIViewControllerContextTransitioning> _Nonnull)transitionContext;
1144
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1145
+ @end
1146
+
1147
+ #endif // defined(__OBJC__)
1148
+ #if __has_attribute(external_source_symbol)
1149
+ # pragma clang attribute pop
1150
+ #endif
1151
+ #if defined(__cplusplus)
1152
+ #endif
1153
+ #pragma clang diagnostic pop
1154
+ #endif
1155
+
1156
+ #else
1157
+ #error unsupported Swift architecture
1158
+ #endif