-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
80b02ce
commit 59c5f99
Showing
5 changed files
with
113 additions
and
11 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
31 changes: 29 additions & 2 deletions
31
iOS-Example/iOS-Example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,58 @@ | ||
// | ||
// ExampleCard.swift | ||
// | ||
// SPDX-FileCopyrightText: 2022 Istituto Nazionale Previdenza Sociale | ||
// | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
// | ||
|
||
|
||
import SwiftUI | ||
import SirioKitIOS | ||
|
||
struct ExampleCard: View { | ||
var url = URL(string: "https://www.inps.it/content/dam/inps-site/immagini/lavoro/INPS_congedi_EX%2001.svg")! | ||
|
||
var body: some View { | ||
List { | ||
NavigationLink(destination: { | ||
ScrollView { | ||
EditorialCard(url: url, category: "Categoria", date: "13 Nov 2023", title: "Titolo della card", subtitle: "Sottotitolo", text: .loremIpsum, signature: "Firma Autore", items: [.previewEllipsis, .previewHeart]) | ||
.padding() | ||
|
||
EditorialCard(category: "Categoria", date: "13 Nov 2023", title: "Titolo della card", subtitle: "Sottotitolo", text: .loremIpsum, signature: "Firma Autore", items: [.previewEllipsis, .previewHeart]) | ||
.padding() | ||
} | ||
.navigationTitle("Editorial Card") | ||
.background(Color.colorBackground) | ||
}, label: { | ||
SirioText(text: "Editorial Card", typography: .label_md_400) | ||
}) | ||
|
||
NavigationLink(destination: { | ||
ScrollView { | ||
|
||
ProcessCard(schemeColor: .light, icon: .book, date: "13 Nov 2023", title: "Titolo della card molto lungo su 2 righe", text: .loremIpsum, textButton: "Text", onTapButtonAction: {}, item: .previewEllipsis) | ||
.padding() | ||
|
||
ProcessCard(schemeColor: .dark, icon: .book, date: "13 Nov 2023", title: "Titolo della card molto lungo su 2 righe", text: .loremIpsum, textButton: "Text", onTapButtonAction: {}, item: .previewEllipsis) | ||
.padding() | ||
} | ||
|
||
.navigationTitle("Process Card") | ||
.background(Color.colorBackground) | ||
}, label: { | ||
SirioText(text: "Process Card", typography: .label_md_400) | ||
}) | ||
} | ||
.background(Color.colorBackground) | ||
.navigationTitle("Card") | ||
.listStyle(GroupedListStyle()) | ||
} | ||
} | ||
|
||
struct ExampleCard_Previews: PreviewProvider { | ||
static var previews: some View { | ||
ExampleCard() | ||
} | ||
} |
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