Software Development Notes
open-menu closeme
Home
Swift
Python
About
Software Development Notes
linkedin rss
  • Exploring data with Swift TabularData and DataFrame

    calendar May 1, 2022 · 13 min read · tabular data dataframe covid swift  ·
    Share on: linkedin facebook copy
    Exploring data with Swift TabularData and DataFrame
    TabularData was introduced in iOS 15 and can be used to load data from csv or json format into a DataFrame to explore and manipulate. This is not Python Pandas, but it does provide some basic functionality for exploring data and is fast and efficient. In this article, the data on the deaths from Covid is loaded, …
    Read More
  • Use Dependency Injection to Unit Test a ViewModel in Swift

    calendar Apr 17, 2022 · 8 min read · dependency injection di unit test swiftui  ·
    Share on: linkedin facebook copy
    Use Dependency Injection to Unit Test a ViewModel in Swift
    Dependency Injection is a technique to pass in one or more dependent object to another object. This article will build on the Weather App to pass in the weather service to the weather ViewModel at initialisation. This will allow the use of a mock weather service to test the ViewModel in unit tests without requiring any …
    Read More
  • Consistent Swift style in Xcode with SwiftLint

    calendar Mar 27, 2022 · 26 min read · swiftlint style swiftui  ·
    Share on: linkedin facebook copy
    Consistent Swift style in Xcode with SwiftLint
    Code style can be a controversial topic and lead to some passionate debates between developers. The use of a tool to enforce a set of rules on style can be very helpful to avoid contentious arguments and ensure the code is consistent throughout a project. SwiftLint can easily be incorporated into Xcode projects to flag …
    Read More
  • Display loading screen when fetching data in Swift

    calendar Mar 20, 2022 · 7 min read · progressview async await swiftui  ·
    Share on: linkedin facebook copy
    Display loading screen when fetching data in Swift
    Last week, we retrieved weather data from Open Weather API to demonstrate how to parse JSON data. The weather data is retrieved asynchronously, which may result in a delay before the UI is updated. This article shows how to display a progress view while the data is being fetched, to provide feedback that something is …
    Read More
  • Read JSON with codeable in Swift

    calendar Mar 13, 2022 · 10 min read · json JSONDecoder swiftui  ·
    Share on: linkedin facebook copy
    Read JSON with codeable in Swift
    Reading JSON data from local files and url is now much easier with codeable in Swift 5. This article shows how to load JSON data from a local file as well as from the open weather data api.
    Read More
  • Saving a SwiftUI view to Photos

    calendar Mar 6, 2022 · 8 min read · photo shape swiftui  ·
    Share on: linkedin facebook copy
    Saving a SwiftUI view to Photos
    Many shapes and patterns can be created using Path and Canvas in SwiftUI. It would be great to be able to save these as images in the Photo Library. This is possible using UIKit, by first converting the SwiftUI View to UIImage and then saving this image to Photos.
    Read More
  • Fixing a bug in Tic Tac Toe with TDD

    calendar Feb 27, 2022 · 11 min read · MVVM TDD minimax tic tac toe swiftui  ·
    Share on: linkedin facebook copy
    Fixing a bug in Tic Tac Toe with TDD
    I discovered a bug in the game I had written on Tic Tac Toe. When the board is in a certain state, the system did not take the obvious winning move. It still won the game, but with an extra move required. This article details how to write a failing unit test to reproduce the issue and how to update the minimax …
    Read More
  • TabView in SwiftUI

    calendar Feb 20, 2022 · 7 min read · tabview swiftui  ·
    Share on: linkedin facebook copy
    TabView in SwiftUI
    A tab bar is presented at the bottom of the screen in iOS apps and is used for navigation between the major sections of an app. TabView is used in SwiftUI to easily add multiple tabs to the main view.
    Read More
  • Better performance with canvas in SwiftUI

    calendar Feb 13, 2022 · 8 min read · canvas shape path swiftui  ·
    Share on: linkedin facebook copy
    Better performance with canvas in SwiftUI
    It is said that use of Canvas to create complex shapes can provide better performance in SwiftUI. This article compares performance of scrolling through multiple instances of the same card pattern created using shape, canvas or image.
    Read More
  • Animate spinning cog shape in SwiftUI

    calendar Feb 6, 2022 · 15 min read · timelineview canvas path swiftui  ·
    Share on: linkedin facebook copy
    Animate spinning cog shape in SwiftUI
    I discovered, when playing around with the rounded-corner star shape, that the same basic shape could be used to create a cog shape. This article demonstrates the creation of the cog shape and the use of timelineview to animate its rotation in SwiftUI.
    Read More
    • ««
    • «
    • 2
    • 3
    • 4
    • 5
    • 6
    • »
    • »»

