diff --git a/.github/logo-dark.svg b/.github/logo-dark.svg new file mode 100644 index 00000000..daafb851 --- /dev/null +++ b/.github/logo-dark.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/logo-light.svg b/.github/logo-light.svg new file mode 100644 index 00000000..9a88b844 --- /dev/null +++ b/.github/logo-light.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Examples/DemosApp/DemosApp.xcodeproj/project.pbxproj b/Examples/DemosApp/DemosApp.xcodeproj/project.pbxproj index 0ff7c1af..88512111 100644 --- a/Examples/DemosApp/DemosApp.xcodeproj/project.pbxproj +++ b/Examples/DemosApp/DemosApp.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 77; + objectVersion = 70; objects = { /* Begin PBXBuildFile section */ @@ -15,11 +15,7 @@ /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ - 740D22292CD3BECA006731A5 /* DemosApp */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = DemosApp; - sourceTree = ""; - }; + 740D22292CD3BECA006731A5 /* DemosApp */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = DemosApp; sourceTree = ""; }; /* End PBXFileSystemSynchronizedRootGroup section */ /* Begin PBXFrameworksBuildPhase section */ @@ -92,6 +88,7 @@ }; }; buildConfigurationList = 740D22222CD3BECA006731A5 /* Build configuration list for PBXProject "DemosApp" */; + compatibilityVersion = "Xcode 15.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( @@ -103,7 +100,6 @@ packageReferences = ( 740D22502CD3BF50006731A5 /* XCLocalSwiftPackageReference "../../../ComponentsKit" */, ); - preferredProjectObjectVersion = 77; productRefGroup = 740D22282CD3BECA006731A5 /* Products */; projectDirPath = ""; projectRoot = ""; diff --git a/README.md b/README.md index 4c080c49..6fa036ec 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,18 @@ -# ComponentsKit +

+ + + + + ComponentsKit + + +

+ +

+ A library with beautiful UI components to build SwiftUI and UIKit apps faster. +

+ +--- ## Installation diff --git a/Sources/ComponentsKit/Components/Countdown/Helpers/CountdownWidthCalculator.swift b/Sources/ComponentsKit/Components/Countdown/Helpers/CountdownWidthCalculator.swift index 293fe222..74e19403 100644 --- a/Sources/ComponentsKit/Components/Countdown/Helpers/CountdownWidthCalculator.swift +++ b/Sources/ComponentsKit/Components/Countdown/Helpers/CountdownWidthCalculator.swift @@ -9,15 +9,16 @@ struct CountdownWidthCalculator { for attributedText: NSAttributedString, model: CountdownVM ) -> CGFloat { - self.style(label, with: model) + self.style(self.label, with: model) self.label.attributedText = attributedText let estimatedSize = self.label.sizeThatFits(UIView.layoutFittingExpandedSize) - return estimatedSize.width + return estimatedSize.width + 2 } private static func style(_ label: UILabel, with model: CountdownVM) { + label.textAlignment = .center label.numberOfLines = 0 } } diff --git a/Sources/ComponentsKit/Components/Countdown/SUCountdown.swift b/Sources/ComponentsKit/Components/Countdown/SUCountdown.swift index b9a6fe6c..48399011 100644 --- a/Sources/ComponentsKit/Components/Countdown/SUCountdown.swift +++ b/Sources/ComponentsKit/Components/Countdown/SUCountdown.swift @@ -28,11 +28,11 @@ public struct SUCountdown: View { switch (self.model.style, self.model.unitsStyle) { case (.plain, .bottom): self.styledTime(value: self.manager.days, unit: .days) - colonView + self.colonView self.styledTime(value: self.manager.hours, unit: .hours) - colonView + self.colonView self.styledTime(value: self.manager.minutes, unit: .minutes) - colonView + self.colonView self.styledTime(value: self.manager.seconds, unit: .seconds) case (.plain, .hidden), (.plain, .trailing):