Skip to content

Commit

Permalink
Merge pull request #10 from Dotori-app/8-designsystem-custom-toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsh153 committed Apr 19, 2023
2 parents e3856e7 + 7cda1fa commit 3bce00d
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
12 changes: 12 additions & 0 deletions Projects/Core/DesignSystem/Sources/Toggle/DotoriToggle.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import UIKit

public final class DotoriToggle: UISwitch {
public init() {
super.init(frame: .zero)
self.onTintColor = .dotori(.primary(.p10))
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import MainFeatureInterface
import RootFeatureInterface
import SigninFeatureInterface
import Swinject

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import BaseFeature
import Combine
import Moordinator
import RootFeatureInterface

final class RootRouter: Router {
let route: PassthroughSubject<any RoutePath, Never> = .init()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import BaseFeature
import DesignSystem
import Moordinator
import RenewalPasswordFeatureInterface
import RootFeatureInterface
import SigninFeatureInterface
import SignupFeatureInterface
import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Scripts/CodeSigning.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Foundation

func writeContentInFile(path: String, content: String) {
let fileURL = URL(filePath: path)
let fileURL = URL(fileURLWithPath: path)
let data = Data(content.utf8)
try? data.write(to: fileURL)
}
Expand Down
4 changes: 2 additions & 2 deletions Scripts/GenerateModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func makeScaffold(target: MicroTargetType) {
}

func writeContentInFile(path: String, content: String) {
let fileURL = URL(filePath: path)
let fileURL = URL(fileURLWithPath: path)
let data = Data(content.utf8)
try? data.write(to: fileURL)
}
Expand All @@ -152,7 +152,7 @@ func updateFileContent(
finding findingString: String,
inserting insertString: String
) {
let fileURL = URL(filePath: filePath)
let fileURL = URL(fileURLWithPath: filePath)
guard let readHandle = try? FileHandle(forReadingFrom: fileURL) else {
fatalError("❌ Failed to find \(filePath)")
}
Expand Down
4 changes: 2 additions & 2 deletions Scripts/InitEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
let currentPath = "./"

func writeCodeInFile(filePath: String, codes: String) {
let fileURL = URL(filePath: filePath)
let fileURL = URL(fileURLWithPath: filePath)
guard let writeHandle = try? FileHandle(forWritingTo: fileURL) else {
fatalError("\(filePath)을 찾을 수 없습니다")
}
Expand Down Expand Up @@ -49,4 +49,4 @@ let organizationName = readLine() ?? ""
makeEnv(projectName: projectName, organizationName: organizationName)

print("")
print("✅ ProjectEnvironment is created successfully!")
print("✅ ProjectEnvironment is created successfully!")
2 changes: 1 addition & 1 deletion Scripts/NewDependency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
finding findingString: String,
inserting insertString: String
) {
let fileURL = URL(filePath: filePath)
let fileURL = URL(fileURLWithPath: filePath)
guard let readHandle = try? FileHandle(forReadingFrom: fileURL) else {
fatalError("❌ Failed to find \(filePath)")
}
Expand Down
Binary file modified graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3bce00d

Please sign in to comment.