File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
Core/Sources/SuggestionWidget Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -261,3 +261,65 @@ struct SuggestionPanelView_Bright_Preview: PreviewProvider {
261261 }
262262 }
263263}
264+
265+ struct SuggestionPanelView_Dark_Objc_Preview : PreviewProvider {
266+ static var previews : some View {
267+ SuggestionPanelView ( viewModel: . init(
268+ suggestion: . init(
269+ startLineIndex: 8 ,
270+ code: highlighted (
271+ code: """
272+ - (void)addSubview:(UIView *)view {
273+ [self addSubview:view];
274+ }
275+ """ ,
276+ language: " objective-c " ,
277+ brightMode: false
278+ ) ,
279+ suggestionCount: 2 ,
280+ currentSuggestionIndex: 0
281+ ) ,
282+ isPanelDisplayed: true ,
283+ colorScheme: . dark
284+ ) )
285+ . frame ( width: 450 , height: 400 )
286+ . background {
287+ HStack {
288+ Color . red
289+ Color . green
290+ Color . blue
291+ }
292+ }
293+ }
294+ }
295+
296+ struct SuggestionPanelView_Bright_Objc_Preview : PreviewProvider {
297+ static var previews : some View {
298+ SuggestionPanelView ( viewModel: . init(
299+ suggestion: . init(
300+ startLineIndex: 8 ,
301+ code: highlighted (
302+ code: """
303+ - (void)addSubview:(UIView *)view {
304+ [self addSubview:view];
305+ }
306+ """ ,
307+ language: " objective-c " ,
308+ brightMode: true
309+ ) ,
310+ suggestionCount: 2 ,
311+ currentSuggestionIndex: 0
312+ ) ,
313+ isPanelDisplayed: true ,
314+ colorScheme: . light
315+ ) )
316+ . frame ( width: 450 , height: 400 )
317+ . background {
318+ HStack {
319+ Color . red
320+ Color . green
321+ Color . blue
322+ }
323+ }
324+ }
325+ }
You can’t perform that action at this time.
0 commit comments