Eric Callanan

Lifelong learner, Software Engineering Manager, Passionate, Curious
Read More

Recent Posts

  • Create fake data with Faker in Python
  • How to create a binary tree using an array in Swift - part 2
  • How to create a binary tree using an array in Swift - part 1
  • Scroll transition effects in iOS 17
  • Conway's Game of life with SwiftUI
  • Create a Pie or Donut chart with SwiftUI Charts in iOS 17
  • Animate background with color gradient in SwiftUI
  • RadialGradient in SwiftUI

Tags

SWIFTUI 82 PYTHON 29 PATH 13 SWIFT 13 PANDAS 12 BAR-CHART 10 MVVM 8 ANIMATION 7 CANVAS 7 CHART 7 COLOR 7 MATPLOTLIB 7 PLOTLY 7 COVID-19 5
All Tags
2D2 3D2 ACTIVITY-RING1 ADDCURVE1 AI3 ALGORITHM1 ANGULAR1 ANGULARGRADIENT1 ANIMATABLEDATA4 ANIMATE1 ANIMATION7 AREA-CHART1 ARRAY3 ARRAYSLICE1 ASYNC3 ASYNC-LET1 AWAIT3 AXIS2 BAR-CHART10 BUTTON1 BUTTONSTYLE1 CANCEL1 CANVAS7 CARD1 CHART7 CHATGPT3 CIRCLE2 COLOR7 COMPACTMAP1 CONCAT1 COVID2 COVID-195 CROSS-PRODUCT1 CSV1 DATAFRAME3 DEPENDENCY-INJECTION1 DI1 DICTIONARY1 DIVISION1 DONUT1 DOT-PRODUCT1 ENUMERATE1 FAKER1 FIBONACCI1 FILE1 FILTER1 FLATMAP1 FLIP1 FLOOR1 FOREACH1 FORM1 GAME1 GEOMETRYREADER1 GEOPANDAS1 GEOPLOT1 GRADIENT3 HSB2 HSTACK1 ILOC1 IMAGE2 INDEX1 IPYWIDGETS1 ITERATE1 JSON2 JSONDECODER1 LIFE1 LINE-CHART4 LINEARGRADIENT1 LIST1 LOC1 LOOP1 MACOS1 MAP1 MAPVALUES1 MATHPLOTLIB4 MATPLOTLIB7 MATTHEW1 MINIMAX3 MODAL1 MONTY-HALL3 MVVM8 NAVIGATION2 NAVIGATIONSPLITVIEW1 NSSAVEPANEL1 PALETTE1 PANDA1 PANDAS12 PATH13 PERFORMANCE2 PHOTO1 PIE-CHART2 PLOTLY7 POLYGON1 PREFIX1 PRIORITY2 PROBABILITY3 PROGRESS1 PROGRESSVIEW1 PUZZLE1 PYTHON29 QR-CODE1 RADIAL1 RECURSION1 REDUCE1 RGB1 ROMAN-NUMERALS1 SCROLL2 SHADING1 SHAPE5 SLIDER3 SPEED1 STAR3 STYLE1 SWIFT13 SWIFTLINT1 SWIFTUI82 TABULAR-DATA1 TABVIEW1 TASK4 TDD4 TEXT2 TIC-TAC-TOE5 TIMELINEVIEW4 TIMING1 TRANSITION1 TREE2 UI-TESTING1 UNIT-TEST1 UNIT-TESTING1 USERDEFAULTS1 VECTOR4 VECTORARITHMETIC4 VSTACK1 WHEEL1 WHERE1 ZIP1 ZSTACK1
[A~Z][0~9]
Software Development Notes

Copyright © 2020 -  Software Development Notes. All Rights Reserved

to-top