generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 9
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 #91 from nimblehq/release/0.6.0
Release 0.6.0
- Loading branch information
Showing
43 changed files
with
958 additions
and
680 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
32 changes: 32 additions & 0 deletions
32
CryptoPrices/Sources/Home/Sources/Home/CommonViews/HomeHeader.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,32 @@ | ||
// | ||
// HomeHeader.swift | ||
// Home | ||
// | ||
// Created by Doan Thieu on 05/01/2023. | ||
// | ||
|
||
import Styleguide | ||
import SwiftUI | ||
|
||
struct HomeHeader: View { | ||
|
||
let title: String | ||
let actionTitle: String | ||
let action: () -> Void | ||
|
||
var body: some View { | ||
HStack { | ||
Text(title) | ||
.foregroundColor(Colors.titleMedium.swiftUIColor) | ||
.font(Fonts.Inter.medium.textStyle(.callout)) | ||
|
||
Spacer() | ||
|
||
Button(actionTitle, action: action) | ||
.buttonStyle(.borderless) | ||
.foregroundColor(Colors.caribbeanGreen.swiftUIColor) | ||
.font(Fonts.Inter.medium.textStyle(.subheadline)) | ||
} | ||
.padding(16.0) | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
CryptoPrices/Sources/Home/Sources/Home/CommonViews/Section.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,36 @@ | ||
// swiftlint:disable type_contents_order | ||
// | ||
// Section.swift | ||
// Home | ||
// | ||
// Created by Doan Thieu on 06/01/2023. | ||
// | ||
|
||
import Styleguide | ||
import SwiftUI | ||
|
||
struct Section<Content, Header>: View where Content: View, Header: View { | ||
|
||
private let content: Content | ||
private let header: Header? | ||
|
||
init(@ViewBuilder content: () -> Content) where Header == EmptyView { | ||
self.content = content() | ||
self.header = nil | ||
} | ||
|
||
init(@ViewBuilder content: () -> Content, @ViewBuilder header: () -> Header) { | ||
self.content = content() | ||
self.header = header() | ||
} | ||
|
||
var body: some View { | ||
VStack(spacing: 0.0) { | ||
header | ||
content | ||
} | ||
.listRowSeparator(.hidden) | ||
.listRowBackground(Colors.bgMain.swiftUIColor) | ||
.listRowInsets(.init(top: 0.0, leading: 0.0, bottom: 16.0, trailing: 0.0)) | ||
} | ||
} |
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
63 changes: 0 additions & 63 deletions
63
CryptoPrices/Sources/Home/Sources/Home/Localization/Strings.swift
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
CryptoPrices/Sources/Home/Sources/Home/MyCoinsSectionView/MyCoinSection.swift
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.