Skip to content

Commit

Permalink
Merge pull request #10 from oversizedev/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
aromanov91 authored Mar 15, 2023
2 parents 3b5202b + c802342 commit eba5e7e
Show file tree
Hide file tree
Showing 27 changed files with 113 additions and 37 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Bump version
on:
push:
branches:
- main
jobs:

tag:
name: Create tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'

- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
WITH_V: false
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release

on:
push:
tags:
- "*.*.*"

jobs:
build:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Release
uses: softprops/action-gh-release@v1
15 changes: 0 additions & 15 deletions .github/workflows/tag-and-relise.yml

This file was deleted.

9 changes: 9 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ let package = Package(
.library(name: "OversizeContactsKit", targets: ["OversizeContactsKit"]),
.library(name: "OversizeLocationKit", targets: ["OversizeLocationKit"]),
.library(name: "OversizeNotificationKit", targets: ["OversizeNotificationKit"]),
.library(name: "OversizePhotoKit", targets: ["OversizePhotoKit"]),
],
dependencies: productionDependencies,
targets: [
Expand Down Expand Up @@ -114,6 +115,14 @@ let package = Package(
.product(name: "OversizeServices", package: "OversizeServices"),
]
),
.target(
name: "OversizePhotoKit",
dependencies: [
"OversizeKit",
.product(name: "OversizeUI", package: "OversizeUI"),
.product(name: "OversizePhotoComponents", package: "OversizeComponents"),
]
),
.testTarget(
name: "OversizeKitTests",
dependencies: ["OversizeKit"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// AttachmentView.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// CreateEventView.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// CreateEventViewModel.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// CreateEventViewSheet.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// SaveForView.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeCalendarKit/Pickers/AlertPicker.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// AlertPicker.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeCalendarKit/Pickers/CalendarPicker.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// CalendarPicker.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeCalendarKit/Pickers/RepeatPicker.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// RepeatPicker.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// AttendeesView.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// ContactsListsView.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// EmailPickerView.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeKit/LauncherKit/Launcher.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// Launcher.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// AppearanceSettingView.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// SetPINCodeView.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeKit/SettingsKit/Views/SettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// SettingsView.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// StoreInstuctinsView.swift
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// StoreSpecialOfferView.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeKit/StoreKit/StoreScreen/StoreView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// StoreView.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeKit/StoreKit/Views/PrmiumBannerRow.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// PrmiumBannerRow.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeKit/StoreKit/Views/StoreProductView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// StoreProductView.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeNoticeKit/NoticeListView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// NoticeListView.swift
//

Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeOnboardingKit/OnboardingView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Alexander Romanov
// Copyright © 2023 Alexander Romanov
// OnboardingView.swift
//

Expand Down
46 changes: 46 additions & 0 deletions Sources/OversizePhotoKit/PhotosGalleryView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// Copyright © 2023 Alexander Romanov
// PhotosGalleryView.swift
//

import OversizePhotoComponents
import OversizeUI
import SwiftUI

public struct PhotosGalleryView: View {
private let title: String
private let images: [Image]
@State private var isShowPhoto: Bool = false
@State private var selection: Int = 0

public init(title: String = "Photos", images: [Image]) {
self.title = title
self.images = images
}

public var body: some View {
PageView(title) {
if images.isEmpty {
Text("Not photos")
.title3()
.onSurfaceHighEmphasisForegroundColor()
} else {
ImageGridView(images, columnCount: .constant(3)) { image in
let index = images.firstIndex(of: image)
selection = index ?? 0
isShowPhoto = true
} longPressAction: { _ in }
}
}
.leadingBar {
BarButton(.back)
}
.photoOverlay(isPresent: $isShowPhoto, selection: $selection, photos: images)
}
}

struct PhotosGalleryView_Previews: PreviewProvider {
static var previews: some View {
PhotosGalleryView(images: [])
}
}

0 comments on commit eba5e7e

Please sign in to comment.