-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
62 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Copyright © 2021 Tasuku Tozawa. All rights reserved. | ||
// | ||
|
||
public struct ClipSearchHistory { | ||
public let title: String | ||
public let sortName: String | ||
public let displaySettingName: String | ||
public let isDisplaySettingHidden: Bool | ||
|
||
public init(title: String, sortName: String, displaySettingName: String, isDisplaySettingHidden: Bool) { | ||
self.title = title | ||
self.sortName = sortName | ||
self.displaySettingName = displaySettingName | ||
self.isDisplaySettingHidden = isDisplaySettingHidden | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
TBoxUIKit/View/ClipSearchEntry/ClipSearchHistoryContentCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Copyright © 2021 Tasuku Tozawa. All rights reserved. | ||
// | ||
|
||
import Domain | ||
import UIKit | ||
|
||
public class ClipSearchHistoryContentCell: UICollectionViewListCell { | ||
public var searchHistory: ClipSearchHistory? | ||
|
||
override public func updateConfiguration(using state: UICellConfigurationState) { | ||
var newConfiguration = ClipSearchHistoryContentConfiguration().updated(for: state) | ||
newConfiguration.clipSearchHistory = searchHistory | ||
contentConfiguration = newConfiguration | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
TBoxUIKit/View/ClipSearchEntry/ClipSearchHistoryListCell.swift
This file was deleted.
Oops, something went wrong.