Software Development Notes
open-menu closeme
Home
Swift
Python
About
Software Development Notes
linkedin rss
  • Create a star rating SwiftUI component

    calendar Jan 2, 2022 · 9 min read · star shape path swiftui  ·
    Share on: linkedin facebook copy
    Create a star rating SwiftUI component
    Create an interactive star rating SwiftUI component. This article will use the star cutout shape with rounded corners as well as elements of the custom slider to create a star rating component in SwiftUI.
    Read More
  • How to customise the Slider in SwiftUI

    calendar Dec 26, 2021 · 10 min read · Slider swiftui  ·
    Share on: linkedin facebook copy
    How to customise the Slider in SwiftUI
    There is limited ability to customise the Slider in SwiftUI as of Xcode 13. These are three options of presenting a custom view of the Slider in a SwiftUI App. Set the tint color and background color of the slider; fall back to using the UISliderView from UIKit or create a custom SliderView from scratch in SwiftUI.
    Read More
  • Star with rounded corners in SwiftUI

    calendar Dec 12, 2021 · 16 min read · star shape path swiftui  ·
    Share on: linkedin facebook copy
    Star with rounded corners in SwiftUI
    The Star shape used in the Star cutout has sharp corners. This article shows how to modify the shape to create stars with rounded corners. The radius of the corner can be set as a parameter to specify the rounding of the outer and inner corners of the star.
    Read More
  • Create a Star cutout shape in SwiftUI

    calendar Dec 5, 2021 · 14 min read · shape star path swiftui  ·
    Share on: linkedin facebook copy
    Create a Star cutout shape in SwiftUI
    Path can be used in SwiftUI to create practically any shape. I found creating a cutout shape difficult until I found that FillStyle can be used with the even-odd rule. This article shows how to create a shape outline where the outside can be colored and the center kept transparent to allow other content to show …
    Read More
  • Animate Text size change in SwiftUI

    calendar Nov 28, 2021 · 3 min read · animation text swiftui  ·
    Share on: linkedin facebook copy
    Animate Text size change in SwiftUI
    One way to animation the change in text size is to use scale effect, however the text will appear blurred when scaled up. A custom AnimatableModifier can be used to smoothly animate the resizing of text in SwiftUI, which results in displaying clear text at all sizes through the animation.
    Read More
  • Convert numbers to Roman Numerials in Swift

    calendar Nov 21, 2021 · 5 min read · roman numerals zip swiftui  ·
    Share on: linkedin facebook copy
    Convert numbers to Roman Numerials in Swift
    Roman numerals, from ancient Rome are a way of writing numbers using these letters from the latin alphabet [I, V, X, L, C, D and M]. Each letter has a fixed integer value and can be combined to represent any number from 1 to 3999. This article demonstrates how to convert a integer to the Roman Numeral representation.
    Read More
  • Create a line chart in SwiftUI

    calendar Nov 14, 2021 · 13 min read · line chart chart path swiftui  ·
    Share on: linkedin facebook copy
    Create a line chart in SwiftUI
    A line chart is a graphical representation of changes in some data over time or between categories. The chart consists of two axes; x-axis is the horizontal axis representing the time change; and y-axis is the vertical axis representing the magnitude of the data. This article demonstrates how to create simple line …
    Read More
  • Test Driven Development in SwiftUI - Part 3

    calendar Oct 31, 2021 · 23 min read · MVVM TDD minimax tic tac toe swiftui  ·
    Share on: linkedin facebook copy
    Test Driven Development in SwiftUI - Part 3
    This is the fourth part in this trilogy! - with a brief interlude last week for an introduction to the Minimax algorithm. This article builds on the App from part 1 and 2, which allows two players to play Tic Tac Toe. In this article we will implement the minimax algorithm to determin the best move for the computer to …
    Read More
  • Understanding Minimax Algorithm with Tic Tac Toe

    calendar Oct 24, 2021 · 7 min read · minimax tic tac toe swiftui  ·
    Share on: linkedin facebook copy
    Understanding Minimax Algorithm with Tic Tac Toe
    The Minimax algorithm is a type of backtracking algorithm used in Game Theory to determine the best move to make assuming your opponent is also making their best move. The use of Minimax algorithm is a form of Artificial Intelligence that does not involve Machine Learning. This article explains Minimax algorithm and …
    Read More
  • Test Driven Development in SwiftUI - Part 2

    calendar Oct 17, 2021 · 28 min read · MVVM TDD tic tac toe swiftui  ·
    Share on: linkedin facebook copy
    Test Driven Development in SwiftUI - Part 2
    This creates the View for Tic Tac Toe app utilising the Model and ViewModel created in part 1. More unit tests are added as functionality is required and then the code to get the tests to pass is implemented.
    Read More
    • ««
    • «
    • 2
    • 3
    • 4
    • 5
    • 6
    • »
    • »»

Eric Callanan

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

Recent Posts

  • LinearGradient in SwiftUI
  • Create a color pencil in SwiftUI
  • Convert color from RGB to HSB in Swift
  • Create a circular slider in SwiftUI with ChatGPT
  • Can ChatGPT create an iOS app in SwiftUI - part 2
  • 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

Tags

SWIFTUI 74 PYTHON 28 PATH 13 SWIFT 13 PANDAS 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 AI3 ALGORITHM1 ANGULARGRADIENT1 ANIMATABLEDATA4 ANIMATION6 AREA-CHART1 ARRAY1 ARRAYSLICE1 ASYNC3 ASYNC-LET1 AWAIT3 AXIS2 BAR-CHART10 BUTTON1 BUTTONSTYLE1 CANCEL1 CANVAS6 CARD1 CHART6 CHATGPT3 CIRCLE2 COLOR4 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 HSB2 HSTACK1 ILOC1 IMAGE2 INDEX1 IPYWIDGETS1 ITERATE1 JSON2 JSONDECODER1 LINE-CHART4 LINEARGRADIENT1 LIST1 LOC1 LOOP1 MACOS1 MAP1 MAPVALUES1 MATHPLOTLIB4 MATPLOTLIB7 MATTHEW1 MINIMAX3 MODAL1 MONTY-HALL3 MVVM8 NAVIGATION2 NAVIGATIONSPLITVIEW1 NSSAVEPANEL1 PALETTE1 PANDAS12 PATH13 PERFORMANCE2 PHOTO1 PIE-CHART1 PLOTLY7 POLYGON1 PREFIX1 PROBABILITY3 PROGRESS1 PROGRESSVIEW1 PUZZLE1 PYTHON28 QR-CODE1 RECURSION1 REDUCE1 RGB1 ROMAN-NUMERALS1 SCROLL1 SHADING1 SHAPE5 SLIDER3 SPEED1 STAR3 STYLE1 SWIFT13 SWIFTLINT1 SWIFTUI74 TABULAR-DATA1 TABVIEW1 TASK4 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]