Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RSS Reader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Grothe
RSS Reader
Commits
be405a9d
Commit
be405a9d
authored
4 years ago
by
Kenanja Nuding
Browse files
Options
Downloads
Patches
Plain Diff
#90
Fixed blank List Bug after Add feed
parent
9cad4ee0
No related branches found
No related tags found
No related merge requests found
Pipeline
#9553
passed
4 years ago
Stage: clean
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RSS_Reader/AddFeedView.swift
+2
-4
2 additions, 4 deletions
RSS_Reader/AddFeedView.swift
RSS_Reader/helper_classes/FeedDetector.swift
+2
-0
2 additions, 0 deletions
RSS_Reader/helper_classes/FeedDetector.swift
with
4 additions
and
4 deletions
RSS_Reader/AddFeedView.swift
+
2
−
4
View file @
be405a9d
...
...
@@ -20,10 +20,7 @@ struct AddFeedView: View {
@Environment
(\
.
presentationMode
)
var
presentationMode
/** Model of the app */
@ObservedObject
var
model
:
Model
=
.
shared
@ObservedObject
var
detector
=
FeedDetector
()
@ObservedObject
var
detector
:
FeedDetector
=
.
shared
/** Buffer for the feed that should be removed: Alert does not capture the correct feed, so it needs to be stored somewhere */
@State
var
remove_feed
:
NewsFeed
?
=
nil
...
...
@@ -38,6 +35,7 @@ struct AddFeedView: View {
HStack
{
Button
(
action
:
{
self
.
presentationMode
.
wrappedValue
.
dismiss
()
detector
.
detect
(
""
)
},
label
:
{
CustomSystemImage
(
image
:
.
close
,
size
:
.
xsmall
)
})
...
...
This diff is collapsed.
Click to expand it.
RSS_Reader/helper_classes/FeedDetector.swift
+
2
−
0
View file @
be405a9d
...
...
@@ -38,6 +38,8 @@ class FeedDetector: ObservableObject {
return
current_url_private
}
}
/// feed_detector singleton
static
let
shared
=
FeedDetector
()
/// Constructor
init
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment