fix: code review notes
This commit is contained in:
parent
5d2bea19fb
commit
22fc660e56
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIAppleMapUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Set of helpers for map objects clustering and interacting using Apple MapKit.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIAuth'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Login, registration, confirmation and other related actions'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIDeveloperUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Universal web view API'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIEcommerce'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Cart, products, promocodes, bonuses and other related actions'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIFoundationUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Set of helpers for Foundation framework classes.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIGoogleMapUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Set of helpers for map objects clustering and interacting using Google Maps SDK.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIKeychainUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Set of helpers for Keychain classes.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIMapUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Set of helpers for map objects clustering and interacting.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIMoyaNetworking'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Moya + Swagger network service.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TINetworking'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Swagger-frendly networking layer helpers.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TINetworkingCache'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Caching results of EndpointRequests.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIPagination'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Generic pagination component.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TISwiftUICore'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Core UI elements: protocols, views and helpers.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TISwiftUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Bunch of useful helpers for Swift development.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TITableKitUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Set of helpers for TableKit classes.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -24,8 +24,9 @@ import TIUIKitCore
|
|||
import UIKit
|
||||
|
||||
extension UIButton {
|
||||
open class BaseAppearance<Layout: ViewLayout>: UILabel.BaseAppearance<Layout> {
|
||||
open class BaseAppearance<Layout: ViewLayout>: UIView.BaseAppearance<Layout> {
|
||||
|
||||
public var textAttributes: BaseTextAttributes?
|
||||
public var contentInsets: UIEdgeInsets
|
||||
public var titleInsets: UIEdgeInsets
|
||||
public var imageInsets: UIEdgeInsets
|
||||
|
|
@ -34,14 +35,14 @@ extension UIButton {
|
|||
backgroundColor: UIColor = .clear,
|
||||
roundedCorners: CACornerMask = [],
|
||||
cornerRadius: CGFloat = .zero,
|
||||
borderColor: UIColor = .clear,
|
||||
borderWidth: CGFloat = .zero,
|
||||
border: UIViewBorder = .init(),
|
||||
shadow: UIViewShadow? = nil,
|
||||
textAttributes: BaseTextAttributes? = nil,
|
||||
contentInsets: UIEdgeInsets = .zero,
|
||||
titleInsets: UIEdgeInsets = .zero,
|
||||
imageInsets: UIEdgeInsets = .zero) {
|
||||
|
||||
self.textAttributes = textAttributes
|
||||
self.contentInsets = contentInsets
|
||||
self.titleInsets = titleInsets
|
||||
self.imageInsets = imageInsets
|
||||
|
|
@ -50,8 +51,7 @@ extension UIButton {
|
|||
backgroundColor: backgroundColor,
|
||||
roundedCorners: roundedCorners,
|
||||
cornerRadius: cornerRadius,
|
||||
borderColor: borderColor,
|
||||
borderWidth: borderWidth,
|
||||
border: border,
|
||||
shadow: shadow)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@ extension UILabel {
|
|||
backgroundColor: UIColor = .clear,
|
||||
roundedCorners: CACornerMask = [],
|
||||
cornerRadius: CGFloat = .zero,
|
||||
borderColor: UIColor = .clear,
|
||||
borderWidth: CGFloat = .zero,
|
||||
border: UIViewBorder = .init(),
|
||||
shadow: UIViewShadow? = nil,
|
||||
textAttributes: BaseTextAttributes? = nil) {
|
||||
|
||||
|
|
@ -43,8 +42,7 @@ extension UILabel {
|
|||
backgroundColor: backgroundColor,
|
||||
roundedCorners: roundedCorners,
|
||||
cornerRadius: cornerRadius,
|
||||
borderColor: borderColor,
|
||||
borderWidth: borderWidth,
|
||||
border: border,
|
||||
shadow: shadow)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ extension UIView {
|
|||
layer.masksToBounds = true
|
||||
layer.maskedCorners = appearance.roundedCorners
|
||||
layer.cornerRadius = appearance.cornerRadius
|
||||
layer.borderWidth = appearance.borderWidth
|
||||
layer.borderColor = appearance.borderColor.cgColor
|
||||
layer.borderWidth = appearance.border.width
|
||||
layer.borderColor = appearance.border.color.cgColor
|
||||
|
||||
guard let shadow = appearance.shadow else {
|
||||
return
|
||||
|
|
|
|||
|
|
@ -97,24 +97,21 @@ extension UIView {
|
|||
public var backgroundColor: UIColor
|
||||
public var roundedCorners: CACornerMask
|
||||
public var cornerRadius: CGFloat
|
||||
public var borderColor: UIColor
|
||||
public var borderWidth: CGFloat
|
||||
public var border: UIViewBorder
|
||||
public var shadow: UIViewShadow?
|
||||
|
||||
public init(layout: Layout = .defaultLayout,
|
||||
backgroundColor: UIColor = .clear,
|
||||
roundedCorners: CACornerMask = [],
|
||||
cornerRadius: CGFloat = .zero,
|
||||
borderColor: UIColor = .clear,
|
||||
borderWidth: CGFloat = .zero,
|
||||
border: UIViewBorder = .init(),
|
||||
shadow: UIViewShadow? = nil) {
|
||||
|
||||
self.layout = layout
|
||||
self.backgroundColor = backgroundColor
|
||||
self.roundedCorners = roundedCorners
|
||||
self.cornerRadius = cornerRadius
|
||||
self.borderColor = borderColor
|
||||
self.borderWidth = borderWidth
|
||||
self.border = border
|
||||
self.shadow = shadow
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
// THE SOFTWARE.
|
||||
//
|
||||
|
||||
import TIUIKitCore
|
||||
import UIKit
|
||||
|
||||
extension WrappedViewLayout {
|
||||
|
|
@ -38,8 +38,7 @@ extension DefaultTitleSubtitleView {
|
|||
backgroundColor: UIColor = .clear,
|
||||
roundedCorners: CACornerMask = [],
|
||||
cornerRadius: CGFloat = .zero,
|
||||
borderColor: UIColor = .clear,
|
||||
borderWidth: CGFloat = .zero,
|
||||
border: UIViewBorder = .init(),
|
||||
shadow: UIViewShadow? = nil,
|
||||
titleAppearance: UILabel.DefaultAppearance = .defaultAppearance,
|
||||
subtitleAppearance: UILabel.DefaultAppearance = .defaultAppearance) {
|
||||
|
|
@ -51,8 +50,7 @@ extension DefaultTitleSubtitleView {
|
|||
backgroundColor: backgroundColor,
|
||||
roundedCorners: roundedCorners,
|
||||
cornerRadius: cornerRadius,
|
||||
borderColor: borderColor,
|
||||
borderWidth: borderWidth,
|
||||
border: border,
|
||||
shadow: shadow)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIUIElements'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Bunch of useful protocols and views.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
//
|
||||
// Copyright (c) 2023 Touch Instinct
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the Software), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
public struct UIViewBorder {
|
||||
public var color: UIColor
|
||||
public var width: CGFloat
|
||||
|
||||
public init(color: UIColor = .clear, width: CGFloat = .zero) {
|
||||
self.color = color
|
||||
self.width = width
|
||||
}
|
||||
}
|
||||
|
|
@ -31,8 +31,7 @@ public protocol ViewAppearance {
|
|||
var backgroundColor: UIColor { get }
|
||||
var roundedCorners: CACornerMask { get }
|
||||
var cornerRadius: CGFloat { get }
|
||||
var borderColor: UIColor { get }
|
||||
var borderWidth: CGFloat { get }
|
||||
var border: UIViewBorder { get }
|
||||
var shadow: UIViewShadow? { get }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIUIKitCore'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Core UI elements: protocols, views and helpers.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIWebView'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Universal web view API'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TIYandexMapUtils'
|
||||
s.version = '1.38.1'
|
||||
s.version = '1.39.0'
|
||||
s.summary = 'Set of helpers for map objects clustering and interacting using Yandex Maps SDK.'
|
||||
s.homepage = 'https://gitlab.ti/touchinstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
|
|
|
|||
Loading…
Reference in New Issue