-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2670 from anyproto/ios-4012-support-bookmarks-widget
iOS-4012 Widgets | support bookmarks widget
- Loading branch information
Showing
8 changed files
with
69 additions
and
1 deletion.
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
11 changes: 11 additions & 0 deletions
11
...HomeWidgets/Widgets/List/Specific/AllObject/BookmarksCompactListWidgetSubmoduleView.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,11 @@ | ||
import Foundation | ||
import SwiftUI | ||
|
||
struct BookmarksCompactListWidgetSubmoduleView: View { | ||
|
||
let data: WidgetSubmoduleData | ||
|
||
var body: some View { | ||
AllObjectCommonListWidgetSubmoduleView(data: data, style: .compactList, type: .bookmarks) | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...odules/HomeWidgets/Widgets/List/Specific/AllObject/BookmarksListWidgetSubmoduleView.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,11 @@ | ||
import Foundation | ||
import SwiftUI | ||
|
||
struct BookmarksListWidgetSubmoduleView: View { | ||
|
||
let data: WidgetSubmoduleData | ||
|
||
var body: some View { | ||
AllObjectCommonListWidgetSubmoduleView(data: data, style: .list, type: .bookmarks) | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...PresentationLayer/Modules/WidgetObjectList/AllContent/WidgetObjectListBookmarksView.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,20 @@ | ||
import Foundation | ||
import SwiftUI | ||
|
||
struct WidgetObjectListBookmarksView: View { | ||
|
||
@StateObject private var model: WidgetObjectListViewModel | ||
|
||
init(spaceId: String, output: (any WidgetObjectListCommonModuleOutput)?) { | ||
self._model = StateObject(wrappedValue: WidgetObjectListViewModel( | ||
spaceId: spaceId, | ||
internalModel: WidgetObjectListAllContentViewModel(spaceId: spaceId, type: .bookmarks), | ||
menuBuilder: WidgetObjectListMenuBuilder(), | ||
output: output | ||
)) | ||
} | ||
|
||
var body: some View { | ||
WidgetObjectListView(model: model) | ||
} | ||
} |
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