Skip to content

Commit

Permalink
[#495] Fix uikit script
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Sep 28, 2023
1 parent 3fcb789 commit a5dd60b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ struct SetUpInterface {
case swiftUI, uiKit

init?(_ name: String) {
switch name.lowercased() {
case "s", "swiftui":
let name = name.lowercased()
if name == "s" || name == "swiftui" {
self = .swiftUI
case "u", "uikit":
} else if name == "u" || name == "uikit" {
self = .uiKit
default: return nil
} else {
return nil
}
}

Expand Down

0 comments on commit a5dd60b

Please sign in to comment.