Software Development Notes
Home
Swift
Python
About
Software Development Notes
  • Create a line chart with SwiftUI Charts in iOS 16

    Aug 7, 2022 · 7 min read · line chart chart swiftui  ·
    Share on:
    Create a line chart with SwiftUI Charts in iOS 16

    Apple introduced SwiftUI Charts at WWWDC 2022, which makes it incredibly easy to create charts within SwiftUI views. Charts are a great way of presenting visual data in a rich format that is easy to understand. This article shows how to easily create a line chart with so much less code than was previously used to …

    Read More
  • Extract data from JSON in Pandas Dataframe

    Jul 24, 2022 · 8 min read · pandas dataframe json python  ·
    Share on:
    Extract data from JSON in Pandas Dataframe

    Data stored in a csv file can often contain JSON objects in one of the fields. The csv data can easily be loaded into a Pandas Dataframe for analysis. Fields of interest in the JSON object can also be extracted into their own column easily using Dataframe.Apply.

    Read More
  • Reduce in Swift

    Jun 4, 2022 · 5 min read · reduce  ·
    Share on:
    Reduce in Swift

    Reduce is a simple way to perform an operation over each element in a collection and condense down to a single value. It is commonly used on a list of numeric values to add up all the values.

    Read More
  • Save an image to MacOS file system with SwiftUI

    May 22, 2022 · 7 min read · NSSavePanel image file macos swiftui  ·
    Share on:
    Save an image to MacOS file system with SwiftUI

    SwiftUI does not have a control to present an open/save dialog to the user to allow saving files to the macOS filesystem. One could build such a view from scratch, but it is easier to use NSSavePanel from AppKit. This article demonstrates how to use NSSavePanel to get the URL for the file to be saved and use …

    Read More
  • Map on collections in Swift

    May 15, 2022 · 5 min read · map mapValues flatmap compactmap  ·
    Share on:
    Map on collections in Swift

    Swift provides a number of map methods to transform elements in Swift collections and return the transformed data in a new Array. The transform is supplied in a trailing closure to the map function. This article looks at Map, FlatMap and CompactMap on collections in Swift as well as MapValues in Dictionary.

    Read More
  • Iterating over a Dictionary in Swift

    May 8, 2022 · 10 min read · dictionary enumerate iterate  ·
    Share on:
    Iterating over a Dictionary in Swift

    A dictionary stores a list of key/value pairs in an unordered structure that is fast and efficient at adding elements and finding elements by a key. Each element in the dictionary is identified using its key, which is a hashable type such as a string or number.

    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

Eric Callanan

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

Recent Posts

  • Can ChatGPT create an iOS app in SwiftUI - part 1
  • How to cancel a background task in Swift
  • Use async let to run background tasks in parallel in Swift
  • ArraySlice with range operator and Prefix in Swift
  • Add horizontal scroll to charts with SwiftUI Charts in iOS 16
  • NavigationSplitView with Employee and Department models
  • Define colors with Hue, Saturation and Brightness rather than Red, Green and Blue properties
  • Display top section of Bar Charts with Swift Charts

Tags

SWIFTUI 69 PYTHON 28 SWIFT 13 PANDAS 12 PATH 12 BAR-CHART 10 MVVM 8 MATPLOTLIB 7 PLOTLY 7 ANIMATION 6 CANVAS 6 CHART 6 COVID-19 5 SHAPE 5
All Tags
2D2 3D2 ACTIVITY-RING1 ADDCURVE1 AI1 ALGORITHM1 ANGULARGRADIENT1 ANIMATABLEDATA4 ANIMATION6 AREA-CHART1 ARRAY1 ARRAYSLICE1 ASYNC3 ASYNC-LET1 AWAIT3 AXIS2 BAR-CHART10 BUTTON1 BUTTONSTYLE1 CANCEL1 CANVAS6 CARD1 CHART6 CHATGPT1 CIRCLE1 COLOR1 COMPACTMAP1 CONCAT1 COVID2 COVID-195 CROSS-PRODUCT1 DATAFRAME3 DEPENDENCY-INJECTION1 DI1 DICTIONARY1 DIVISION1 DOT-PRODUCT1 ENUMERATE1 FIBONACCI1 FILE1 FILTER1 FLATMAP1 FLIP1 FLOOR1 FOREACH1 FORM1 GEOMETRYREADER1 GEOPANDAS1 GEOPLOT1 HSTACK1 ILOC1 IMAGE2 INDEX1 IPYWIDGETS1 ITERATE1 JSON2 JSONDECODER1 LINE-CHART4 LIST1 LOC1 LOOP1 MACOS1 MAP1 MAPVALUES1 MATHPLOTLIB4 MATPLOTLIB7 MATTHEW1 MINIMAX3 MODAL1 MONTY-HALL3 MVVM8 NAVIGATION2 NAVIGATIONSPLITVIEW1 NSSAVEPANEL1 PALETTE1 PANDAS12 PATH12 PERFORMANCE2 PHOTO1 PIE-CHART1 PLOTLY7 POLYGON1 PREFIX1 PROBABILITY3 PROGRESS1 PROGRESSVIEW1 PUZZLE1 PYTHON28 QR-CODE1 RECURSION1 REDUCE1 ROMAN-NUMERALS1 SCROLL1 SHADING1 SHAPE5 SLIDER2 SPEED1 STAR3 STYLE1 SWIFT13 SWIFTLINT1 SWIFTUI69 TABULAR-DATA1 TABVIEW1 TASK3 TDD4 TEXT2 TIC-TAC-TOE5 TIMELINEVIEW4 TIMING1 UI-TESTING1 UNIT-TEST1 UNIT-TESTING1 USERDEFAULTS1 VECTOR4 VECTORARITHMETIC4 VSTACK1 WHEEL1 WHERE1 ZIP1 ZSTACK1
[A~Z][0~9]