A Fourier Series visualisation written in Swift/SwiftUI

Overview

Fourier Series Visualisation in SwiftUI

This little app visualises different Fourier series using epicycles and a graph.

Simulator demo

The number of functions and the type of series can be changed. The following series are supported:

  • Square Wave
  • Saw Tooth
  • Triangle
  • Pulse

It builds and runs on iOS and macOS using Catalyst.

I started this little project to familiarise myself a bit more with SwiftUI and its drawing APIs. It is not meant to be perfect SwiftUI and I am sure there are probably better ways of doing things. Any feedback is appreciated!

You might also like...
🎉 SwiftUI stock charts for iOS
🎉 SwiftUI stock charts for iOS

SwiftUI Stock Charts Display interactive stock charts easily 🎉 Instalation In Xcode go to File - Swift packages - Add package dependency Copy and p

🎉 SwiftUI stock charts for iOS
🎉 SwiftUI stock charts for iOS

🎉 SwiftUI stock charts for iOS

SwiftUI Charts with custom styles
SwiftUI Charts with custom styles

SwiftUI Charts Build custom charts with SwiftUI Styles Line Chart(data: [0.1, 0.3, 0.2, 0.5, 0.4, 0.9, 0.1]) .chartStyle( LineChartStyle(.

SwiftUI library to easily render diagrams given a tree of objects. Similar to ring chart, sunburst chart, multilevel pie chart.
SwiftUI library to easily render diagrams given a tree of objects. Similar to ring chart, sunburst chart, multilevel pie chart.

Swift Sunburst Diagram Sunburst diagram is a library written with SwiftUI to easily render diagrams given a tree of objects. Similar to ring chart, su

Line plot like in Robinhood app in SwiftUI
Line plot like in Robinhood app in SwiftUI

RHLinePlot Line plot like in Robinhood app, in SwiftUI Looking for how to do the moving price label effect? Another repo here. P.S. Of course this is

SwiftUI Bar Chart
SwiftUI Bar Chart

SwiftUI BarChart Lightweight and easy to use SwiftUI chart library for all Apple platforms Features Scaling on both axes Fully customizable axes (labe

SwiftUICharts - A charts / plotting library for SwiftUI.
SwiftUICharts - A charts / plotting library for SwiftUI.

A charts / plotting library for SwiftUI. Works on macOS, iOS, watchOS, and tvOS and has accessibility features built in.

A SwiftUI Framework for Drawing Chart
A SwiftUI Framework for Drawing Chart

PrettyAxis A SwiftUI Framework for drawing charts. Fearture Support Drawing Bar Chart RadarChart Line Chart and Scatter Charts Pie Chart and Donut Cha

Declarative charting and visualization to use with SwiftUI

Chart Declarative charting and visualization to use with SwiftUI The package is in open development with a goal of making a declara

Comments
  • Jess/documentation

    Jess/documentation

    Description

    I added some standard open source documentation for when others might be interested in contributing to the project further down the line including a CODE_OF_CONDUCT and CONTRIBUTING MD files (definitely feel free to update. it as you see fit). More information can be found here on setting up open source projects.

    Type of change

    • [x] Documentation updates

    TODOs

    I think it would be beneficial to add a section in README for possible items and features others can work on if they were interested in contributing as well. I know I would be interested in hearing more about what you had in mind for additional features and items.

    Looking forward to hearing your thoughts again! Its been a blast so far 🤗

    opened by ellojess 4
  • Jess/UI refactor

    Jess/UI refactor

    Description

    Hey Simon! I really liked the concept of your project and found it really interesting, I thoroughly enjoyed working off of your code as well. I went ahead and updated the UI to address it's adaptivity and layout across various screens and orientations (primarily making it accessible in portrait mode). Please feel free to include additional feedback and suggestions, I always value constructive criticism(:

    Type of changes

    • [x] UI Update: Created different layouts using size classes (portrait & landscape)
    • [x] File Org Update: Broke down ConfigView file and separated views into their own files

    How Has This Been Tested?

    Manually tested in XCode using various simulators

    Before

    After

    Checklist:

    • [x] My code follows the style guidelines of this project
    • [x] I have performed a self-review of my own code
    • [x] I have commented my code, particularly in hard-to-understand areas
    • [ ] I have made corresponding changes to the documentation - no documentation on repo side to update ):
    • [x] My changes generate no new warnings
    opened by ellojess 1
  • Lacking helpful documentation for open source contribution

    Lacking helpful documentation for open source contribution

    I first came across the open source project in a Medium article: https://medium.com/better-programming/7-awesome-open-source-swiftui-projects-to-inspire-you-aff778e5d413

    It would be helpful to have detailed documentation on the project, including:

    • [ ] existing issues that you would like addressed
    • [ ] possible features others can take on
    • [ ] how to contribute to the project and what the process would look like (timeline, ways to contact, etc)
    • [ ] prerequisites if any
    opened by ellojess 0
Owner
Simon Stiefel
Simon Stiefel
SwiftUICharts - A simple line and bar charting library that supports accessibility written using SwiftUI.

SwiftUICharts - A simple line and bar charting library that supports accessibility written using SwiftUI.

Majid Jabrayilov 1.4k Jan 9, 2023
An interactive line chart written in SwiftUI with many customizations.

LineChartView LineChartView is a Swift Package written in SwiftUI to add a line chart to your app. It has many available customizations and is interac

Jonathan Gander 59 Dec 10, 2022
An adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift.

ScrollableGraphView Announcements 9-7-2017 - Version 4: Version 4 was released which adds multiple plots, dynamic reloading of values, more reference

Phillip 5.3k Jan 5, 2023
Flower-like chart written in Swift

FlowerChart - custom chart written in Swift Fully vector flower-shaped chart written in Swift Flower-shaped chart written in Swift, this repo is a sam

Alexander Telegin 15 Jun 9, 2021
Light weight charts view generater for iOS. Written in Swift.

# ###Light weight charts view generater for iOS. Written in Swift. Requirements iOS 8.0+ XCode 7.3+ Installation CocoaPods $ pod init specify it in yo

Recruit Holdings. Media Technology Lab 982 Nov 16, 2022
Easy to use Spider (Radar) Chart library for iOS written in Swift.

DDSpiderChart Easy to use Spider (Radar) Chart library for iOS written in Swift. Requirements iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ Xcode

Deniz Adalar 82 Nov 14, 2022
Line Chart library for iOS written in Swift

Swift LineChart Usage var lineChart = LineChart() lineChart.addLine([3, 4, 9, 11, 13, 15]) Features Super simple Highly customizable Auto scaling Touc

Mirco Zeiss 601 Nov 15, 2022
Wrapper for the Prettier code formatter written in Swift

Prettier A wrapper for the Prettier code formatter written in Swift. The package

Simon Støvring 36 Dec 18, 2022
FlowerChart - custom chart written in Swift

FlowerChart - custom chart written in Swift Fully vector flower-shaped chart written in Swift Flower-shaped chart written in Swift, this repo is a sam

Alexander Telegin 15 Jun 9, 2021
SwiftUICharts - ChartView made in SwiftUI

SwiftUICharts Swift package for displaying charts effortlessly. V2 Beta 1 is released, if you would like to try it out you can find a demo project her

Andras Samu 4.7k Jan 1, 2023