mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-10 09:19:22 +00:00
0b5e764556
* Automatically remove spaces in server names If a server name includes a space (which can happen if the string is pasted / autocompleted), this space is removed, which results in the app not crashing. Fixes #1599 Signed-off-by: Paul Schuetz <pa.schuetz@web.de> * Format --------- Signed-off-by: Paul Schuetz <pa.schuetz@web.de> Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
29 lines
633 B
Swift
29 lines
633 B
Swift
import Foundation
|
|
import SwiftData
|
|
import SwiftUI
|
|
|
|
@Model public class TagGroup: Equatable {
|
|
public var title: String
|
|
public var symbolName: String
|
|
public var tags: [String]
|
|
public var creationDate: Date
|
|
|
|
public init(title: String, symbolName: String, tags: [String]) {
|
|
self.title = title
|
|
self.symbolName = symbolName
|
|
self.tags = tags
|
|
creationDate = Date()
|
|
}
|
|
}
|
|
|
|
public struct LegacyTagGroup: Codable, Equatable, Hashable {
|
|
public let title: String
|
|
public let sfSymbolName: String
|
|
public let main: String
|
|
public let additional: [String]
|
|
|
|
public var tags: [String] {
|
|
[main] + additional
|
|
}
|
|
}
|