Software Development Notes
open-menu closeme
Home
Swift
Python
About
Software Development Notes
linkedin rss
  • Convert color from RGB to HSB in Swift

    calendar Apr 30, 2023 · 9 min read · hsb rgb color swiftui  ·
    Share on: linkedin facebook copy
    Convert color from RGB to HSB in Swift
    HSB (Hue, Saturation, and Brightness) represents color in a more human-understandable way, which closely mimics how colors are perceived in real life. Defining color using HSB instead of RGB (Red, Green, and Blue) in App design can result in a more intuitive design with the creation of harmonious color schemes and …
    Read More
  • Create a circular slider in SwiftUI with ChatGPT

    calendar Apr 16, 2023 · 37 min read · ai chatgpt slider circle swiftui  ·
    Share on: linkedin facebook copy
    Create a circular slider in SwiftUI with ChatGPT
    It may have been too ambitious to ask ChatGPT to create an iOS app. So in this article, I ask ChatGPT to create a circular slider in SwiftUI. It can take a while and the more information provided to ChatGPT the better, but it is possible to get useable code from ChatGPT.
    Read More
  • Can ChatGPT create an iOS app in SwiftUI - part 2

    calendar Apr 2, 2023 · 21 min read · ai chatgpt task swiftui  ·
    Share on: linkedin facebook copy
    Can ChatGPT create an iOS app in SwiftUI - part 2
    The initial Task Manager app created with code from ChatGPT did not quite work correctly. In this article, I work with ChatGPT to resolve the issues and then add the ability to persist the tasks when the app is closed.
    Read More
  • Can ChatGPT create an iOS app in SwiftUI - part 1

    calendar Mar 19, 2023 · 22 min read · ai chatgpt task swiftui  ·
    Share on: linkedin facebook copy
    Can ChatGPT create an iOS app in SwiftUI - part 1
    Artificial Intelligence is trending at the moment with applications like DALL-E and Canva able to create images in certain styles and ChatGPT able to generate text. This article explores if ChatGPT can do more than childrens homework and see can ChatGPT create an iOS task app in SwiftUI. So I asked it to create a task …
    Read More
  • How to cancel a background task in Swift

    calendar Jan 29, 2023 · 11 min read · async await task cancel swiftui  ·
    Share on: linkedin facebook copy
    How to cancel a background task in Swift
    The async/await syntax, introduced in Swift 5.5, allows a readable way to write asynchronous code. Asynchronous programming can improve performance of an app, but it is important to cancel unneeded tasks to ensure unwanted background tasks do not interfere with the app. This article demonstrates how to cancel a task …
    Read More
  • Use async let to run background tasks in parallel in Swift

    calendar Jan 15, 2023 · 9 min read · async let async await task swiftui  ·
    Share on: linkedin facebook copy
    Use async let to run background tasks in parallel in Swift
    The async/await syntax was introduced in Swift 5.5 with Meet async/await in Swift in WWDC 2021. It is a more readable way to write asynchronous code and is easier to understand than dispatch queues and callback functions. The async/await syntax is similar to those used in other programming languages like C# or …
    Read More
  • ArraySlice with range operator and Prefix in Swift

    calendar Jan 1, 2023 · 6 min read · array arrayslice prefix  ·
    Share on: linkedin facebook copy
    ArraySlice with range operator and Prefix in Swift
    The Swift standard library provides an ArraySlice to work with a subset of a larger collection without the overhead of making a copy of the original collection. Retrieving the first few elements of a collection can be achieved using the one-sided range operator, but is safer to use the prefix method without having to …
    Read More
  • Add horizontal scroll to charts with SwiftUI Charts in iOS 16

    calendar Dec 4, 2022 · 11 min read · line chart bar chart scroll swiftui  ·
    Share on: linkedin facebook copy
    Add horizontal scroll to charts with SwiftUI Charts in iOS 16
    Apple introduced SwiftUI Charts at WWWDC 2022, which makes it incredibly easy to create charts within SwiftUI views. The default chart presents the entire data in the chart plot regardless of how much data is available. It can be beneficial to show more details on a chart and add the ability to scroll through the …
    Read More
  • NavigationSplitView with Employee and Department models

    calendar Nov 20, 2022 · 9 min read · navigation navigationsplitview swiftui  ·
    Share on: linkedin facebook copy
    NavigationSplitView with Employee and Department models
    Apple introduced NavigationStack and NavigationSplitView at WWWDC 2022 to replace NavigationView, which has been deprecated. The documentation for NavigationSplitView includes sample code, but the code does not work as it is missing model data. Here is some model data to allow the sample code in the documentation to …
    Read More
  • Define colors with Hue, Saturation and Brightness rather than Red, Green and Blue properties

    calendar Nov 6, 2022 · 15 min read · color palette wheel  ·
    Share on: linkedin facebook copy
    Define colors with Hue, Saturation and Brightness rather than Red, Green and Blue properties
    There are multiple ways to define colors in code. The most commonly used method is to specify values for the three primary colors - red, green and blue (RGB). This article explores the use of an alternative mechanism by specifying values for hue, saturation and brightness (HSB). The HSB properties can be used in a more …
    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

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