Skip to content

Commit 539428e

Browse files
author
Borinschi Ivan
committed
Update project architecture
1 parent 980a328 commit 539428e

286 files changed

Lines changed: 7 additions & 22 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DSKit/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

DSKitExplorer/DSKitExplorer.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@
248248
603ACAC327BFD99600AC0C45 /* TypographyTextGridVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TypographyTextGridVC.swift; sourceTree = "<group>"; };
249249
603ACAC427BFD99600AC0C45 /* TypographyActiveTextVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TypographyActiveTextVC.swift; sourceTree = "<group>"; };
250250
603ACAC527BFD99600AC0C45 /* TypographyViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TypographyViewController.swift; sourceTree = "<group>"; };
251-
603ACB3727BFDAFE00AC0C45 /* DSKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = DSKit; path = ../DSKit; sourceTree = "<group>"; };
252251
603ACB4827BFDBC600AC0C45 /* DSViewController+PoweredBy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "DSViewController+PoweredBy.swift"; sourceTree = "<group>"; };
253252
603ACB4927BFDBC600AC0C45 /* DSViewController+ViewModels.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "DSViewController+ViewModels.swift"; sourceTree = "<group>"; };
254253
603ACB4A27BFDBC600AC0C45 /* DSTextVM+Description.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "DSTextVM+Description.swift"; sourceTree = "<group>"; };
@@ -265,6 +264,7 @@
265264
60B570B127B279AE001B23D2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
266265
60B570B427B279AE001B23D2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
267266
60B570B627B279AE001B23D2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
267+
60ED5DF727C50EB8008D9382 /* dskit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = dskit; path = ..; sourceTree = "<group>"; };
268268
/* End PBXFileReference section */
269269

270270
/* Begin PBXFrameworksBuildPhase section */
@@ -627,7 +627,7 @@
627627
60B570BE27B27A66001B23D2 /* Packages */ = {
628628
isa = PBXGroup;
629629
children = (
630-
603ACB3727BFDAFE00AC0C45 /* DSKit */,
630+
60ED5DF727C50EB8008D9382 /* dskit */,
631631
);
632632
name = Packages;
633633
sourceTree = "<group>";

DSKitExplorer/DSKitExplorer/Documentation/ViewModels/Cards/CardViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct CardViewControllerPreview: PreviewProvider {
113113

114114
static var previews: some View {
115115
Group {
116-
PreviewContainer(VC: CardViewController(), PeachAppearance()).edgesIgnoringSafeArea(.all)
116+
PreviewContainer(VC: CardViewController(), DSKitAppearance()).edgesIgnoringSafeArea(.all)
117117
}
118118
}
119119
}

DSKitExplorer/DSKitExplorer/Documentation/ViewModels/PageControl/PageControlViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct PageControlViewControllerPreview: PreviewProvider {
9999

100100
static var previews: some View {
101101
Group {
102-
PreviewContainer(VC: PageControlViewController(), PeachAppearance()).edgesIgnoringSafeArea(.all)
102+
PreviewContainer(VC: PageControlViewController(), DSKitAppearance()).edgesIgnoringSafeArea(.all)
103103
}
104104
}
105105
}

DSKitExplorer/DSKitExplorer/Documentation/ViewModels/QuantityPicker/QuantityPickerVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct QuantityPickerVCPreview: PreviewProvider {
9393

9494
static var previews: some View {
9595
Group {
96-
PreviewContainer(VC: QuantityPickerVC(), PeachAppearance()).edgesIgnoringSafeArea(.all)
96+
PreviewContainer(VC: QuantityPickerVC(), DSKitAppearance()).edgesIgnoringSafeArea(.all)
9797
}
9898
}
9999
}

DSKitExplorer/DSKitExplorer/Documentation/ViewModels/TextFields/TextFieldBuiltInValidationVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TextFieldBuiltInValidationVC: DSViewController {
3535

3636
// Handle textfield update, this closure is called every time user type a character in textfield
3737
fullName.didUpdate = { textField in
38-
print(textField.text)
38+
print(textField.text ?? "")
3939
}
4040

4141
// Show

DSKitExplorer/DSKitExplorer/Extensions/DSViewController+SourceCode.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ public extension DSViewController {
2727

2828
var codeViewModel = DSCodeVM(code: code)
2929

30-
31-
codeViewModel.didTap { [unowned self] (_: DSCodeVM) in
30+
codeViewModel.didTap { (_: DSCodeVM) in
3231
let activityViewController = UIActivityViewController(activityItems: [code], applicationActivities: nil)
3332
UIApplication.shared.windows.first?.rootViewController?.present(activityViewController, animated: true, completion: nil)
3433
}

DSKitExplorer/DSKitExplorer/SceneDelegate.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
1111

1212
var window: UIWindow?
1313

14-
1514
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
1615
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
1716
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
@@ -46,7 +45,4 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
4645
// Use this method to save data, release shared resources, and store enough scene-specific state information
4746
// to restore the scene back to its current state.
4847
}
49-
50-
5148
}
52-

DSKitExplorer/DSKitExplorer/ViewController.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ import DSKit
1111
class ViewController: DSViewController {
1212

1313
override func viewDidLoad() {
14-
1514
super.viewDidLoad()
1615
title = "Components"
17-
1816
let groups = DocumentsGroups()
19-
2017
self.show(content: groups.sections(presenter: self))
2118
}
2219
}
File renamed without changes.

0 commit comments

Comments
 (0)