- Add CREATE API endpoint for new bookmarks with POST request - Implement CreateBookmarkRequestDto and CreateBookmarkResponseDto - Create AddBookmarkView with form validation and clipboard integration - Add AddBookmarkViewModel with URL validation and label parsing - Implement CreateBookmarkUseCase with convenience methods - Extend BookmarksRepository with createBookmark method returning server message - Add comprehensive error handling for bookmark creation scenarios - Integrate WebView dark mode support with CSS variables and system color scheme - Add dynamic theme switching based on iOS appearance settings - Enhance WebView styling with iOS-native colors and typography - Fix BookmarksView refresh after bookmark creation - Add floating action button and sheet presentation for adding bookmarks - Implement form validation with real-time feedback - Add clipboard URL detection and paste functionality
14 lines
294 B
Swift
14 lines
294 B
Swift
import Foundation
|
|
|
|
struct CreateBookmarkRequestDto: Codable {
|
|
let labels: [String]?
|
|
let title: String?
|
|
let url: String
|
|
|
|
init(url: String, title: String? = nil, labels: [String]? = nil) {
|
|
self.url = url
|
|
self.title = title
|
|
self.labels = labels
|
|
}
|
|
}
|