From f4a516bf86a33a56ae7ac99ef486acd452755335 Mon Sep 17 00:00:00 2001 From: Nikita Semenov Date: Tue, 14 Feb 2023 17:52:20 +0300 Subject: [PATCH] feat: rebase preview extensions to new framework TIDeveloperUtils --- CHANGELOG.md | 5 +++++ Package.swift | 2 ++ .../Sources/Previews/UIView+Previews.swift | 0 .../Previews/UIViewController+Previews.swift | 0 TIDeveloperUtils/TIDeveloperUtils.podspec | 16 ++++++++++++++++ 5 files changed, 23 insertions(+) rename {TISwiftUICore => TIDeveloperUtils}/Sources/Previews/UIView+Previews.swift (100%) rename {TISwiftUICore => TIDeveloperUtils}/Sources/Previews/UIViewController+Previews.swift (100%) create mode 100644 TIDeveloperUtils/TIDeveloperUtils.podspec diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ecba472..c85bd44a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +### 1.34.1 + +- **Added**: `TIDeveloperUtils` framework, that contains different utils for development +- **Added**: `UIView` and `UIViewController` extensions for showing SwiftUI previews + ### 1.34.0 - **Added**: `BaseListItemView` for displaying three views horizontally diff --git a/Package.swift b/Package.swift index 63305190..529317d1 100644 --- a/Package.swift +++ b/Package.swift @@ -22,6 +22,7 @@ let package = Package( .library(name: "TIKeychainUtils", targets: ["TIKeychainUtils"]), .library(name: "TITableKitUtils", targets: ["TITableKitUtils"]), .library(name: "TILogging", targets: ["TILogging"]), + .library(name: "TIDeveloperUtils", targets: ["TIDeveloperUtils"]), // MARK: - Networking @@ -67,6 +68,7 @@ let package = Package( .target(name: "TIKeychainUtils", dependencies: ["TIFoundationUtils", "KeychainAccess"], path: "TIKeychainUtils/Sources"), .target(name: "TITableKitUtils", dependencies: ["TIUIElements", "TableKit"], path: "TITableKitUtils/Sources"), .target(name: "TILogging", dependencies: ["TIUIElements", "TISwiftUtils", "TIUIKitCore"], path: "TILogging/Sources"), + .target(name: "TIDeveloperUtils", dependencies: [], path: "TIDeveloperUtils/Sources"), // MARK: - Networking .target(name: "TINetworking", dependencies: ["TIFoundationUtils", "Alamofire"], path: "TINetworking/Sources"), diff --git a/TISwiftUICore/Sources/Previews/UIView+Previews.swift b/TIDeveloperUtils/Sources/Previews/UIView+Previews.swift similarity index 100% rename from TISwiftUICore/Sources/Previews/UIView+Previews.swift rename to TIDeveloperUtils/Sources/Previews/UIView+Previews.swift diff --git a/TISwiftUICore/Sources/Previews/UIViewController+Previews.swift b/TIDeveloperUtils/Sources/Previews/UIViewController+Previews.swift similarity index 100% rename from TISwiftUICore/Sources/Previews/UIViewController+Previews.swift rename to TIDeveloperUtils/Sources/Previews/UIViewController+Previews.swift diff --git a/TIDeveloperUtils/TIDeveloperUtils.podspec b/TIDeveloperUtils/TIDeveloperUtils.podspec new file mode 100644 index 00000000..7680e5f2 --- /dev/null +++ b/TIDeveloperUtils/TIDeveloperUtils.podspec @@ -0,0 +1,16 @@ +Pod::Spec.new do |s| + s.name = 'TIDeveloperUtils' + s.version = '1.34.1' + s.summary = 'Universal web view API' + s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'petropavel13' => 'ivan.smolin@touchin.ru', + 'castlele' => 'nikita.semenov@touchin.ru' } + s.source = { :git => 'https://github.com/TouchInstinct/LeadKit.git', :tag => s.version.to_s } + + s.ios.deployment_target = '11.0' + s.swift_versions = ['5.3'] + + s.source_files = s.name + '/Sources/**/*' + +end