@momo-kits/native-kits 0.0.1-beta.4 → 0.0.1-beta.5
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.
- package/example/ios/Example/ComponentModel.swift +7 -2
- package/example/ios/Example/ContentView.swift +0 -14
- package/example/ios/Example/Foundation/ImageDemo.swift +43 -0
- package/example/ios/Example/Foundation/Popup/Popups.swift +2 -52
- package/example/ios/Example/Foundation/PopupDemo.swift +44 -21
- package/example/ios/Example/Foundation/TextInputDemo.swift +13 -8
- package/example/ios/Example/Library/CheckboxDemo.swift +19 -0
- package/example/ios/Example/Library/SwitchDemo.swift +19 -0
- package/example/ios/Example/Main.swift +17 -1
- package/example/ios/Example/Resource/foundation.json +2 -2
- package/example/ios/Example/Resource/library.json +10 -0
- package/example/ios/Example.xcodeproj/project.pbxproj +12 -1
- package/example/ios/Example.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/xcschememanagement.plist +1 -1
- package/example/ios/Example.xcworkspace/xcuserdata/wem.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/example/ios/Podfile +2 -1
- package/example/ios/Podfile.lock +22 -3
- package/example/ios/Pods/Local Podspecs/MoMoUIKits.podspec.json +8 -0
- package/example/ios/Pods/Manifest.lock +22 -3
- package/example/ios/Pods/Pods.xcodeproj/project.pbxproj +1551 -165
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/SDWebImage.xcscheme +58 -0
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/SDWebImageSwiftUI.xcscheme +58 -0
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/SkeletonUI.xcscheme +58 -0
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/xcschememanagement.plist +21 -0
- package/example/ios/Pods/SDWebImage/LICENSE +20 -0
- package/example/ios/Pods/SDWebImage/README.md +352 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSButton+WebCache.h +340 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSButton+WebCache.m +172 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSData+ImageContentType.h +63 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSData+ImageContentType.m +165 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSImage+Compatibility.h +67 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSImage+Compatibility.m +120 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImage.h +114 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImage.m +392 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImagePlayer.h +112 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImagePlayer.m +420 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageRep.h +23 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageRep.m +133 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView+WebCache.h +168 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView+WebCache.m +79 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.h +110 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.m +540 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDDiskCache.h +145 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDDiskCache.m +326 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDGraphicsImageRenderer.h +73 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDGraphicsImageRenderer.m +256 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAPNGCoder.h +19 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAPNGCoder.m +58 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAWebPCoder.h +23 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAWebPCoder.m +98 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCache.h +450 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCache.m +1030 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheConfig.h +153 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheConfig.m +68 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheDefine.h +156 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheDefine.m +138 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCachesManager.h +81 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCachesManager.m +556 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoder.h +297 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoder.m +26 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.h +153 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.m +822 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCodersManager.h +58 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCodersManager.m +130 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageFrame.h +36 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageFrame.m +28 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGIFCoder.h +22 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGIFCoder.m +58 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGraphics.h +28 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGraphics.m +127 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageHEICCoder.h +25 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageHEICCoder.m +101 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOAnimatedCoder.h +58 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOAnimatedCoder.m +807 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOCoder.h +30 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOCoder.m +420 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoader.h +146 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoader.m +170 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoadersManager.h +40 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoadersManager.m +123 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageTransformer.h +241 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageTransformer.m +331 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDMemoryCache.h +78 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDMemoryCache.m +158 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheKeyFilter.h +32 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheKeyFilter.m +39 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheSerializer.h +36 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheSerializer.m +39 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCompat.h +95 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCompat.m +17 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDefine.h +352 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDefine.m +149 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloader.h +314 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloader.m +658 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderConfig.h +113 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderConfig.m +60 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderDecryptor.h +49 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderDecryptor.m +55 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderOperation.h +191 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderOperation.m +722 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderRequestModifier.h +69 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderRequestModifier.m +71 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderResponseModifier.h +69 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderResponseModifier.m +73 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageError.h +32 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageError.m +16 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageIndicator.h +115 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageIndicator.m +275 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageManager.h +290 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageManager.m +775 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOperation.h +27 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOperation.m +14 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOptionsProcessor.h +72 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOptionsProcessor.m +59 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImagePrefetcher.h +143 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImagePrefetcher.m +303 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageTransition.h +131 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageTransition.m +194 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIButton+WebCache.h +387 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIButton+WebCache.m +234 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ExtendedCacheData.h +24 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ExtendedCacheData.m +23 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ForceDecode.h +46 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ForceDecode.m +60 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+GIF.h +26 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+GIF.m +22 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MemoryCacheCost.h +27 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MemoryCacheCost.m +47 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Metadata.h +89 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Metadata.m +221 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MultiFormat.h +80 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MultiFormat.m +47 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Transform.h +146 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Transform.m +824 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+HighlightedWebCache.h +129 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+HighlightedWebCache.m +76 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+WebCache.h +194 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+WebCache.m +67 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCache.h +110 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCache.m +446 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCacheOperation.h +48 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCacheOperation.m +82 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/NSBezierPath+SDRoundedCorners.h +24 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/NSBezierPath+SDRoundedCorners.m +42 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAssociatedObject.h +14 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAssociatedObject.m +29 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAsyncBlockOperation.h +21 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAsyncBlockOperation.m +92 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDeviceHelper.h +18 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDeviceHelper.m +32 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDisplayLink.h +29 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDisplayLink.m +227 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDFileAttributeHelper.h +19 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDFileAttributeHelper.m +127 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageAssetManager.h +23 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageAssetManager.m +164 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageCachesManagerOperation.h +21 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageCachesManagerOperation.m +83 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageIOAnimatedCoderInternal.h +39 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDInternalMacros.h +122 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDInternalMacros.m +13 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDWeakProxy.h +20 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDWeakProxy.m +79 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDWebImageTransitionInternal.h +19 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDmetamacros.h +667 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/UIColor+SDHexString.h +18 -0
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/UIColor+SDHexString.m +42 -0
- package/example/ios/Pods/SDWebImage/WebImage/SDWebImage.h +89 -0
- package/example/ios/Pods/SDWebImageSwiftUI/LICENSE +19 -0
- package/example/ios/Pods/SDWebImageSwiftUI/README.md +690 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/AnimatedImage.swift +870 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/Backport.swift +59 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/OnChange.swift +52 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/Overlay.swift +124 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/StateObject.swift +151 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Image.swift +78 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/ImageManager.swift +132 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/ImagePlayer.swift +122 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift +133 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Indicator/ActivityIndicator.swift +82 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Indicator/Indicator.swift +97 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Indicator/ProgressIndicator.swift +114 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/SDWebImageSwiftUI.swift +64 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/SwiftUICompatibility.swift +92 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Transition/Transition.swift +93 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/WebImage.swift +509 -0
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Module/SDWebImageSwiftUI.h +15 -0
- package/example/ios/Pods/SkeletonUI/LICENSE +21 -0
- package/example/ios/Pods/SkeletonUI/README.md +137 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Angle/AngleInteractor.swift +29 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Angle/AnglePresenter.swift +7 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Animation/AnimationInteractor.swift +56 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Appearance/AppearanceInteractor.swift +58 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Appearance/AppearancePresenter.swift +5 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/ClosedRange+Normalize.swift +16 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Image+OptionalType.swift +102 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/ModifiedContent+SkeletonModifier.swift +26 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Optional+OptionalType.swift +5 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/SecureField+OptionalType.swift +19 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Text+OptionalType.swift +27 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/TextField+OptionalType.swift +35 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Toggle+OptionalType.swift +29 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/UnitPoint+Angle.swift +8 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/View+SkeletonModifier.swift +8 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Modifiers/SkeletonModifier.swift +52 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Multiline/MultilineInteractor.swift +41 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Multiline/MultilinePresenter.swift +9 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Opacity/OpacityInteractor.swift +29 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Opacity/OpacityPresenter.swift +7 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Position/PositionInteractor.swift +29 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Position/PositionPresenter.swift +7 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Protocols/OptionalType.swift +4 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Radius/RadiusInteractor.swift +29 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Radius/RadiusPresenter.swift +7 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Shape/ShapeInteractor.swift +33 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Shape/ShapePresenter.swift +5 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonForEach.swift +20 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonInteractor.swift +27 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonList.swift +20 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonPresenter.swift +15 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonShape.swift +64 -0
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonView.swift +25 -0
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.debug.xcconfig +4 -1
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.release.xcconfig +4 -1
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.markdown +72 -0
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.plist +90 -0
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig +6 -5
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig +6 -5
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage-dummy.m +5 -0
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage-prefix.pch +12 -0
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage-umbrella.h +75 -0
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage.debug.xcconfig +14 -0
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage.modulemap +6 -0
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage.release.xcconfig +14 -0
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI-dummy.m +5 -0
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI-prefix.pch +12 -0
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI-umbrella.h +17 -0
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI.debug.xcconfig +17 -0
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI.modulemap +6 -0
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI.release.xcconfig +17 -0
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI-dummy.m +5 -0
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI-prefix.pch +12 -0
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI-umbrella.h +16 -0
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI.debug.xcconfig +12 -0
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI.modulemap +6 -0
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI.release.xcconfig +12 -0
- package/ios/Checkbox/Checkbox.swift +38 -0
- package/ios/{Colors+Spacing → Colors+Radius+Spacing}/Colors.swift +0 -0
- package/ios/Colors+Radius+Spacing/Radius.swift +22 -0
- package/ios/{Colors+Spacing → Colors+Radius+Spacing}/Spacing.swift +0 -0
- package/ios/Extensions/View++.swift +9 -0
- package/ios/Image/Image.swift +60 -0
- package/ios/Input/Input.swift +88 -38
- package/ios/OTPKeyboard/OTPKeyboard.swift +1 -1
- package/ios/Popup/PopupDisplay.swift +178 -0
- package/ios/PopupView/FullscreenPopup.swift +251 -0
- package/ios/{Popup → PopupView}/Modifiers.swift +6 -20
- package/ios/{Popup → PopupView}/PopupView.swift +38 -146
- package/ios/PopupView/Utils++.swift +281 -0
- package/ios/Switch/Switch.swift +44 -0
- package/ios/native-kits.podspec +2 -0
- package/package.json +1 -1
- package/ios/Colors+Spacing/Radius.swift +0 -11
- package/ios/Popup/Utils++.swift +0 -163
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
import Foundation
|
|
9
9
|
import SwiftUI
|
|
10
|
-
import CoreLocation
|
|
11
10
|
|
|
12
11
|
struct ComponentModel: Hashable, Codable, Identifiable {
|
|
13
12
|
var id: String
|
|
14
13
|
var name: String
|
|
15
14
|
var description: String
|
|
15
|
+
|
|
16
16
|
var component: AnyView? {
|
|
17
17
|
switch id {
|
|
18
18
|
case "Typography":
|
|
@@ -21,13 +21,18 @@ struct ComponentModel: Hashable, Codable, Identifiable {
|
|
|
21
21
|
return AnyView(ButtonDemo())
|
|
22
22
|
case "SwipeableCell":
|
|
23
23
|
return AnyView(SwipeableDemo())
|
|
24
|
+
case "Switch":
|
|
25
|
+
return AnyView(SwitchDemo())
|
|
24
26
|
case "Popup":
|
|
25
27
|
return AnyView(PopupDemo())
|
|
26
28
|
case "TextInput":
|
|
27
29
|
return AnyView(TextInputDemo())
|
|
30
|
+
case "Image":
|
|
31
|
+
return AnyView(ImageDemo())
|
|
32
|
+
case "Checkbox":
|
|
33
|
+
return AnyView(CheckboxDemo())
|
|
28
34
|
default:
|
|
29
35
|
return nil
|
|
30
36
|
}
|
|
31
37
|
}
|
|
32
38
|
}
|
|
33
|
-
|
|
@@ -7,9 +7,6 @@ import SwiftUI
|
|
|
7
7
|
struct ContentView: View {
|
|
8
8
|
@State var foundations: [ComponentModel] = []
|
|
9
9
|
@State var libraries: [ComponentModel] = []
|
|
10
|
-
@State var otpValue: String = ""
|
|
11
|
-
|
|
12
|
-
@AppStorage("showOTPKeyboard") var showOTPKeyboard: Bool = false
|
|
13
10
|
|
|
14
11
|
var body: some View {
|
|
15
12
|
TabView {
|
|
@@ -29,19 +26,8 @@ struct ContentView: View {
|
|
|
29
26
|
foundations = load("foundation.json")
|
|
30
27
|
libraries = load("library.json")
|
|
31
28
|
}
|
|
32
|
-
.popup(isPresented: $showOTPKeyboard, type: .toast, dragToDismiss: false, closeOnTap: false, backgroundColor: .black.opacity(0.4)) {
|
|
33
|
-
VStack {
|
|
34
|
-
OTPKeyboard(value: $otpValue, length: 8, onChange: onChange, onClose: {
|
|
35
|
-
showOTPKeyboard = false
|
|
36
|
-
}).padding()
|
|
37
|
-
}
|
|
38
|
-
.background(Colors.background)
|
|
39
|
-
}
|
|
40
29
|
}
|
|
41
30
|
|
|
42
|
-
func onChange(otp: String) {
|
|
43
|
-
print(otp)
|
|
44
|
-
}
|
|
45
31
|
}
|
|
46
32
|
|
|
47
33
|
// MARK: - ContentView_Previews
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ImageDemo.swift
|
|
3
|
+
// Example
|
|
4
|
+
//
|
|
5
|
+
// Created by Wem on 29/12/2022.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
import Foundation
|
|
9
|
+
import MoMoUIKits
|
|
10
|
+
import SwiftUI
|
|
11
|
+
|
|
12
|
+
// MARK: - ImageDemo
|
|
13
|
+
|
|
14
|
+
struct ImageDemo: View {
|
|
15
|
+
@State var source: String = "https://source.unsplash.com/random?t=\(NSDate().timeIntervalSince1970)"
|
|
16
|
+
|
|
17
|
+
let timer = Timer.publish(every: 5, on: .main, in: .common).autoconnect()
|
|
18
|
+
|
|
19
|
+
var body: some View {
|
|
20
|
+
return VStack(spacing: 10) {
|
|
21
|
+
HStack(spacing: 10) {
|
|
22
|
+
ImageView(source)
|
|
23
|
+
.frame(width: 300, height: 300, alignment: .center)
|
|
24
|
+
ImageView(source)
|
|
25
|
+
.frame(width: 300, height: 300, alignment: .center)
|
|
26
|
+
}
|
|
27
|
+
ImageView(source)
|
|
28
|
+
}
|
|
29
|
+
.padding(10)
|
|
30
|
+
.frame(maxWidth: .infinity)
|
|
31
|
+
.onReceive(timer, perform: { _ in
|
|
32
|
+
source = "https://source.unsplash.com/random?t=\(NSDate().timeIntervalSince1970)"
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// MARK: - ImageDemo_Previews
|
|
38
|
+
|
|
39
|
+
struct ImageDemo_Previews: PreviewProvider {
|
|
40
|
+
static var previews: some View {
|
|
41
|
+
ImageDemo()
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,53 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import SwiftUI
|
|
3
3
|
|
|
4
|
-
// MARK: -
|
|
4
|
+
// MARK: - PopupExample
|
|
5
5
|
|
|
6
|
-
struct
|
|
7
|
-
@Binding var isPresented: Bool
|
|
8
|
-
|
|
9
|
-
var body: some View {
|
|
10
|
-
VStack(spacing: 12) {
|
|
11
|
-
Image("winner")
|
|
12
|
-
.resizable()
|
|
13
|
-
.scaledToFit()
|
|
14
|
-
.frame(maxWidth: 226, maxHeight: 226)
|
|
15
|
-
|
|
16
|
-
Text("Congratulations!")
|
|
17
|
-
.foregroundColor(.black)
|
|
18
|
-
.font(.system(size: 24))
|
|
19
|
-
.padding(.top, 12)
|
|
20
|
-
|
|
21
|
-
Text("In two weeks, you did 12 workouts and burned 2671 calories. That's 566 calories more than last month. Continue at the same pace and the result will please you.")
|
|
22
|
-
.foregroundColor(.black)
|
|
23
|
-
.font(.system(size: 16))
|
|
24
|
-
.opacity(0.6)
|
|
25
|
-
.multilineTextAlignment(.center)
|
|
26
|
-
.padding(.bottom, 20)
|
|
27
|
-
|
|
28
|
-
Button("Thanks") {
|
|
29
|
-
isPresented = false
|
|
30
|
-
}
|
|
31
|
-
.buttonStyle(.plain)
|
|
32
|
-
.font(.system(size: 18, weight: .bold))
|
|
33
|
-
.frame(maxWidth: .infinity)
|
|
34
|
-
.padding(.vertical, 18)
|
|
35
|
-
.padding(.horizontal, 24)
|
|
36
|
-
.foregroundColor(.white)
|
|
37
|
-
.background(Color(hex: "9265F8"))
|
|
38
|
-
.cornerRadius(12)
|
|
39
|
-
}
|
|
40
|
-
.padding(EdgeInsets(top: 37, leading: 24, bottom: 40, trailing: 24))
|
|
41
|
-
.background(Color.white.cornerRadius(20))
|
|
42
|
-
.shadow(color: .black.opacity(0.08), radius: 2, x: 0, y: 0)
|
|
43
|
-
.shadow(color: .black.opacity(0.16), radius: 24, x: 0, y: 0)
|
|
44
|
-
.padding(.horizontal, 40)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// MARK: - PopupBottomFirst
|
|
49
|
-
|
|
50
|
-
struct PopupBottomFirst: View {
|
|
6
|
+
struct PopupExample: View {
|
|
51
7
|
@Binding var isPresented: Bool
|
|
52
8
|
|
|
53
9
|
var body: some View {
|
|
@@ -86,12 +42,6 @@ struct PopupBottomFirst: View {
|
|
|
86
42
|
|
|
87
43
|
struct Popups_Previews: PreviewProvider {
|
|
88
44
|
static var previews: some View {
|
|
89
|
-
ZStack {
|
|
90
|
-
Rectangle()
|
|
91
|
-
.ignoresSafeArea()
|
|
92
|
-
PopupMiddle(isPresented: .constant(true))
|
|
93
|
-
}
|
|
94
|
-
|
|
95
45
|
ZStack {
|
|
96
46
|
Rectangle()
|
|
97
47
|
.ignoresSafeArea()
|
|
@@ -5,7 +5,8 @@ import SwiftUI
|
|
|
5
5
|
// MARK: - PopupDemo
|
|
6
6
|
|
|
7
7
|
struct PopupDemo: View {
|
|
8
|
-
@
|
|
8
|
+
@EnvironmentObject var popups: PopupStates
|
|
9
|
+
@State var otpValue: String = ""
|
|
9
10
|
|
|
10
11
|
@State var showingTopFirstFloat: Bool = false
|
|
11
12
|
@State var showingTopSecondFloat: Bool = false
|
|
@@ -13,11 +14,15 @@ struct PopupDemo: View {
|
|
|
13
14
|
@State var showingBottomSecondFloat: Bool = false
|
|
14
15
|
|
|
15
16
|
@State var showingMiddlePopup: Bool = false
|
|
16
|
-
@State var
|
|
17
|
+
@State var showingFirstPopup: Bool = false
|
|
17
18
|
|
|
18
19
|
@State var showingFirstActionSheet: Bool = false
|
|
19
20
|
@State var showingSecondActionSheet: Bool = false
|
|
20
21
|
|
|
22
|
+
func onChange(otp: String) {
|
|
23
|
+
print(otp)
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
var body: some View {
|
|
22
27
|
let hideAll: () -> () = {
|
|
23
28
|
self.showingTopFirstFloat = false
|
|
@@ -25,8 +30,7 @@ struct PopupDemo: View {
|
|
|
25
30
|
self.showingBottomFirstFloat = false
|
|
26
31
|
self.showingBottomSecondFloat = false
|
|
27
32
|
|
|
28
|
-
self.
|
|
29
|
-
self.showingBottomFirstPopup = false
|
|
33
|
+
self.showingFirstPopup = false
|
|
30
34
|
|
|
31
35
|
self.showingFirstActionSheet = false
|
|
32
36
|
self.showingSecondActionSheet = false
|
|
@@ -42,7 +46,7 @@ struct PopupDemo: View {
|
|
|
42
46
|
SectionHeader(name: "Design system", count: 4)
|
|
43
47
|
.padding(.bottom, 12)
|
|
44
48
|
|
|
45
|
-
PopupButton(isShowing: $
|
|
49
|
+
PopupButton(isShowing: $popups.showingOTP, hideAll: hideAll) {
|
|
46
50
|
PopupTypeView(
|
|
47
51
|
title: "Show OTP keyboard",
|
|
48
52
|
detail: "Top popup show otp keyboard"
|
|
@@ -50,6 +54,14 @@ struct PopupDemo: View {
|
|
|
50
54
|
ActionSheetImage()
|
|
51
55
|
}
|
|
52
56
|
}
|
|
57
|
+
PopupButton(isShowing: $popups.showingDisplay, hideAll: hideAll) {
|
|
58
|
+
PopupTypeView(
|
|
59
|
+
title: "Show Popup Display",
|
|
60
|
+
detail: "Top popup display"
|
|
61
|
+
) {
|
|
62
|
+
PopupImage(style: .default)
|
|
63
|
+
}
|
|
64
|
+
}
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
Group {
|
|
@@ -94,15 +106,7 @@ struct PopupDemo: View {
|
|
|
94
106
|
SectionHeader(name: "Popups", count: 2)
|
|
95
107
|
.padding(EdgeInsets(top: 20, leading: 0, bottom: 12, trailing: 0))
|
|
96
108
|
|
|
97
|
-
PopupButton(isShowing: $
|
|
98
|
-
PopupTypeView(
|
|
99
|
-
title: "Middle",
|
|
100
|
-
detail: "Popup in the middle of the screen with a picture"
|
|
101
|
-
) {
|
|
102
|
-
PopupImage(style: .default)
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
PopupButton(isShowing: $showingBottomFirstPopup, hideAll: hideAll) {
|
|
109
|
+
PopupButton(isShowing: $showingFirstPopup, hideAll: hideAll) {
|
|
106
110
|
PopupTypeView(
|
|
107
111
|
title: "Bottom version 1",
|
|
108
112
|
detail: "Popup bottom"
|
|
@@ -136,6 +140,19 @@ struct PopupDemo: View {
|
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
142
|
|
|
143
|
+
// MARK: - Designed popup system
|
|
144
|
+
.popup(isPresented: $popups.showingOTP, type: .toast, position: .bottom, backgroundColor: .black.opacity(0.4)) {
|
|
145
|
+
VStack {
|
|
146
|
+
OTPKeyboard(value: $otpValue, length: 8, onChange: onChange, onClose: {
|
|
147
|
+
popups.showingOTP = false
|
|
148
|
+
}).padding()
|
|
149
|
+
}
|
|
150
|
+
.background(Colors.background)
|
|
151
|
+
}
|
|
152
|
+
.popup(isPresented: $popups.showingDisplay, type: .default, backgroundColor: .black.opacity(0.4)) {
|
|
153
|
+
PopupDisplay(isPresented: $popups.showingDisplay, title: "Tiêu đề", description: "Đây là nội dung Đây là nội dung Đây là nội dung Đây là nội dung Đây là nội dung", url: "https://images.unsplash.com/photo-1672671246846-2efd7789f913?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2662&q=80", buttonDirection: .row, buttonType: .button)
|
|
154
|
+
}
|
|
155
|
+
|
|
139
156
|
// MARK: - Designed floats
|
|
140
157
|
|
|
141
158
|
.popup(isPresented: $showingTopFirstFloat, type: .floater(), position: .top, animation: .spring()) {
|
|
@@ -153,19 +170,25 @@ struct PopupDemo: View {
|
|
|
153
170
|
|
|
154
171
|
// MARK: - Designed popups
|
|
155
172
|
|
|
156
|
-
.popup(isPresented: $
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
.popup(isPresented: $showingBottomFirstPopup, type: .floater(), position: .bottom, closeOnTapOutside: true, backgroundColor: .black.opacity(0.4)) {
|
|
160
|
-
PopupBottomFirst(isPresented: $showingBottomFirstPopup)
|
|
173
|
+
.popup(isPresented: $showingFirstPopup, type: .floater(), position: .bottom, closeOnTapOutside: true, backgroundColor: .black.opacity(0.4)) {
|
|
174
|
+
PopupExample(isPresented: $showingFirstPopup)
|
|
161
175
|
}
|
|
162
176
|
|
|
163
177
|
// MARK: - Designed sheets
|
|
164
178
|
|
|
165
|
-
.popup(isPresented: $
|
|
179
|
+
.popup(isPresented: $popups.showingOTP, type: .toast, position: .bottom, backgroundColor: .black.opacity(0.4)) {
|
|
180
|
+
VStack {
|
|
181
|
+
OTPKeyboard(value: .constant(""), length: 8, onClose: {
|
|
182
|
+
popups.showingOTP = false
|
|
183
|
+
}).padding()
|
|
184
|
+
}
|
|
185
|
+
.background(Colors.background)
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.popup(isPresented: $showingFirstActionSheet, type: .toast, position: .bottom, backgroundColor: .black.opacity(0.4)) {
|
|
166
189
|
ActionSheetFirst()
|
|
167
190
|
}
|
|
168
|
-
.popup(isPresented: $showingSecondActionSheet, type: .toast, position: .bottom,
|
|
191
|
+
.popup(isPresented: $showingSecondActionSheet, type: .toast, position: .bottom, backgroundColor: .black.opacity(0.4)) {
|
|
169
192
|
ActionSheetSecond()
|
|
170
193
|
}
|
|
171
194
|
}
|
|
@@ -10,22 +10,27 @@ import SwiftUI
|
|
|
10
10
|
import MoMoUIKits
|
|
11
11
|
|
|
12
12
|
public struct TextInputDemo: View {
|
|
13
|
+
@State var value: String = ""
|
|
14
|
+
@State var password: String = ""
|
|
13
15
|
public init(){
|
|
14
16
|
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
func onTextChange(value: String){
|
|
20
|
+
print("CHANGE",value)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
func onBlur(){
|
|
24
|
+
print("BLUR")
|
|
25
|
+
}
|
|
26
|
+
|
|
17
27
|
public var body: some View{
|
|
18
28
|
return VStack{
|
|
19
|
-
Input(placeholder: "Placeholder", floatingValue: "Floating value", multilines: true)
|
|
20
|
-
Input(placeholder: "Placeholder",
|
|
29
|
+
// Input(placeholder: "Placeholder", floatingValue: "Floating value", multilines: true)
|
|
30
|
+
Input($value, placeholder: "Placeholder", multilines: false, onChange: onTextChange)
|
|
31
|
+
Input($password, placeholder: "Placeholder", floatingValue: "Floating value", multilines: false, isSecure: true)
|
|
21
32
|
}
|
|
22
33
|
}
|
|
23
34
|
|
|
24
35
|
|
|
25
36
|
}
|
|
26
|
-
|
|
27
|
-
struct TextInputDemo_Previews: PreviewProvider {
|
|
28
|
-
static var previews: some View {
|
|
29
|
-
TextInputDemo()
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import MoMoUIKits
|
|
3
|
+
import SwiftUI
|
|
4
|
+
// MARK: - SwipeableDemo
|
|
5
|
+
|
|
6
|
+
struct CheckboxDemo: View {
|
|
7
|
+
@State var value: Bool = true
|
|
8
|
+
|
|
9
|
+
func onChange(value: Bool){
|
|
10
|
+
print(value)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
var body: some View {
|
|
14
|
+
VStack{
|
|
15
|
+
Checkbox($value, onChange: onChange)
|
|
16
|
+
Checkbox($value,disabled: true, onChange: onChange)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import MoMoUIKits
|
|
3
|
+
import SwiftUI
|
|
4
|
+
// MARK: - SwipeableDemo
|
|
5
|
+
|
|
6
|
+
struct SwitchDemo: View {
|
|
7
|
+
@State var value: Bool = true
|
|
8
|
+
|
|
9
|
+
func onChange(value: Bool){
|
|
10
|
+
print(value)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
var body: some View {
|
|
14
|
+
VStack{
|
|
15
|
+
Switch($value, onChange: onChange)
|
|
16
|
+
Switch($value, disabled: true)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -3,9 +3,25 @@ import SwiftUI
|
|
|
3
3
|
|
|
4
4
|
@main
|
|
5
5
|
struct Main: App {
|
|
6
|
+
@StateObject var popups = PopupStates()
|
|
7
|
+
|
|
6
8
|
var body: some Scene {
|
|
7
9
|
WindowGroup {
|
|
8
|
-
ContentView()
|
|
10
|
+
ContentView()
|
|
11
|
+
.modifier(DarkViewModifier())
|
|
12
|
+
.environmentObject(popups)
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
16
|
+
|
|
17
|
+
class PopupStates: ObservableObject {
|
|
18
|
+
@Published var showingOTP: Bool = false
|
|
19
|
+
@Published var showingDisplay: Bool = false
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
struct Main_Previews: PreviewProvider {
|
|
23
|
+
static var previews: some View {
|
|
24
|
+
ContentView()
|
|
25
|
+
.modifier(DarkViewModifier())
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"id": "Image",
|
|
24
|
-
"name": "Image",
|
|
24
|
+
"name": "Image (Preview)",
|
|
25
25
|
"description": "Imagery communicates and differentiates a product through visuals.",
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"id": "Popup",
|
|
29
29
|
"name": "Popup",
|
|
30
30
|
"description": "sheet & popup in application",
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
32
|
]
|
|
33
33
|
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
"id": "SwipeableCell",
|
|
4
4
|
"name": "SwipeableCell",
|
|
5
5
|
"description": "The swipeable view",
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"id": "Switch",
|
|
9
|
+
"name": "Switch",
|
|
10
|
+
"description": "sheet & popup in application",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "Checkbox",
|
|
14
|
+
"name": "Checkbox",
|
|
15
|
+
"description": "sheet & popup in application",
|
|
6
16
|
}
|
|
7
17
|
]
|
|
8
18
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
A63CC29C2944180B0022BA1A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A63CC29B2944180B0022BA1A /* ContentView.swift */; };
|
|
15
15
|
A63CC2A02944180D0022BA1A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A63CC29F2944180D0022BA1A /* Assets.xcassets */; };
|
|
16
16
|
A63CC2A42944180D0022BA1A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A63CC2A32944180D0022BA1A /* Preview Assets.xcassets */; };
|
|
17
|
+
A64B3888295D7FD300AD22A5 /* ImageDemo.swift in Sources */ = {isa = PBXBuildFile; fileRef = A64B3887295D7FD300AD22A5 /* ImageDemo.swift */; };
|
|
17
18
|
A6611E4C295AD66100C0E80F /* Floats.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6611E4B295AD66100C0E80F /* Floats.swift */; };
|
|
18
19
|
A6611E50295AD68B00C0E80F /* Popups.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6611E4F295AD68B00C0E80F /* Popups.swift */; };
|
|
19
20
|
A6611E52295AD6A200C0E80F /* ActionSheets.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6611E51295AD6A100C0E80F /* ActionSheets.swift */; };
|
|
@@ -39,6 +40,8 @@
|
|
|
39
40
|
A6E318C4294632FF0008BCA5 /* Main.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6E318C3294632FF0008BCA5 /* Main.swift */; };
|
|
40
41
|
D414FE02295953F0008950D1 /* TextInputDemo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D414FE01295953F0008950D1 /* TextInputDemo.swift */; };
|
|
41
42
|
D4B19F2B294C8BD70055EFC8 /* ButtonDemo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4B19F2A294C8BD70055EFC8 /* ButtonDemo.swift */; };
|
|
43
|
+
D4CCD470295EA2660035926E /* SwitchDemo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4CCD46F295EA2660035926E /* SwitchDemo.swift */; };
|
|
44
|
+
D4CCD475295ED8690035926E /* CheckboxDemo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4CCD474295ED8690035926E /* CheckboxDemo.swift */; };
|
|
42
45
|
/* End PBXBuildFile section */
|
|
43
46
|
|
|
44
47
|
/* Begin PBXFileReference section */
|
|
@@ -53,6 +56,7 @@
|
|
|
53
56
|
A63CC29F2944180D0022BA1A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
|
54
57
|
A63CC2A12944180D0022BA1A /* Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Example.entitlements; sourceTree = "<group>"; };
|
|
55
58
|
A63CC2A32944180D0022BA1A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
|
|
59
|
+
A64B3887295D7FD300AD22A5 /* ImageDemo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageDemo.swift; sourceTree = "<group>"; };
|
|
56
60
|
A6611E4B295AD66100C0E80F /* Floats.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Floats.swift; sourceTree = "<group>"; };
|
|
57
61
|
A6611E4F295AD68B00C0E80F /* Popups.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Popups.swift; sourceTree = "<group>"; };
|
|
58
62
|
A6611E51295AD6A100C0E80F /* ActionSheets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionSheets.swift; sourceTree = "<group>"; };
|
|
@@ -79,6 +83,8 @@
|
|
|
79
83
|
A6E318C3294632FF0008BCA5 /* Main.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Main.swift; sourceTree = "<group>"; };
|
|
80
84
|
D414FE01295953F0008950D1 /* TextInputDemo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextInputDemo.swift; sourceTree = "<group>"; };
|
|
81
85
|
D4B19F2A294C8BD70055EFC8 /* ButtonDemo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ButtonDemo.swift; sourceTree = "<group>"; };
|
|
86
|
+
D4CCD46F295EA2660035926E /* SwitchDemo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwitchDemo.swift; sourceTree = "<group>"; };
|
|
87
|
+
D4CCD474295ED8690035926E /* CheckboxDemo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckboxDemo.swift; sourceTree = "<group>"; };
|
|
82
88
|
/* End PBXFileReference section */
|
|
83
89
|
|
|
84
90
|
/* Begin PBXFrameworksBuildPhase section */
|
|
@@ -200,6 +206,8 @@
|
|
|
200
206
|
isa = PBXGroup;
|
|
201
207
|
children = (
|
|
202
208
|
A6E1EAB92952A35300DE02CA /* SwipeableDemo.swift */,
|
|
209
|
+
D4CCD46F295EA2660035926E /* SwitchDemo.swift */,
|
|
210
|
+
D4CCD474295ED8690035926E /* CheckboxDemo.swift */,
|
|
203
211
|
);
|
|
204
212
|
path = Library;
|
|
205
213
|
sourceTree = "<group>";
|
|
@@ -211,7 +219,7 @@
|
|
|
211
219
|
D4B19F2A294C8BD70055EFC8 /* ButtonDemo.swift */,
|
|
212
220
|
A6798BDE2955A9AF008A2A87 /* PopupDemo.swift */,
|
|
213
221
|
A68B77E0294C8D180091EAB6 /* TypographyDemo.swift */,
|
|
214
|
-
|
|
222
|
+
A64B3887295D7FD300AD22A5 /* ImageDemo.swift */,
|
|
215
223
|
D414FE01295953F0008950D1 /* TextInputDemo.swift */,
|
|
216
224
|
);
|
|
217
225
|
path = Foundation;
|
|
@@ -328,6 +336,7 @@
|
|
|
328
336
|
A6798BDF2955A9AF008A2A87 /* PopupDemo.swift in Sources */,
|
|
329
337
|
D4B19F2B294C8BD70055EFC8 /* ButtonDemo.swift in Sources */,
|
|
330
338
|
A60654E02948383F00D81339 /* Overview.swift in Sources */,
|
|
339
|
+
D4CCD475295ED8690035926E /* CheckboxDemo.swift in Sources */,
|
|
331
340
|
A6798BD729555216008A2A87 /* ComponentDetail.swift in Sources */,
|
|
332
341
|
A6798BDD295560C8008A2A87 /* Utils.swift in Sources */,
|
|
333
342
|
A6E318C4294632FF0008BCA5 /* Main.swift in Sources */,
|
|
@@ -337,9 +346,11 @@
|
|
|
337
346
|
A68B77E1294C8D180091EAB6 /* TypographyDemo.swift in Sources */,
|
|
338
347
|
A63CC29C2944180B0022BA1A /* ContentView.swift in Sources */,
|
|
339
348
|
A60654E229483B9100D81339 /* Foundation.swift in Sources */,
|
|
349
|
+
D4CCD470295EA2660035926E /* SwitchDemo.swift in Sources */,
|
|
340
350
|
A6798BD5295551BF008A2A87 /* ComponentItem.swift in Sources */,
|
|
341
351
|
A60654E429483B9F00D81339 /* Library.swift in Sources */,
|
|
342
352
|
A6E1EABA2952A35300DE02CA /* SwipeableDemo.swift in Sources */,
|
|
353
|
+
A64B3888295D7FD300AD22A5 /* ImageDemo.swift in Sources */,
|
|
343
354
|
A6611E52295AD6A200C0E80F /* ActionSheets.swift in Sources */,
|
|
344
355
|
A6685456294E0FB800626C0D /* DarkViewModifier.swift in Sources */,
|
|
345
356
|
);
|
package/example/ios/Example.xcworkspace/xcuserdata/wem.xcuserdatad/UserInterfaceState.xcuserstate
CHANGED
|
Binary file
|
package/example/ios/Podfile
CHANGED
package/example/ios/Podfile.lock
CHANGED
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- MoMoUIKits (1.0.0)
|
|
2
|
+
- MoMoUIKits (1.0.0):
|
|
3
|
+
- SDWebImageSwiftUI
|
|
4
|
+
- SkeletonUI
|
|
5
|
+
- SDWebImage (5.14.3):
|
|
6
|
+
- SDWebImage/Core (= 5.14.3)
|
|
7
|
+
- SDWebImage/Core (5.14.3)
|
|
8
|
+
- SDWebImageSwiftUI (2.2.2):
|
|
9
|
+
- SDWebImage (~> 5.10)
|
|
10
|
+
- SkeletonUI (1.0.9)
|
|
3
11
|
|
|
4
12
|
DEPENDENCIES:
|
|
5
13
|
- MoMoUIKits (from `../../ios/native-kits.podspec`)
|
|
14
|
+
- SDWebImage
|
|
15
|
+
- SDWebImageSwiftUI
|
|
16
|
+
|
|
17
|
+
SPEC REPOS:
|
|
18
|
+
trunk:
|
|
19
|
+
- SDWebImage
|
|
20
|
+
- SDWebImageSwiftUI
|
|
21
|
+
- SkeletonUI
|
|
6
22
|
|
|
7
23
|
EXTERNAL SOURCES:
|
|
8
24
|
MoMoUIKits:
|
|
9
25
|
:path: "../../ios/native-kits.podspec"
|
|
10
26
|
|
|
11
27
|
SPEC CHECKSUMS:
|
|
12
|
-
MoMoUIKits:
|
|
28
|
+
MoMoUIKits: f58fa343158c45fd8fec1c0e8890988553a9374a
|
|
29
|
+
SDWebImage: 9c36e66c8ce4620b41a7407698dda44211a96764
|
|
30
|
+
SDWebImageSwiftUI: 54ded4115b4ac6cd60b78f61415f86d070892d98
|
|
31
|
+
SkeletonUI: b5c868e6917123e3d442d6cef9c71fe048175f3b
|
|
13
32
|
|
|
14
|
-
PODFILE CHECKSUM:
|
|
33
|
+
PODFILE CHECKSUM: 1e4369cf4c0027811298254ae6970d2675868858
|
|
15
34
|
|
|
16
35
|
COCOAPODS: 1.11.3
|
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- MoMoUIKits (1.0.0)
|
|
2
|
+
- MoMoUIKits (1.0.0):
|
|
3
|
+
- SDWebImageSwiftUI
|
|
4
|
+
- SkeletonUI
|
|
5
|
+
- SDWebImage (5.14.3):
|
|
6
|
+
- SDWebImage/Core (= 5.14.3)
|
|
7
|
+
- SDWebImage/Core (5.14.3)
|
|
8
|
+
- SDWebImageSwiftUI (2.2.2):
|
|
9
|
+
- SDWebImage (~> 5.10)
|
|
10
|
+
- SkeletonUI (1.0.9)
|
|
3
11
|
|
|
4
12
|
DEPENDENCIES:
|
|
5
13
|
- MoMoUIKits (from `../../ios/native-kits.podspec`)
|
|
14
|
+
- SDWebImage
|
|
15
|
+
- SDWebImageSwiftUI
|
|
16
|
+
|
|
17
|
+
SPEC REPOS:
|
|
18
|
+
trunk:
|
|
19
|
+
- SDWebImage
|
|
20
|
+
- SDWebImageSwiftUI
|
|
21
|
+
- SkeletonUI
|
|
6
22
|
|
|
7
23
|
EXTERNAL SOURCES:
|
|
8
24
|
MoMoUIKits:
|
|
9
25
|
:path: "../../ios/native-kits.podspec"
|
|
10
26
|
|
|
11
27
|
SPEC CHECKSUMS:
|
|
12
|
-
MoMoUIKits:
|
|
28
|
+
MoMoUIKits: f58fa343158c45fd8fec1c0e8890988553a9374a
|
|
29
|
+
SDWebImage: 9c36e66c8ce4620b41a7407698dda44211a96764
|
|
30
|
+
SDWebImageSwiftUI: 54ded4115b4ac6cd60b78f61415f86d070892d98
|
|
31
|
+
SkeletonUI: b5c868e6917123e3d442d6cef9c71fe048175f3b
|
|
13
32
|
|
|
14
|
-
PODFILE CHECKSUM:
|
|
33
|
+
PODFILE CHECKSUM: 1e4369cf4c0027811298254ae6970d2675868858
|
|
15
34
|
|
|
16
35
|
COCOAPODS: 1.11.3
|