Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 4 additions & 26 deletions SwiftLeeds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
0B4CB3E928EAF5D200246E62 /* Local.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA534D8128A1909300A3BFBB /* Local.swift */; };
0B4CB3EB28EAF5E300246E62 /* TalkCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AED26F73286764F000E06064 /* TalkCell.swift */; };
0B4CB3EC28EAF5E900246E62 /* ActivityView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE5EFD74289E7CBF00464FE1 /* ActivityView.swift */; };
0B4CB3ED28EAF5F200246E62 /* SwiftLeedsContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA57DE4A2875B06B00911F03 /* SwiftLeedsContainer.swift */; };
0B4CB3EE28EAF5FB00246E62 /* String.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE1C800F289E9F3800996659 /* String.swift */; };
0B4CB3EF28EAF60200246E62 /* FancyHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A3831112884A96600030002 /* FancyHeaderView.swift */; };
0B4CB3F028EAF60800246E62 /* SpeakerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 394653AA288BB7C800212E1C /* SpeakerView.swift */; };
Expand All @@ -52,7 +51,6 @@
0B910A382A49D09300648B32 /* Sponsor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B910A362A49D07700648B32 /* Sponsor.swift */; };
2A3831122884A96600030002 /* FancyHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A3831112884A96600030002 /* FancyHeaderView.swift */; };
39345FDA288F17EE0031BCFF /* BottomSheetView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39345FD9288F17EE0031BCFF /* BottomSheetView.swift */; };
394653A9288BB47A00212E1C /* SectionHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 394653A8288BB47A00212E1C /* SectionHeader.swift */; };
394653AB288BB7C800212E1C /* SpeakerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 394653AA288BB7C800212E1C /* SpeakerView.swift */; };
39ED0034288F113500AB337A /* LocalCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39ED0033288F113500AB337A /* LocalCell.swift */; };
740162DA2A7053A000C2D1B3 /* AppState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 740162D92A7053A000C2D1B3 /* AppState.swift */; };
Expand Down Expand Up @@ -90,6 +88,7 @@
7B31C8F12ED0A7BF00FEEDF7 /* Settings in Frameworks */ = {isa = PBXBuildFile; productRef = 7B31C8F02ED0A7BF00FEEDF7 /* Settings */; };
7B31C8F32ED0AB0E00FEEDF7 /* Settings in Frameworks */ = {isa = PBXBuildFile; productRef = 7B31C8F22ED0AB0E00FEEDF7 /* Settings */; };
7B31C8F52ED0AB1600FEEDF7 /* Settings in Frameworks */ = {isa = PBXBuildFile; productRef = 7B31C8F42ED0AB1600FEEDF7 /* Settings */; };
7B6278A22EEDDE1B00DE1473 /* SectionHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B6278A12EEDDE1B00DE1473 /* SectionHeader.swift */; };
7B8C3ECF2EE4A9F70089C6CF /* SharedAssets in Frameworks */ = {isa = PBXBuildFile; productRef = 7B8C3ECE2EE4A9F70089C6CF /* SharedAssets */; };
7BE081522EE5BDA8004BCD1F /* SharedAssets in Frameworks */ = {isa = PBXBuildFile; productRef = 7BE081512EE5BDA8004BCD1F /* SharedAssets */; };
7BE081542EE5BF13004BCD1F /* SharedAssets in Frameworks */ = {isa = PBXBuildFile; productRef = 7BE081532EE5BF13004BCD1F /* SharedAssets */; };
Expand All @@ -105,9 +104,6 @@
AE8C1B2B28C4B39A00AF7318 /* TokenDetails.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE8C1B2A28C4B39A00AF7318 /* TokenDetails.swift */; };
AE93678F2A93455400F2DB3F /* ScheduleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE93678E2A93455400F2DB3F /* ScheduleView.swift */; };
AE9367902A93467500F2DB3F /* ScheduleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE93678E2A93455400F2DB3F /* ScheduleView.swift */; };
AE9367962A9354CC00F2DB3F /* Helper.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE9367952A9354CC00F2DB3F /* Helper.swift */; };
AE9367972A9354CC00F2DB3F /* Helper.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE9367952A9354CC00F2DB3F /* Helper.swift */; };
AE9367982A9357D000F2DB3F /* Helper.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE9367952A9354CC00F2DB3F /* Helper.swift */; };
AEB06BD128CF8D2100E51967 /* WebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEB06BD028CF8D2100E51967 /* WebView.swift */; };
AECB295727417F9D00CDC983 /* SwiftLeedsApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = AECB295627417F9D00CDC983 /* SwiftLeedsApp.swift */; };
AECB295927417F9D00CDC983 /* MyConferenceView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AECB295827417F9D00CDC983 /* MyConferenceView.swift */; };
Expand All @@ -131,7 +127,6 @@
FA57DE462875B06500911F03 /* CommonTileButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA57DE432875B06500911F03 /* CommonTileButton.swift */; };
FA57DE472875B06500911F03 /* CommonTileView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA57DE442875B06500911F03 /* CommonTileView.swift */; };
FA57DE482875B06500911F03 /* StackedTileView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA57DE452875B06500911F03 /* StackedTileView.swift */; };
FA57DE4B2875B06B00911F03 /* SwiftLeedsContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA57DE4A2875B06B00911F03 /* SwiftLeedsContainer.swift */; };
FA57DE502875B09900911F03 /* SponsorTileView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA57DE4E2875B09900911F03 /* SponsorTileView.swift */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -210,7 +205,6 @@
0B910A362A49D07700648B32 /* Sponsor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Sponsor.swift; sourceTree = "<group>"; };
2A3831112884A96600030002 /* FancyHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FancyHeaderView.swift; sourceTree = "<group>"; };
39345FD9288F17EE0031BCFF /* BottomSheetView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BottomSheetView.swift; sourceTree = "<group>"; };
394653A8288BB47A00212E1C /* SectionHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SectionHeader.swift; sourceTree = "<group>"; };
394653AA288BB7C800212E1C /* SpeakerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpeakerView.swift; sourceTree = "<group>"; };
39ED0033288F113500AB337A /* LocalCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalCell.swift; sourceTree = "<group>"; };
740162D92A7053A000C2D1B3 /* AppState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppState.swift; sourceTree = "<group>"; };
Expand All @@ -230,6 +224,7 @@
74F5EF842A49CE6A008D9413 /* TabsMainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabsMainView.swift; sourceTree = "<group>"; };
74F5EF862A49CE9D008D9413 /* SidebarMainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SidebarMainView.swift; sourceTree = "<group>"; };
74F5EF882A49CECB008D9413 /* SidebarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SidebarView.swift; sourceTree = "<group>"; };
7B6278A12EEDDE1B00DE1473 /* SectionHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SectionHeader.swift; sourceTree = "<group>"; };
7B8108412E5CA00E00CCB2F5 /* SwiftLeedsPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = SwiftLeedsPackage; sourceTree = "<group>"; };
AE1C800F289E9F3800996659 /* String.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = String.swift; sourceTree = "<group>"; };
AE1C801328A7BCD000996659 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
Expand All @@ -242,7 +237,6 @@
AE8C1B2A28C4B39A00AF7318 /* TokenDetails.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenDetails.swift; sourceTree = "<group>"; };
AE8C1B2C28C4B8D800AF7318 /* SwiftLeeds.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SwiftLeeds.entitlements; sourceTree = "<group>"; };
AE93678E2A93455400F2DB3F /* ScheduleView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleView.swift; sourceTree = "<group>"; };
AE9367952A9354CC00F2DB3F /* Helper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Helper.swift; sourceTree = "<group>"; };
AEB06BD028CF8D2100E51967 /* WebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebView.swift; sourceTree = "<group>"; };
AECB295327417F9D00CDC983 /* SwiftLeeds.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftLeeds.app; sourceTree = BUILT_PRODUCTS_DIR; };
AECB295627417F9D00CDC983 /* SwiftLeedsApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftLeedsApp.swift; sourceTree = "<group>"; };
Expand All @@ -269,7 +263,6 @@
FA57DE432875B06500911F03 /* CommonTileButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CommonTileButton.swift; sourceTree = "<group>"; };
FA57DE442875B06500911F03 /* CommonTileView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CommonTileView.swift; sourceTree = "<group>"; };
FA57DE452875B06500911F03 /* StackedTileView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StackedTileView.swift; sourceTree = "<group>"; };
FA57DE4A2875B06B00911F03 /* SwiftLeedsContainer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftLeedsContainer.swift; sourceTree = "<group>"; };
FA57DE4E2875B09900911F03 /* SponsorTileView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SponsorTileView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -474,7 +467,6 @@
isa = PBXGroup;
children = (
AED26F7628676A9200E06064 /* About */,
FA57DE412875B03800911F03 /* Common */,
FA57DE422875B03B00911F03 /* Components */,
AED26F7528676A8E00E06064 /* Local */,
AEDC0DAF28675D060078A153 /* My Conference */,
Expand All @@ -498,6 +490,7 @@
AED26F7528676A8E00E06064 /* Local */ = {
isa = PBXGroup;
children = (
7B6278A12EEDDE1B00DE1473 /* SectionHeader.swift */,
39345FD9288F17EE0031BCFF /* BottomSheetView.swift */,
39ED0033288F113500AB337A /* LocalCell.swift */,
AED26F7928676AA300E06064 /* LocalView.swift */,
Expand Down Expand Up @@ -543,16 +536,6 @@
path = "My Conference";
sourceTree = "<group>";
};
FA57DE412875B03800911F03 /* Common */ = {
isa = PBXGroup;
children = (
AE9367952A9354CC00F2DB3F /* Helper.swift */,
394653A8288BB47A00212E1C /* SectionHeader.swift */,
FA57DE4A2875B06B00911F03 /* SwiftLeedsContainer.swift */,
);
path = Common;
sourceTree = "<group>";
};
FA57DE422875B03B00911F03 /* Components */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -824,7 +807,6 @@
0B4CB3F128EAF61000246E62 /* StackedTileView.swift in Sources */,
0B4CB3DE28EAF57E00246E62 /* MyConferenceViewModel.swift in Sources */,
AE9367902A93467500F2DB3F /* ScheduleView.swift in Sources */,
0B4CB3ED28EAF5F200246E62 /* SwiftLeedsContainer.swift in Sources */,
0B4CB3EC28EAF5E900246E62 /* ActivityView.swift in Sources */,
0B4CB3F228EAF61600246E62 /* WebView.swift in Sources */,
0B59B5712E70EA6600820C3C /* About.swift in Sources */,
Expand All @@ -836,7 +818,6 @@
0B4CB3E928EAF5D200246E62 /* Local.swift in Sources */,
0B910A352A48FEC100648B32 /* SponsorTileView.swift in Sources */,
E3569B062E5B903800BC9556 /* ShimmerView.swift in Sources */,
AE9367972A9354CC00F2DB3F /* Helper.swift in Sources */,
0B4CB3E528EAF5B700246E62 /* Speaker.swift in Sources */,
0B4CB3E828EAF5CD00246E62 /* AnnouncementCell.swift in Sources */,
0B4CB3DD28EAF57900246E62 /* MyConferenceView.swift in Sources */,
Expand All @@ -862,7 +843,6 @@
74E62F7228CA98EA004422F9 /* SwiftLeedsSmallWidgetView.swift in Sources */,
7406572928E240720087F44F /* WidgetConstants.swift in Sources */,
0B59B5672E70E5D400820C3C /* TeamMember.swift in Sources */,
AE9367982A9357D000F2DB3F /* Helper.swift in Sources */,
74B14FB028CE21D7004C0A40 /* TimeineProvider.swift in Sources */,
74E62F7828CADBE0004422F9 /* Activity.swift in Sources */,
74E62F7A28CAE4DF004422F9 /* Speaker.swift in Sources */,
Expand All @@ -884,8 +864,6 @@
0B59B5692E70E5FE00820C3C /* TeamMemberView.swift in Sources */,
394653AB288BB7C800212E1C /* SpeakerView.swift in Sources */,
0B59B56F2E70EA4F00820C3C /* AboutViewModel.swift in Sources */,
394653A9288BB47A00212E1C /* SectionHeader.swift in Sources */,
AE9367962A9354CC00F2DB3F /* Helper.swift in Sources */,
AED26F7A28676AA300E06064 /* LocalView.swift in Sources */,
39ED0034288F113500AB337A /* LocalCell.swift in Sources */,
AEDC22552898288F00746247 /* Schedule.swift in Sources */,
Expand All @@ -895,7 +873,6 @@
AECB295927417F9D00CDC983 /* MyConferenceView.swift in Sources */,
AE8C1B2428BFCFC700AF7318 /* Presentation.swift in Sources */,
2A3831122884A96600030002 /* FancyHeaderView.swift in Sources */,
FA57DE4B2875B06B00911F03 /* SwiftLeedsContainer.swift in Sources */,
0B59B5722E70EA6600820C3C /* About.swift in Sources */,
0B59B56B2E70E6AC00820C3C /* CompactActionItem.swift in Sources */,
74F5EF892A49CECB008D9413 /* SidebarView.swift in Sources */,
Expand All @@ -912,6 +889,7 @@
AE8C1B2B28C4B39A00AF7318 /* TokenDetails.swift in Sources */,
0B910A372A49D07700648B32 /* Sponsor.swift in Sources */,
AEDC0DAE286759630078A153 /* Tabs.swift in Sources */,
7B6278A22EEDDE1B00DE1473 /* SectionHeader.swift in Sources */,
AE8C1B2628BFCFE700AF7318 /* Speaker.swift in Sources */,
AE8C1B2228BFCF4700AF7318 /* Activity.swift in Sources */,
FA57DE482875B06500911F03 /* StackedTileView.swift in Sources */,
Expand Down
8 changes: 4 additions & 4 deletions SwiftLeeds/Views/About/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ struct AboutView: View {
}

var body: some View {
SwiftLeedsContainer {
ScrollView {
content
}
ScrollView {
content
}
.background(Color.background, ignoresSafeAreaEdges: .all)
.edgesIgnoringSafeArea(.top)
}

Expand Down Expand Up @@ -191,5 +190,6 @@ struct AboutView: View {
struct AboutView_Previews: PreviewProvider {
static var previews: some View {
AboutView()
.preferredColorScheme(.dark)
}
}
9 changes: 0 additions & 9 deletions SwiftLeeds/Views/Common/Helper.swift

This file was deleted.

25 changes: 0 additions & 25 deletions SwiftLeeds/Views/Common/SwiftLeedsContainer.swift

This file was deleted.

8 changes: 5 additions & 3 deletions SwiftLeeds/Views/Local/BottomSheetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ struct BottomSheetView: View {
VStack {
VStack(spacing: Padding.cellGap) {
Spacer()
SectionHeader(title: "Local",
fontStyle: .title2.weight(.semibold),
foregroundColor: .primary)
SectionHeader(
title: "Local",
fontStyle: .title2.weight(.semibold),
foregroundColor: .primary
)
.fitToReadableContentGuide(type: .width)
ScrollView {
ForEach(categories) { category in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import SwiftUI

struct SectionHeader: View {
let title: String
let fontStyle: Font
let foregroundColor: Color
let maxWidth: CGFloat
let alignment: Alignment
let accesibilityAddTraits: AccessibilityTraits

internal init(title: String,
fontStyle: Font = .callout.weight(.semibold),
foregroundColor : Color = .secondary,
maxWidth: CGFloat = .infinity,
alignment: Alignment = .leading,
accessbilityAddTraits: AccessibilityTraits = .isHeader
private let title: String
private let fontStyle: Font
private let foregroundColor: Color
private let maxWidth: CGFloat
private let alignment: Alignment
private let accesibilityAddTraits: AccessibilityTraits

init(
title: String,
fontStyle: Font = .callout.weight(.semibold),
foregroundColor : Color = .secondary,
maxWidth: CGFloat = .infinity,
alignment: Alignment = .leading,
accessbilityAddTraits: AccessibilityTraits = .isHeader
) {
self.title = title
self.fontStyle = fontStyle
Expand Down
7 changes: 3 additions & 4 deletions SwiftLeeds/Views/My Conference/ActivityView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ struct ActivityView: View {
@Environment(\.openURL) var openURL

var body: some View {
SwiftLeedsContainer {
ScrollView {
content
}
ScrollView {
content
}
.background(Color.background, ignoresSafeAreaEdges: .all)
.edgesIgnoringSafeArea(.top)
}

Expand Down
7 changes: 3 additions & 4 deletions SwiftLeeds/Views/My Conference/SpeakerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ struct SpeakerView: View {
@Environment(\.openURL) var openURL

var body: some View {
SwiftLeedsContainer {
ScrollView {
content
}
ScrollView {
content
}
.background(Color.background, ignoresSafeAreaEdges: .all)
.edgesIgnoringSafeArea(.top)
}

Expand Down
11 changes: 3 additions & 8 deletions SwiftLeeds/Views/Sponsors/SponsorsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,13 @@ struct SponsorsView: View {
@State private var selectedSponsorLevel: SponsorLevel?

var body: some View {
SwiftLeedsContainer {
content
}
.edgesIgnoringSafeArea(.top)
}

private var content: some View {
ScrollView {
VStack(spacing: 0) {
FancyHeaderView(
title: "Sponsors",
foregroundImageName: Assets.Image.swiftLeedsIcon
)

if isLoading {
loadingView
.padding(.top, Padding.screen)
Expand All @@ -35,6 +28,8 @@ struct SponsorsView: View {
}
}
}
.background(Color.background, ignoresSafeAreaEdges: .all)
.edgesIgnoringSafeArea(.top)
.scrollIndicators(.hidden)
.task {
await loadSponsors()
Expand Down
2 changes: 1 addition & 1 deletion SwiftLeedsPackage/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let package = Package(
targets: [
"SharedAssets",
]
)
),
],
dependencies: [
.package(url: "https://github.com/shadone/SwiftGenPlugin", branch: "6.6.2+deriveddatafix"),
Expand Down